Package jsl.modeling.elements.entity
Enum EntityType.SendOption
- java.lang.Object
-
- java.lang.Enum<EntityType.SendOption>
-
- jsl.modeling.elements.entity.EntityType.SendOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EntityType.SendOption>
- Enclosing class:
- EntityType
public static enum EntityType.SendOption extends java.lang.Enum<EntityType.SendOption>
SendOption {DIRECT, SEQ, BY_TYPE} DIRECT, client must use setDirectEntityReceiver() to set the receiver SEQ, entity uses predefined sequence in its EntityType BY_TYPE, entity uses its EntityType to determine next receiver NONE, there is no option specified, will cause exception when sending entities unless behavior is overridden
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntityType.SendOption
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EntityType.SendOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final EntityType.SendOption NONE
-
DIRECT
public static final EntityType.SendOption DIRECT
-
SEQ
public static final EntityType.SendOption SEQ
-
BY_TYPE
public static final EntityType.SendOption BY_TYPE
-
BY_SENDER
public static final EntityType.SendOption BY_SENDER
-
-
Method Detail
-
values
public static EntityType.SendOption[] 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 (EntityType.SendOption c : EntityType.SendOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityType.SendOption valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-