|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Context<P extends Presence,C extends Communication,R>
Context is a special Unit type providing a metalevel collapsing set functionality extended by sharing services.
Field Summary |
---|
Fields inherited from interface com.vii.brillien.kernel.axiom.atomic.Presence |
---|
CONSONANT, RESIDENT, SPARKLE |
Method Summary | ||
---|---|---|
void |
addExceptionLeveling(Filter f,
Shifter s)
Adds a Filter-Shifter mapping to the given context |
|
void |
clearExceptionLeveling()
Clears all Filter-Shifter mappings from the given context |
|
|
getSharing(Presence p,
Object key)
Getter method to access a sharing by a given name |
|
Shifter |
getShifter(BrillienException be)
Gets the proper Shifter to the given BrillienException instance if exists |
|
boolean |
hasSharing(Presence p,
Object key)
Decides whether a sharing is available in this flow. |
|
BrillienException |
levelException(BrillienException be)
Transforms the given exception according to the filter-shifter mappings available in this context |
|
|
registerSharing(Presence p,
Object key,
T object)
Shares an object with the given key |
|
void |
removeExceptionLeveling(Filter f)
Removes a Filter-Shifter mapping by the given filter |
|
void |
removeSharing(Presence p,
Object key)
Removes a shared content |
Methods inherited from interface com.vii.brillien.kernel.axiom.atomic.Unit |
---|
activateUnitAll, activateUnitCallable, activateUnitMessaging, addPresences, addSubUnits, classify, clearPresences, clearSubUnits, communicationUnitReceived, complement, getCharacteristicFunction, getPresences, getSubUnits, hasUnitActivity, intersect, isSubSet, isUnitInExitState, isUnitInValidStates, isUnitWaitingForResponse, order, passivateUnitAll, passivateUnitCallable, passivateUnitMessaging, printUnitErrorStates, removePresences, removeSubUnits, retrieveUnit, scrutinise, setCharacteristicFunction, subset, symmetricDifference, union |
Methods inherited from interface com.vii.brillien.kernel.axiom.atomic.Presence |
---|
activateAll, addSuperUnits, clearSuperUnits, getApiKeyPresenceName, getFlow, getFlowID, getPresenceManager, getSharing, getSSOPresenceName, getSuperUnits, passivateAll, printErrorStates, removeSuperUnits, retrieve, setFlow, setPresenceManager |
Methods inherited from interface com.vii.brillien.kernel.axiom.Presence |
---|
aspirationTimeIsUp, getAspirationTimeMeasure, getFullName, getMessageProcessorParameterNames, getMessageProcessorParameterTypes, getName, hasMessageProcessorReturnValue, isAspirationPeriodical, reset, setAspirationPeriodical, setAspirationTimeMeasure, setName |
Methods inherited from interface com.vii.brillien.kernel.axiom.Aspirer |
---|
activateCallable, getResult, hasActivity, isWaitingForInputData, isWaitingForResponse, passivateCallable, plan, sendAGet, sendDelegatedSet, sendError, sendError, sendError, sendGet, sendGet, sendResponse, sendSet, sendUnitAGet, sendUnitDelegatedSet, sendUnitGet, sendUnitGet, sendUnitSet |
Methods inherited from interface java.util.concurrent.Callable |
---|
call |
Methods inherited from interface com.vii.brillien.kernel.axiom.Sensor |
---|
activateMessaging, communicationReceived, errorReceived, passivateMessaging, presenseChangedState |
Methods inherited from interface com.vii.brillien.kernel.axiom.Progressor |
---|
addState, changeState, getActualStates, getPotentialStates, getStateDivision, hasStateMachine, initStateMashine, isInExitState, isInState, isInValidStates, panic, registerStateChangeNotification, removeState, setStateDivision, unregisterStateChangeNotification |
Method Detail |
---|
<T> void registerSharing(Presence p, Object key, T object)
T
- shared content's typep
- component reference who want to sharekey
- unique key for the sharingobject
- shared objectvoid removeSharing(Presence p, Object key)
p
- component reference who want to sharekey
- unique key for the sharingboolean hasSharing(Presence p, Object key)
p
- searcher component referencekey
- key of the sharing that should be retrieved
<S> S getSharing(Presence p, Object key)
S
- shared contentp
- accessor Presence referencekey
- key of the shared content
BrillienException levelException(BrillienException be)
Shifter getShifter(BrillienException be)
void addExceptionLeveling(Filter f, Shifter s)
void removeExceptionLeveling(Filter f)
void clearExceptionLeveling()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |