org.apache.commons.scxml.model
Class Parallel

java.lang.Object
  extended byorg.apache.commons.scxml.model.TransitionTarget
      extended byorg.apache.commons.scxml.model.Parallel

public class Parallel
extends TransitionTarget

The class in this SCXML object model that corresponds to the <parallel> SCXML element, which is a wrapper element to encapsulate parallel state machines. For the <parallel> element to be useful, each of its <state> substates must itself be complex, that is, one with either <state> or <parallel> children.


Constructor Summary
Parallel()
          Constructor.
 
Method Summary
 void addState(State state)
          Add a State to the list of parallel state machines contained in this Parallel.
 Set getStates()
          Get the set of parallel state machines contained in this Parallel.
 
Methods inherited from class org.apache.commons.scxml.model.TransitionTarget
getDatamodel, getId, getOnEntry, getOnExit, getParent, getParentState, setDatamodel, setId, setOnEntry, setOnExit, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parallel

public Parallel()
Constructor.

Method Detail

getStates

public final Set getStates()
Get the set of parallel state machines contained in this Parallel.

Returns:
Returns the state.

addState

public final void addState(State state)
Add a State to the list of parallel state machines contained in this Parallel.

Parameters:
state - The state to add.


Copyright © 2005-2006 The Apache Software Foundation. All Rights Reserved.