ar.edu.unr.fceia.bottallo
Class Transition

java.lang.Object
  extended by ar.edu.unr.fceia.bottallo.Transition
All Implemented Interfaces:
java.lang.Cloneable

public class Transition
extends java.lang.Object
implements java.lang.Cloneable

Represent a Statecharts transition


Field Summary
static byte CONNECTOR
           
static byte RING
           
static byte STATE
           
 
Constructor Summary
Transition()
          Creates a new instance of Transition
 
Method Summary
 java.lang.Object clone()
           
protected  boolean empty()
          Check if a transition has empty label
protected  java.lang.String getAction()
          Get the action part of a transition
protected  java.lang.String getCondition()
          Get the condition part of a transition
protected  java.lang.String getEnd()
          Get the end element(their id) of a transition
protected  byte getEndType()
          Get the type of the end element of a transition
protected  java.lang.String getEvent()
          Get the event part of a transition
protected  java.lang.String getLabel()
          Return the transition's label
protected  State getScope()
          Get the scope of the transition
protected  java.lang.String getStart()
          Return the start element(their id) of a transition
protected  byte getStartType()
          Get the type of the start element of a transition
protected  boolean isDefault()
          Check if the transition is a default transition
protected  void setAction(java.lang.String a)
          Set the action part in a transition's label
protected  void setCondition(java.lang.String c)
          Set the condition part in a transition's label
protected  void setDefault(boolean b)
          Set true if the transition is a default transition
protected  void setEnd(java.lang.String e)
          Set the end element(their id) of a transition
protected  void setEndType(byte b)
          Set the type of the end element of a transition
protected  void setEvent(java.lang.String e)
          Set the event part in a transition's label
protected  void setScope(State s)
          Set the scope of the transition
protected  void setStart(java.lang.String s)
          Set the start element(their id) of a transition
protected  void setStartType(byte b)
          Set the type of the start element of a transition
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE

public static final byte STATE
See Also:
Constant Field Values

CONNECTOR

public static final byte CONNECTOR
See Also:
Constant Field Values

RING

public static final byte RING
See Also:
Constant Field Values
Constructor Detail

Transition

public Transition()
Creates a new instance of Transition

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

setEvent

protected void setEvent(java.lang.String e)
Set the event part in a transition's label


getEvent

protected java.lang.String getEvent()
Get the event part of a transition


setCondition

protected void setCondition(java.lang.String c)
Set the condition part in a transition's label


getCondition

protected java.lang.String getCondition()
Get the condition part of a transition


setAction

protected void setAction(java.lang.String a)
Set the action part in a transition's label


getAction

protected java.lang.String getAction()
Get the action part of a transition


empty

protected boolean empty()
Check if a transition has empty label


getLabel

protected java.lang.String getLabel()
Return the transition's label


setStart

protected void setStart(java.lang.String s)
Set the start element(their id) of a transition


getStart

protected java.lang.String getStart()
Return the start element(their id) of a transition


setEnd

protected void setEnd(java.lang.String e)
Set the end element(their id) of a transition


getEnd

protected java.lang.String getEnd()
Get the end element(their id) of a transition


setStartType

protected void setStartType(byte b)
Set the type of the start element of a transition


getStartType

protected byte getStartType()
Get the type of the start element of a transition


setEndType

protected void setEndType(byte b)
Set the type of the end element of a transition


getEndType

protected byte getEndType()
Get the type of the end element of a transition


setDefault

protected void setDefault(boolean b)
Set true if the transition is a default transition


isDefault

protected boolean isDefault()
Check if the transition is a default transition


setScope

protected void setScope(State s)
Set the scope of the transition


getScope

protected State getScope()
Get the scope of the transition