Package jadex.bdi.annotation
Enum Class ExcludeMode
- All Implemented Interfaces:
Serializable
,Comparable<ExcludeMode>
,Constable
The exclude mode determines when and if a plan is removed from the applicable plans list (APL).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe plan is never removed.The plan is removed after it has been executed once, but only when it exited with an exception.The plan is removed after it has been executed once, but only when it exited without an exception.The plan is removed after it has been executed once, regardless of success or failure or abortion. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ExcludeMode
getExcludeMode
(String name) Convert from string to enum.static ExcludeMode
Returns the enum constant of this class with the specified name.static ExcludeMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Never
The plan is never removed. -
WhenTried
The plan is removed after it has been executed once, regardless of success or failure or abortion. -
WhenFailed
The plan is removed after it has been executed once, but only when it exited with an exception. -
WhenSucceeded
The plan is removed after it has been executed once, but only when it exited without an exception.
-
-
Field Details
-
str
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getExcludeMode
Convert from string to enum.
-