|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hops.dm.tad.plan
public class plan
contains a list of actions. It is indexed by the TaskId and his parent is identified with the DepQ (dependent question) DepQ-TaskId is an attribute-value in somewhere in othe plan. Stores also a link to its parent (subplanof). typedef struct { word DepQ; word taskid; stackact actset; plantype type; word subplanof; }plan;
| Field Summary | |
|---|---|
stackact |
actset
stack of actions |
java.lang.String |
DepQ
dependent question |
java.lang.String |
subplanof
parent plan name |
java.lang.String |
TaskId
name of the plan, answer to the DepQ |
plantype |
type
type of the plan |
| Constructor Summary | |
|---|---|
plan()
Creates a new instance of plan |
|
| Method Summary | |
|---|---|
void |
clear()
remove the action stack of this plan |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
copy(plan plansrc)
becomes a copy of the input plan |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
boolean |
equalsTo(plan _o)
Indicates whether a plan is "equal to" this one. |
int |
hashCode()
|
boolean |
is_empty()
Tests if this object has no values |
boolean |
is_executable(IS is)
Test if this plan is not empty but none of its actions can be executables because the conditions are false |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String DepQ
public java.lang.String TaskId
public stackact actset
public plantype type
public java.lang.String subplanof
| Constructor Detail |
|---|
public plan()
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean equalsTo(plan _o)
public boolean is_empty()
public java.lang.Object clone()
clone in class java.lang.Objectpublic void copy(plan plansrc)
public java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
public boolean is_executable(IS is)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||