|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.planner.Plan
public class Plan
This class represent a plan in the system.
The plan is accessed as a last-in-first-out (LIFO) stack.
Field Summary | |
---|---|
private SuperLinkID |
id
The id of the requester. |
private java.util.Stack<Step> |
steps
The stack of steps. |
Constructor Summary | |
---|---|
Plan()
Empty default constructor. |
Method Summary | |
---|---|
void |
add(Step step)
Adds a Step to this Plan . |
SuperLinkID |
getId()
Returns the id of the requester. |
java.util.Stack<Step> |
getSteps()
Gets the steps that make up this plan. |
void |
setId(SuperLinkID id)
Sets the id of the requester. |
int |
size()
Returns the size plan. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.util.Stack<Step> steps
private SuperLinkID id
Constructor Detail |
---|
public Plan()
Method Detail |
---|
public void add(Step step)
Step
to this Plan
.
step
- the Step
to be added to this Plan
public java.util.Stack<Step> getSteps()
public int size()
public void setId(SuperLinkID id)
id
- the id to setpublic SuperLinkID getId()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |