org.apache.taglibs.rdc.scxml
Class Status

java.lang.Object
  extended by org.apache.taglibs.rdc.scxml.Status

public class Status
extends java.lang.Object

The encapsulation of the current state of a state machine.

Author:
Jaroslav Gergic, Rahul Akolkar

Constructor Summary
Status()
          Constructor
 
Method Summary
 java.util.Set getAllStates()
          Get the complete states configuration
 java.util.Collection getEvents()
          Get the events that are currently queued.
 java.util.Set getStates()
          Get the states configuration (leaf only).
 boolean isFinal()
          Have we reached a final configuration for this state machine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Status

public Status()
Constructor

Method Detail

isFinal

public boolean isFinal()
Have we reached a final configuration for this state machine. True - if all the states are final and there are not events pending from the last step. False - otherwise.

Returns:
Whether a final configuration has been reached.

getStates

public java.util.Set getStates()
Get the states configuration (leaf only).

Returns:
Returns the states configuration - simple (leaf) states only.

getEvents

public java.util.Collection getEvents()
Get the events that are currently queued.

Returns:
The events that are currently queued.

getAllStates

public java.util.Set getAllStates()
Get the complete states configuration

Returns:
complete states configuration including simple states and their complex ancestors up to the root.


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.