Enum Class SmartContractStateMachine.States
java.lang.Object
java.lang.Enum<SmartContractStateMachine.States>
net.finmath.smartcontract.statemachine.SmartContractStateMachine.States
- All Implemented Interfaces:
Serializable
,Comparable<SmartContractStateMachine.States>
,Constable
- Enclosing class:
SmartContractStateMachine
The states of a smart derivative contract.
- 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 waiting state of the contractThe initial state of the contract, before it comes ACTIVE.The pseudo-state (junction) performing the maturity check.The pseudo-state (junction) performing the pre-funding check.The contract performing a settlementThe pseudo-state (junction) performing the pre-funding check.The contract being terminated due to insufficient margin (i.e.The contract being terminated due to insufficient pre-fundingThe contract being terminated by maturing. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SmartContractStateMachine.States[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCEPTION
The initial state of the contract, before it comes ACTIVE. -
ACTIVE
The waiting state of the contract -
SETTLEMENT
The contract performing a settlement -
TERMINATED_BY_INSUFFICIENT_PREFUNDING
The contract being terminated due to insufficient pre-funding -
TERMINATED_BY_INSUFFICIENT_MARGIN
The contract being terminated due to insufficient margin (i.e. the settlement could only be carried out partially) -
TERMINATED_BY_MATURITY
The contract being terminated by maturing. -
PREFUNDING_CHECK
The pseudo-state (junction) performing the pre-funding check. -
SETTLEMENT_CHECK
The pseudo-state (junction) performing the pre-funding check. -
MATURITY_CHECK
The pseudo-state (junction) performing the maturity check.
-
-
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
-