public interface ISharedComponentController<COMPONENT extends ISharedComponent> extends IComponentControllerBase<COMPONENT>, ISharedComponent
ISharedComponent NOT IComponents (for them, use IComponentController instead).
It is suitable for controlling lifecycle of one component inside one component bus. It provides methods for querying components the controlled component is depending on.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDependent(IAgentId agentId,
IComponent component)
Whether the controlled component is dependent on 'component' of the agent identified by 'agentId'.
|
boolean |
isDependent(IAgentId agentId,
cz.cuni.amis.utils.token.IToken componentId)
Whether the controlled component is dependent on component (identified by 'componentId') of the agent identified
by 'agentId'.
|
boolean |
isUsedBy(IAgentId agentId)
Tells whether the agent identified by 'agentId' is currently using the controlled component, i.e., this component controller
registers the component to agent's
ILifecycleBus and is watching it for auto start/stop/pause/resume/... |
awaitState, awaitState, fatalError, fatalError, getComponent, getComponentControl, getFatalError, getState, inState, isBroadcastingEvents, isPaused, isRunning, manualKill, manualPause, manualResume, manualStart, manualStartPaused, manualStop, notInState, setBroadcastingEventsaddComponentBus, removeComponentBusgetComponentIdboolean isUsedBy(IAgentId agentId)
ILifecycleBus and is watching it for auto start/stop/pause/resume/...agentId - boolean isDependent(IAgentId agentId, cz.cuni.amis.utils.token.IToken componentId)
Note that two IComponent belonging to different agents may have the same 'componentId'.
agentId - componentId - boolean isDependent(IAgentId agentId, IComponent component)
component - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.