Enum Class SmartContractStateMachine.Events
java.lang.Object
java.lang.Enum<SmartContractStateMachine.Events>
net.finmath.smartcontract.statemachine.SmartContractStateMachine.Events
- All Implemented Interfaces:
Serializable
,Comparable<SmartContractStateMachine.Events>
,Constable
- Enclosing class:
SmartContractStateMachine
The events of a smart derivative contract. Events trigger the transitions between states.
- Author:
- Christian Fries
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe continue event will trigger testing if the contract ia allowed to continue.The incept event will activate a smart derivative contract.The settle event will trigger settlement. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SmartContractStateMachine.Events[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCEPT
The incept event will activate a smart derivative contract. Moving from INCEPTION to ACTIVE. -
SETTLE
The settle event will trigger settlement. Moving from ACTIVE to SETTLEMENT. -
CONTINUE
The continue event will trigger testing if the contract ia allowed to continue. Moving from SETTLEMENT to ACTIVE if all tests are passed. -
TERMINATE_BY_INSUFFICIENT_PREFUNDING
-
TERMINATE_BY_INSUFFICIENT_MARGIN
-
MATURE
-
-
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
-