it.amattioli.workstate.core
Class MetaMachine
java.lang.Object
it.amattioli.workstate.core.MetaState
it.amattioli.workstate.core.MetaRealState
it.amattioli.workstate.core.MetaCompositeState
it.amattioli.workstate.core.MetaSequentialState
it.amattioli.workstate.core.MetaMachine
- All Implemented Interfaces:
- Receiver, Serializable
public class MetaMachine
- extends MetaSequentialState
- implements Serializable
- See Also:
- Serialized Form
OWNER_TAG
public static final String OWNER_TAG
- See Also:
- Constant Field Values
MetaMachine
protected MetaMachine(String tag,
String ownerClass)
MetaMachine
public MetaMachine(String tag,
Configuration config,
String id,
EventRepository eventRepository,
String ownerClass)
newState
public State newState(CompositeState parent)
- Description copied from class:
MetaState
- Create a new
State based on this meta-state. Implementations of
this method must call MetaState.checkParentState(CompositeState) to check
that the passed state is admittable as parent state for the state that
will be created.
- Overrides:
newState in class MetaSequentialState
- Parameters:
parent - the parent state for the state that will be created
- Returns:
- the new state
newMachineInstance
public Machine newMachineInstance(Object owner,
CompositeState parent,
StateMemento memento)
throws WorkflowException
- Throws:
WorkflowException
newMachineInstance
public Machine newMachineInstance(Object owner,
CompositeState parent)
throws WorkflowException
- Throws:
WorkflowException
newMachineInstance
public Machine newMachineInstance(CompositeState parent)
throws WorkflowException
- Throws:
WorkflowException
buildEvent
public Event buildEvent(String name,
Map<String,Object> stringParameters)
throws WorkflowException
- Throws:
WorkflowException
buildEvent
public Event buildEvent(String name,
Map<String,Object> stringParameters,
ConversionService conversionService)
throws WorkflowException
- Throws:
WorkflowException
knowsEvent
public boolean knowsEvent(String name)
- Controlla se questa macchina è in grado di interpretare l'evento
il cui tag è passato come parametro.
- Parameters:
name - il tag dell'evento da verificare
- Returns:
- true se questa macchina è in grado di interpretare
l'evento, altrimenti false
getConfig
public Configuration getConfig()
- Overrides:
getConfig in class MetaState
findMetaState
public MetaState findMetaState(String tag)
Copyright © 2011. All Rights Reserved.