Package com.quartetfs.fwk
Enum IAgent.State
- java.lang.Object
-
- java.lang.Enum<IAgent.State>
-
- com.quartetfs.fwk.IAgent.State
-
- All Implemented Interfaces:
Serializable,Comparable<IAgent.State>
- Enclosing interface:
- IAgent
public static enum IAgent.State extends Enum<IAgent.State>
Enumeration of the possible states of anagent.- Author:
- ActiveViam
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INITThe state of aninitializedagent.NONEThe state of an agent that has not beeninitializedyet.PAUSEDThe state of apausedagent.STARTEDThe state of astartedagent.STOPPEDThe state of astoppedagent.TRANSIENTAn agent is in a transient state when it is in the middle of a statetransition.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IAgent.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static IAgent.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final IAgent.State NONE
The state of an agent that has not beeninitializedyet.
-
INIT
public static final IAgent.State INIT
The state of aninitializedagent. It has not beenstartedyet.
-
STARTED
public static final IAgent.State STARTED
The state of astartedagent. It is currently active and performing its work.
-
PAUSED
public static final IAgent.State PAUSED
-
STOPPED
public static final IAgent.State STOPPED
-
TRANSIENT
public static final IAgent.State TRANSIENT
An agent is in a transient state when it is in the middle of a statetransition. An agent in a transient state is not allowed to enter another state transition until it is back to a "regular" state.
-
-
Method Detail
-
values
public static IAgent.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IAgent.State c : IAgent.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IAgent.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-