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

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IAgentStateDebug, IAgentStateDown, IAgentStateFailed, IAgentStateFailing, IAgentStateGoingDown, IAgentStateGoingUp, IAgentStateInstantiated, IAgentStatePaused, IAgentStatePausing, IAgentStateResumed, IAgentStateResuming, IAgentStateRunning, IAgentStateStarted, IAgentStateStartedPaused, IAgentStateStarting, IAgentStateStartingPaused, IAgentStateStopped, IAgentStateStopping, IAgentStateUp, IBotStateHelloBotReceived, IBotStateInited, IBotStatePassword, IBotStateSendingInit, IBotStateSpawned
All Known Implementing Classes:
AgentState, AgentStateDebug, AgentStateFailed, AgentStateFailing, AgentStateInstantiated, AgentStatePaused, AgentStatePausing, AgentStateResumed, AgentStateResuming, AgentStateStarted, AgentStateStartedPaused, AgentStateStarting, AgentStateStartingPaused, AgentStateStopped, AgentStateStopping, BotStateHelloBotReceived, BotStateInited, BotStatePassword, BotStateSendingInit, BotStateSpawned

public interface IAgentState
extends java.io.Serializable


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

Method Detail

isState

boolean isState(java.lang.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(java.lang.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

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

Returns: