objectgen.activitymodel
Class Alternative

java.lang.Object
  extended byobjectgen.activitymodel.Alternative
All Implemented Interfaces:
java.lang.Cloneable, IControlFlow, java.io.Serializable

public class Alternative
extends java.lang.Object
implements IControlFlow, java.lang.Cloneable, java.io.Serializable

This class represent one of the alternatives of a desicion node

See Also:
Serialized Form

Field Summary
protected  java.lang.String condition
           
protected  java.lang.String next
           
 
Constructor Summary
Alternative()
          Creates a new instance of Alternative
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getCondition()
           
 java.lang.String getNext()
          Gets the next node *
 boolean isNext(Activity node)
          Checks if is next
 void setCondition(java.lang.String condition)
           
 void setNext(Activity next)
          Sets the next node *
 void setNext(java.lang.String next)
           
 java.lang.String toString()
          For testing purpouse
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

condition

protected java.lang.String condition

next

protected java.lang.String next
Constructor Detail

Alternative

public Alternative()
Creates a new instance of Alternative

Method Detail

getCondition

public java.lang.String getCondition()

setCondition

public void setCondition(java.lang.String condition)

getNext

public java.lang.String getNext()
Description copied from interface: IControlFlow
Gets the next node *

Specified by:
getNext in interface IControlFlow

setNext

public void setNext(Activity next)
Description copied from interface: IControlFlow
Sets the next node *

Specified by:
setNext in interface IControlFlow

setNext

public void setNext(java.lang.String next)
Specified by:
setNext in interface IControlFlow

isNext

public boolean isNext(Activity node)
Checks if is next

Specified by:
isNext in interface IControlFlow

toString

public java.lang.String toString()
For testing purpouse


clone

public java.lang.Object clone()

equals

public boolean equals(java.lang.Object o)