|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectobjectgen.activitymodel.Activity
objectgen.activitymodel.Decision
Field Summary | |
protected static int |
IdIndex
Allowa to calculate an id for the desicions |
protected java.util.ArrayList |
next
Stores the several alternatives of a decision |
Fields inherited from class objectgen.activitymodel.Activity |
description, id, participant |
Constructor Summary | |
Decision()
Creates a new instance of Decision |
Method Summary | |
int |
alternativeNumber()
Return the number of alternatives |
static Decision |
BuildDesicion(Decision d,
Alternative alt)
This method allos to create decisions with only one alternative for test objectives |
java.lang.String |
getConditionForNode(java.lang.String id)
Returns the condition to go to the activity with the specified id. |
Alternative |
getFirstAlternative()
Paths has only one alternative |
java.lang.String |
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 |
void |
setId(java.lang.String id)
Overloaded. |
java.lang.String |
toString()
For testing purpouse |
Methods inherited from class objectgen.activitymodel.Activity |
BuildFinal, clone, equals, getDescription, getId, getParticipant, isFinal, isNext, setDescription, setNext, setNext, setParticipant |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.ArrayList next
protected static int IdIndex
Constructor Detail |
public Decision()
Method Detail |
public void setId(java.lang.String id)
setId
in class Activity
public boolean isDesicion()
isDesicion
in class Activity
public java.lang.String getNext()
getNext
in interface IControlFlow
getNext
in class Activity
public void setAlternative(Alternative alternative)
public Alternative getFirstAlternative()
public java.lang.String getConditionForNode(java.lang.String id)
public int alternativeNumber()
public java.util.Iterator iterator()
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public java.lang.String toString()
toString
in class Activity
public static Decision BuildDesicion(Decision d, Alternative alt)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |