|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.common.state.MachineState<EnumState>
EnumState
- public class MachineState<EnumState>
This is the base class for the basic support of Finite State Machine in GoldenGate.
One need to implement an Enum class to use with it.
Note: the type EnumSet< ? > is in fact of type EnumSet< EnumState >
Constructor Summary | |
---|---|
MachineState(EnumState initialState)
Initialize with an initialState but no association (Machine State is empty) |
|
MachineState(EnumState initialState,
ConcurrentHashMap<EnumState,EnumSet<?>> map)
Initialize with an initialState |
Method Summary | |
---|---|
EnumSet<?> |
addNewAssociation(EnumState state,
EnumSet<?> set)
Add a new association from one state to a set of acceptable following states (can replace an existing association) |
EnumSet<?> |
addNewAssociation(Transition<EnumState> elt)
Add a new association from one state to a set of acceptable following states (can replace an existing association) |
EnumState |
getCurrent()
Return the current application state. |
void |
release()
Release the Machine State |
EnumSet<?> |
removeAssociation(EnumState state)
Remove an association from one state to any acceptable following states |
EnumState |
setCurrent(EnumState desiredState)
Sets the current application state. |
EnumState |
setDryCurrent(EnumState desiredState)
Sets the current application state, but no exception if not compatible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MachineState(EnumState initialState, ConcurrentHashMap<EnumState,EnumSet<?>> map)
initialState
- initial MachineStatemap
- the association of state and set of acceptable following statespublic MachineState(EnumState initialState)
initialState
- initial MachineStateMethod Detail |
---|
public EnumSet<?> addNewAssociation(EnumState state, EnumSet<?> set)
state
- set
- the new association
public EnumSet<?> addNewAssociation(Transition<EnumState> elt)
elt
-
public EnumSet<?> removeAssociation(EnumState state)
state
- the state to remove any acceptable following states
public EnumState getCurrent()
public EnumState setCurrent(EnumState desiredState) throws IllegalFiniteStateException
desiredState
-
IllegalFiniteStateException
- if the state is not allowedpublic EnumState setDryCurrent(EnumState desiredState)
desiredState
-
public void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |