cz.cuni.amis.pogamut.base.agent.state.level0
Interface IAgentState

Package class diagram package IAgentState
All Superinterfaces:
Serializable
All Known Subinterfaces:
IAgentStateDebug, IAgentStateDown, IAgentStateFailed, IAgentStateFailing, IAgentStateGoingDown, IAgentStateGoingUp, IAgentStateInstantiated, IAgentStatePaused, IAgentStatePausing, IAgentStateResumed, IAgentStateResuming, IAgentStateRunning, IAgentStateStarted, IAgentStateStartedPaused, IAgentStateStarting, IAgentStateStartingPaused, IAgentStateStopped, IAgentStateStopping, IAgentStateUp
All Known Implementing Classes:
AgentState, AgentStateDebug, AgentStateFailed, AgentStateFailing, AgentStateInstantiated, AgentStatePaused, AgentStatePausing, AgentStateResumed, AgentStateResuming, AgentStateStarted, AgentStateStartedPaused, AgentStateStarting, AgentStateStartingPaused, AgentStateStopped, AgentStateStopping

public interface IAgentState
extends Serializable


Method Summary
 String getDescription()
          Additional information about the state - this is inlcuded to hashCode() and equals() methods.
 boolean isNotState(Class... states)
          Provides convenient method for testing whether the agent is not in any of 'states'.
 boolean isState(Class... states)
          Provides convenient method for testing whether the agent is in one of 'states'.
 

Method Detail

isState

boolean isState(Class... states)
Provides convenient method for testing whether the agent is in one of 'states'.

Returns whether this state is one of the 'states' (using instanceof).

Parameters:
states -
Returns:

isNotState

boolean isNotState(Class... states)
Provides convenient method for testing whether the agent is not in any of 'states'.

Returns whether this state is not any of the 'states' (using instanceof).

Parameters:
states -
Returns:

getDescription

String getDescription()
Additional information about the state - this is inlcuded to hashCode() and equals() methods.

Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.