it.amattioli.workstate.core
Class MetaMachine

Show UML class diagram
java.lang.Object
  extended by it.amattioli.workstate.core.MetaState
      extended by it.amattioli.workstate.core.MetaRealState
          extended by it.amattioli.workstate.core.MetaCompositeState
              extended by it.amattioli.workstate.core.MetaSequentialState
                  extended by it.amattioli.workstate.core.MetaMachine
All Implemented Interfaces:
Receiver, Serializable

public class MetaMachine
extends MetaSequentialState
implements Serializable

See Also:
Serialized Form

Field Summary
static String OWNER_TAG
           
 
Constructor Summary
  MetaMachine(String tag, Configuration config, String id, EventRepository eventRepository, String ownerClass)
           
protected MetaMachine(String tag, String ownerClass)
           
 
Method Summary
 Event buildEvent(String name, Map<String,Object> stringParameters)
           
 Event buildEvent(String name, Map<String,Object> stringParameters, ConversionService conversionService)
           
 MetaState findMetaState(String tag)
           
 Configuration getConfig()
           
 boolean knowsEvent(String name)
          Controlla se questa macchina è in grado di interpretare l'evento il cui tag è passato come parametro.
 Machine newMachineInstance(CompositeState parent)
           
 Machine newMachineInstance(Object owner, CompositeState parent)
           
 Machine newMachineInstance(Object owner, CompositeState parent, StateMemento memento)
           
 State newState(CompositeState parent)
          Create a new State based on this meta-state.
 
Methods inherited from class it.amattioli.workstate.core.MetaSequentialState
checkAllowedSubstate, getInitialState
 
Methods inherited from class it.amattioli.workstate.core.MetaCompositeState
addMetaState, getSubstate, getSubstates, isAncestorOf, isSubstate, receive
 
Methods inherited from class it.amattioli.workstate.core.MetaRealState
addAttribute, checkAttribute, equals, getEntryAction, getExitAction, getTag, initialAttributesValues, isAllowedAttribute, toString
 
Methods inherited from class it.amattioli.workstate.core.MetaState
addAvailableEvents, addTransition, checkParentState, descendFrom, findTriggeredTransition, getAvailableEvents, getParent, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OWNER_TAG

public static final String OWNER_TAG
See Also:
Constant Field Values
Constructor Detail

MetaMachine

protected MetaMachine(String tag,
                      String ownerClass)

MetaMachine

public MetaMachine(String tag,
                   Configuration config,
                   String id,
                   EventRepository eventRepository,
                   String ownerClass)
Method Detail

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.