Package repast.simphony.context
Enum ContextEvent.EventType
- java.lang.Object
-
- java.lang.Enum<ContextEvent.EventType>
-
- repast.simphony.context.ContextEvent.EventType
-
- All Implemented Interfaces:
Serializable
,Comparable<ContextEvent.EventType>
- Enclosing class:
- ContextEvent<T>
public static enum ContextEvent.EventType extends Enum<ContextEvent.EventType>
Enum of the types of events.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGENT_ADDED
AGENT_MOVED
AGENT_REMOVED
PROJECTION_ADDED
PROJECTION_REMOVED
SUBCONTEXT_ADDED
SUBCONTEXT_REMOVED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContextEvent.EventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContextEvent.EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AGENT_ADDED
public static final ContextEvent.EventType AGENT_ADDED
-
AGENT_REMOVED
public static final ContextEvent.EventType AGENT_REMOVED
-
AGENT_MOVED
public static final ContextEvent.EventType AGENT_MOVED
-
PROJECTION_ADDED
public static final ContextEvent.EventType PROJECTION_ADDED
-
PROJECTION_REMOVED
public static final ContextEvent.EventType PROJECTION_REMOVED
-
SUBCONTEXT_ADDED
public static final ContextEvent.EventType SUBCONTEXT_ADDED
-
SUBCONTEXT_REMOVED
public static final ContextEvent.EventType SUBCONTEXT_REMOVED
-
-
Method Detail
-
values
public static ContextEvent.EventType[] 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 (ContextEvent.EventType c : ContextEvent.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContextEvent.EventType 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
-
-