|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Unit<P extends Presence,C extends Communication,R>
Set-like Presence type. May collect Presence instances as a logical reference set. The Units must be arranged into a graph describing logical connection between unit instances
Field Summary |
---|
Fields inherited from interface com.vii.brillien.kernel.axiom.atomic.Presence |
---|
CONSONANT, RESIDENT, SPARKLE |
Method Summary | ||
---|---|---|
void |
activateUnitAll()
Activates all Presences in this Unit. |
|
void |
activateUnitCallable()
Activates the callable activity of all Presences in this Unit. |
|
void |
activateUnitMessaging()
Makes all Presences in this Unit active |
|
void |
addPresences(P... ses)
Adds new Presences. |
|
Unit<P,C,R> |
addSubUnits(Unit... ses)
Adds new subunits. |
|
Collection<Unit> |
classify(EquivalenceRelation<P,C,R> function)
Classifies the unit by using an equivalence relation |
|
void |
clearPresences()
Clears all Presences |
|
void |
clearSubUnits()
Clears all subunits |
|
void |
communicationUnitReceived(C message)
Notification method about an incoming message addressed to this all Sensors of this Unit. |
|
Unit<P,C,R> |
complement(Unit<P,C,R> unit)
Creates complement set from the actual and the given Unit |
|
|
getCharacteristicFunction()
Gets the characteristic function associated to the given Unit. |
|
Collection<Presence> |
getPresences()
Gets all Presences included into this unite instance |
|
Collection<Unit> |
getSubUnits()
Gets subunit instances |
|
boolean |
hasUnitActivity()
Tells whether a Presence in this Unit has callable activity |
|
Unit<P,C,R> |
intersect(Unit<P,C,R> unit)
Creates intersect set from the actual and the given Unit |
|
boolean |
isSubSet(Unit<P,C,R> u)
Decides whether the given parameter is subset of the actual Unit instance |
|
boolean |
isUnitInExitState()
Tells whether the presences in this unit are in exit state. |
|
boolean |
isUnitInValidStates()
Tells whether the presences in this unit are in valid states |
|
boolean |
isUnitWaitingForResponse()
Tells whether an Aspirer in this Unit is waiting an answer to a redirected get-like message sent earlier. |
|
Collection<P> |
order(OrderRelation<P,C,R> function)
Orders the presences of the unit by using an order relation |
|
void |
passivateUnitAll()
Passivates all Presences in this Unit. |
|
void |
passivateUnitCallable()
Passivates the callable activity of all Presences in this Unit. |
|
void |
passivateUnitMessaging()
Makes all Presences in this Unit passive. |
|
String |
printUnitErrorStates()
|
|
void |
removePresences(P... ses)
Removes Presences. |
|
Unit<P,C,R> |
removeSubUnits(Unit... ses)
Removes subunits. |
|
void |
retrieveUnit()
Makes all presences in this unit to be retrieved by the proper Presencemanagers |
|
void |
scrutinise(Presence p)
Checks if the Presence could became set element |
|
|
setCharacteristicFunction(CharacteristicFunction<P,C,T> function)
Setter method for the CharacteristicFunction associated to the given Unit. |
|
Unit<P,C,R> |
subset(CharacteristicFunction<P,C,R> function)
Subset creation from the given Unit |
|
Unit<P,C,R> |
symmetricDifference(Unit<P,C,R> unit)
Creates symmetric difference set from the actual and the given Unit |
|
Unit<P,C,R> |
union(Unit<P,C,R> unit)
Creates union set from the actual and the given Unit |
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> CharacteristicFunction<P,C,T> getCharacteristicFunction()
<T> void setCharacteristicFunction(CharacteristicFunction<P,C,T> function)
function
- CharacteristicFunction to be associatedCollection<Unit> getSubUnits()
Unit<P,C,R> addSubUnits(Unit... ses) throws BrillienException
ses
- array of new subunits
BrillienException
Unit<P,C,R> removeSubUnits(Unit... ses) throws BrillienException
ses
- array of subunits to remove
BrillienException
void clearSubUnits() throws BrillienException
BrillienException
Collection<Presence> getPresences()
void scrutinise(Presence p) throws BrillienException
p
- element candidate presence
BrillienException
- in case of element rule violationvoid addPresences(P... ses) throws BrillienException
ses
- array of new Presences
BrillienException
void removePresences(P... ses) throws BrillienException
ses
- array of Presences to remove
BrillienException
void clearPresences() throws BrillienException
BrillienException
Unit<P,C,R> subset(CharacteristicFunction<P,C,R> function) throws BrillienException
function
- CharacteristicFunction of the subset
BrillienException
Unit<P,C,R> union(Unit<P,C,R> unit) throws BrillienException
unit
- other part of the unio set
BrillienException
Unit<P,C,R> intersect(Unit<P,C,R> unit) throws BrillienException
unit
- other part of the intersect set
BrillienException
Unit<P,C,R> complement(Unit<P,C,R> unit) throws BrillienException
unit
- other part of the complement set
BrillienException
Unit<P,C,R> symmetricDifference(Unit<P,C,R> unit) throws BrillienException
unit
- other part of the symmetric difference set
BrillienException
Collection<Unit> classify(EquivalenceRelation<P,C,R> function) throws BrillienException
function
- equivalence relation
BrillienException
Collection<P> order(OrderRelation<P,C,R> function) throws BrillienException
function
- order relation
BrillienException
boolean isSubSet(Unit<P,C,R> u)
u
- set instance
void communicationUnitReceived(C message) throws BrillienException
message
- message object received
BrillienException
- Exception thrown in a problematic situationvoid retrieveUnit() throws BrillienException
BrillienException
boolean hasUnitActivity()
void activateUnitMessaging() throws BrillienException
BrillienException
void passivateUnitMessaging() throws BrillienException
BrillienException
void activateUnitCallable() throws BrillienException
BrillienException
void passivateUnitCallable() throws BrillienException
BrillienException
boolean isUnitWaitingForResponse()
boolean isUnitInExitState()
String printUnitErrorStates()
boolean isUnitInValidStates()
void activateUnitAll() throws BrillienException
BrillienException
void passivateUnitAll() throws BrillienException
BrillienException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |