cz.cuni.amis.pogamut.base.component.controller
Interface IComponentController<COMPONENT extends IComponent>

All Superinterfaces:
IComponent, IComponentControllerBase<COMPONENT>
All Known Implementing Classes:
ComponentController

public interface IComponentController<COMPONENT extends IComponent>
extends IComponentControllerBase<COMPONENT>

The component controller is meant for simple IComponent NOT ISharedComponents (for them, use ISharedComponentController 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.

For more information, how IComponentController should behave, see (quite exhausting) javadoc for its concrete implementation ComponentController.


Method Summary
 boolean isDependent(IComponent component)
          Whether the controlled component is dependent on 'component'.
 boolean isDependent(IToken componentId)
          Whether the controlled component is dependent on the component identified by 'componentId'.
 
Methods inherited from interface cz.cuni.amis.pogamut.base.component.controller.IComponentControllerBase
awaitState, awaitState, fatalError, fatalError, getComponent, getComponentControl, getFatalError, getState, inState, isBroadcastingEvents, isPaused, isRunning, manualKill, manualPause, manualResume, manualStart, manualStartPaused, manualStop, notInState, setBroadcastingEvents
 
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponent
getComponentId
 

Method Detail

isDependent

boolean isDependent(IToken componentId)
Whether the controlled component is dependent on the component identified by 'componentId'.

Parameters:
componentId -
Returns:

isDependent

boolean isDependent(IComponent component)
Whether the controlled component is dependent on 'component'.

Parameters:
component -
Returns: