| Modifier and Type | Method and Description |
|---|---|
cz.cuni.amis.utils.flag.ImmutableFlag<ComponentState> |
AgentModule.getState()
Returns state of the component.
|
| Constructor and Description |
|---|
ComponentNotRunningException(ComponentState state,
Logger log,
Object origin)
Constructs a new exception with the specified detail message.
|
ComponentNotRunningException(ComponentState state,
Object origin)
Constructs a new exception with the specified detail message.
|
ComponentNotRunningException(ComponentState state,
Throwable cause,
Logger log,
Object origin)
Constructs a new exception with the specified detail message and cause.
|
ComponentNotRunningException(ComponentState state,
Throwable cause,
Object origin)
Constructs a new exception with the specified detail message and cause.
|
ComponentPausedException(ComponentState state,
Logger log,
Object origin)
Constructs a new exception with the specified detail message.
|
ComponentPausedException(ComponentState state,
Object origin)
Constructs a new exception with the specified detail message.
|
ComponentPausedException(ComponentState state,
Throwable cause,
Logger log,
Object origin)
Constructs a new exception with the specified detail message and cause.
|
ComponentPausedException(ComponentState state,
Throwable cause,
Object origin)
Constructs a new exception with the specified detail message and cause.
|
| Modifier and Type | Field and Description |
|---|---|
protected cz.cuni.amis.utils.flag.Flag<ComponentState> |
AbstractComponentControllerBase.componentState
State of the controlled component.
|
protected Map<ComponentState,Integer> |
SharedComponentController.componentStateCount
Map tracking count of states of dependencies.
|
protected Map<IAgentId,ComponentState> |
SharedComponentController.componentStates
This map holds the currently desired
AbstractComponentControllerBase.component state inside the agent's bus. |
| Modifier and Type | Method and Description |
|---|---|
ComponentState |
IComponentControllerBase.awaitState(ComponentState... states)
Waits until the component reaches one of 'states' or KILLING / KILLED state is reached.
|
ComponentState |
AbstractComponentControllerBase.awaitState(ComponentState... states) |
ComponentState |
IComponentControllerBase.awaitState(long timeoutMillis,
ComponentState... states)
Waits until the component reaches one of 'states' or KILLING / KILLED state is reached.
|
ComponentState |
AbstractComponentControllerBase.awaitState(long timeoutMillis,
ComponentState... states) |
static ComponentState |
ComponentState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentState[] |
ComponentState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
cz.cuni.amis.utils.flag.ImmutableFlag<ComponentState> |
IComponentControllerBase.getState()
Returns state of the controlled component (state of the component life-cycle).
|
cz.cuni.amis.utils.flag.ImmutableFlag<ComponentState> |
AbstractComponentControllerBase.getState() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractComponentControllerBase.AwaitState.accept(ComponentState flagValue) |
protected void |
SharedComponentController.agentStoppedUsingTheComponent(IAgentId agentId,
ComponentState oldState) |
protected int |
SharedComponentController.alterStateCount(ComponentState state,
int change)
Changes the count (by 'change') of the 'state', DOES NOT TRIGGER
SharedComponentController#componentStateCountChanged(). |
ComponentState |
IComponentControllerBase.awaitState(ComponentState... states)
Waits until the component reaches one of 'states' or KILLING / KILLED state is reached.
|
ComponentState |
AbstractComponentControllerBase.awaitState(ComponentState... states) |
ComponentState |
IComponentControllerBase.awaitState(long timeoutMillis,
ComponentState... states)
Waits until the component reaches one of 'states' or KILLING / KILLED state is reached.
|
ComponentState |
AbstractComponentControllerBase.awaitState(long timeoutMillis,
ComponentState... states) |
protected void |
SharedComponentController.checkStateCount(int newCount,
ComponentState state)
Checks sanity of the 'state' count 'newCount'
|
protected void |
SharedComponentController.componentStateChanged(IAgentId origin,
ComponentState oldState,
ComponentState newState) |
protected void |
SharedComponentController.componentStateCountChanged(IAgentId origin,
ComponentState oldState,
ComponentState newState) |
protected int |
SharedComponentController.decreaseStateCount(ComponentState state)
Decreases (-1) count of the 'state', DOES NOT TRIGGER
SharedComponentController#componentStateCountChanged(). |
protected int |
SharedComponentController.decreaseStateCount(ComponentState state,
int n)
Decreases (-n) count of the 'state', DOES NOT TRIGGER
SharedComponentController#componentStateCountChanged(). |
void |
SharedComponentController.ComponentStateListener.flagChanged(ComponentState changedValue) |
int |
SharedComponentController.getStateCount(ComponentState... states)
Return how many components are in one of 'states'
|
protected int |
SharedComponentController.increaseStateCount(ComponentState state)
Increases (+1) count of the 'state', DOES NOT TRIGGER
SharedComponentController#componentStateCountChanged(). |
protected int |
SharedComponentController.increaseStateCount(ComponentState state,
int n)
Increases count (+n) of the 'state', DOES NOT TRIGGER
SharedComponentController#componentStateCountChanged(). |
static boolean |
ComponentState.inside(ComponentState state,
ComponentState... inside)
Tests whether 'state' is inside 'inside'.
|
static boolean |
ComponentState.inside(ComponentState state,
ComponentState... inside)
Tests whether 'state' is inside 'inside'.
|
boolean |
IComponentControllerBase.inState(ComponentState... states)
Whether the component is in one of 'states'.
|
boolean |
AbstractComponentControllerBase.inState(ComponentState... states) |
protected void |
SharedComponentController.newAgentIsUsingTheComponent(IAgentId agentId,
ComponentState state) |
static boolean |
ComponentState.notInside(ComponentState state,
ComponentState... inside)
Wether 'state' is not part of 'inside'.
|
static boolean |
ComponentState.notInside(ComponentState state,
ComponentState... inside)
Wether 'state' is not part of 'inside'.
|
boolean |
IComponentControllerBase.notInState(ComponentState... states)
Whether the component is not in any of 'states'.
|
boolean |
AbstractComponentControllerBase.notInState(ComponentState... states) |
static boolean |
ComponentState.partOf(ComponentState[] states,
ComponentState... inside)
Returns true if one state from 'states' is found 'inside', O(n) complexity.
|
static boolean |
ComponentState.partOf(ComponentState[] states,
ComponentState... inside)
Returns true if one state from 'states' is found 'inside', O(n) complexity.
|
protected void |
AbstractComponentControllerBase.setState(ComponentState state)
Changes the
AbstractComponentControllerBase.componentState to desired state. |
protected void |
SharedComponentController.setState(IAgentId agentId,
ComponentState newState)
Changes the state of the component for given agentId, triggers
SharedComponentController#componentStateCountChanged(). |
protected void |
SharedComponentController.setState(IAgentId agentId,
ComponentState oldState,
ComponentState newState)
Changes the state of the component for given agentId, triggers
SharedComponentController#componentStateCountChanged(). |
protected void |
SharedComponentController.stateChanged(IAgentId agentId,
ComponentState changedValue)
Signal that the component in the bus of agent identified by 'agentId' has changed into 'changedValue'.
|
| Constructor and Description |
|---|
AbstractComponentControllerBase.AwaitState(ComponentState... states) |
| Modifier and Type | Method and Description |
|---|---|
cz.cuni.amis.utils.flag.ImmutableFlag<ComponentState> |
LifecycleBus.getComponentState(Class<? extends IComponent> cls) |
cz.cuni.amis.utils.flag.ImmutableFlag<ComponentState> |
ILifecycleBus.getComponentState(Class<? extends IComponent> cls)
Returns current
ComponentState of the component that implements / inherit the 'cls' class. |
cz.cuni.amis.utils.flag.ImmutableFlag<ComponentState> |
LifecycleBus.getComponentState(cz.cuni.amis.utils.token.IToken componentId) |
cz.cuni.amis.utils.flag.ImmutableFlag<ComponentState> |
ILifecycleBus.getComponentState(cz.cuni.amis.utils.token.IToken componentId)
Returns current
ComponentState of the component identified by 'componentId'. |
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.