org.apache.commons.graph.domain.statemachine
Class Transition

java.lang.Object
  extended byorg.apache.commons.graph.domain.statemachine.Transition
All Implemented Interfaces:
Edge, Named

public class Transition
extends java.lang.Object
implements Edge, Named

Description of the Class


Field Summary
private  java.lang.String action
           
static java.lang.String EPSILON
          Description of the Field
private  java.lang.String guard
           
private  java.lang.String name
           
private  java.lang.String output
           
private  State source
           
private  State target
           
private  java.lang.String trigger
           
 
Constructor Summary
Transition(java.lang.String name, State source, State target)
          Constructor for the Transition object
 
Method Summary
 java.lang.String getAction()
          Gets the action attribute of the Transition object
 java.lang.String getGuard()
          Gets the guard attribute of the Transition object
 java.lang.String getName()
          Gets the name attribute of the Transition object
 java.lang.String getOutput()
          Gets the output attribute of the Transition object
 State getSource()
          Gets the source attribute of the Transition object
 State getTarget()
          Gets the target attribute of the Transition object
 void setAction(java.lang.String action)
          Sets the action attribute of the Transition object
 void setGuard(java.lang.String guard)
          Sets the guard attribute of the Transition object
 void setOutput(java.lang.String output)
          Sets the output attribute of the Transition object
 void setTrigger(java.lang.String trigger)
          Sets the action attribute of the Transition object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

source

private State source

target

private State target

action

private java.lang.String action

guard

private java.lang.String guard

output

private java.lang.String output

trigger

private java.lang.String trigger

EPSILON

public static final java.lang.String EPSILON
Description of the Field

See Also:
Constant Field Values
Constructor Detail

Transition

public Transition(java.lang.String name,
                  State source,
                  State target)
Constructor for the Transition object

Parameters:
name -
source -
target -
Method Detail

getName

public java.lang.String getName()
Gets the name attribute of the Transition object

Specified by:
getName in interface Named

getSource

public State getSource()
Gets the source attribute of the Transition object


getTarget

public State getTarget()
Gets the target attribute of the Transition object


setTrigger

public void setTrigger(java.lang.String trigger)
Sets the action attribute of the Transition object


setAction

public void setAction(java.lang.String action)
Sets the action attribute of the Transition object


getAction

public java.lang.String getAction()
Gets the action attribute of the Transition object


setGuard

public void setGuard(java.lang.String guard)
Sets the guard attribute of the Transition object


getGuard

public java.lang.String getGuard()
Gets the guard attribute of the Transition object


getOutput

public java.lang.String getOutput()
Gets the output attribute of the Transition object


setOutput

public void setOutput(java.lang.String output)
Sets the output attribute of the Transition object