objectgen.activitymodel
Class Decision

java.lang.Object
  extended byobjectgen.activitymodel.Activity
      extended byobjectgen.activitymodel.Decision
All Implemented Interfaces:
java.lang.Cloneable, java.util.Iterator

public class Decision
extends Activity
implements java.util.Iterator


Field Summary
protected  java.util.ArrayList next
           
 
Fields inherited from class objectgen.activitymodel.Activity
description, id
 
Constructor Summary
Decision()
          Creates a new instance of Decision
 
Method Summary
 Alternative getFirstAlternative()
          Paths has only one alternative
 Activity getNext()
          Always returns null
 boolean hasNext()
           
 boolean isDesicion()
          Always returns true
 java.util.Iterator iterator()
           
 java.lang.Object next()
           
 void remove()
          Not implemented
 void setAlternative(Alternative alternative)
          Add a new alternative branch
 java.lang.String toString()
          For testing purpouse
 
Methods inherited from class objectgen.activitymodel.Activity
BuildFinal, clone, getDescription, getId, isFinal, setDescription, setId, setNext
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

next

protected java.util.ArrayList next
Constructor Detail

Decision

public Decision()
Creates a new instance of Decision

Method Detail

isDesicion

public boolean isDesicion()
Always returns true

Overrides:
isDesicion in class Activity

getNext

public Activity getNext()
Always returns null

Overrides:
getNext in class Activity

setAlternative

public void setAlternative(Alternative alternative)
Add a new alternative branch


getFirstAlternative

public Alternative getFirstAlternative()
Paths has only one alternative


iterator

public java.util.Iterator iterator()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Not implemented

Specified by:
remove in interface java.util.Iterator

toString

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

Overrides:
toString in class Activity