|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.umich.soar.hpp.HPPAction
public class HPPAction
A plan action that supports arbitrary hierarchy via sub-plans and conditionality based upon a conjunctive set of variable name/value pairs.
| Constructor Summary | |
|---|---|
HPPAction(java.lang.String name,
HPPConstraint[] conditions,
HPPlan subPlan)
Advanced constructor - supports custom initial condition set via array |
|
HPPAction(java.lang.String name,
HPPlan subPlan)
Basic constructor - initializes to empty condition set |
|
| Method Summary | |
|---|---|
void |
addCondition(HPPConstraint newConstraint)
Support appending to the condition set |
java.util.Iterator<HPPConstraint> |
getConditions()
Supports read-only access to condition set |
java.lang.String |
getName()
Supports read-only access to the action name |
HPPlan |
getSubPlan()
Supports read-only access to the sub-plan |
boolean |
isSatisfied(HPPKnowledgeBase kb)
Evaluates satisfaction of the action relative to a supplied knowledge base |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HPPAction(java.lang.String name,
HPPlan subPlan)
name - action namesubPlan - action sub-plan (or null if none)
public HPPAction(java.lang.String name,
HPPConstraint[] conditions,
HPPlan subPlan)
name - action nameconditions - action sub-plansubPlan - initial condition set| Method Detail |
|---|
public java.lang.String getName()
public HPPlan getSubPlan()
public java.util.Iterator<HPPConstraint> getConditions()
public void addCondition(HPPConstraint newConstraint)
newConstraint - condition to addpublic boolean isSatisfied(HPPKnowledgeBase kb)
kb - set of variable name/value pairs
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||