|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Node | +--Task
Tasks contain a Conjunction of Predicate specifications for their preconditions and outcomes, and a Vector of Predicate specifications for their parameters and provisions, so that the planner knows when and how they can be used. A Task node is parent to Conjunctions, and child to an ObjectiveCell.
Field Summary | |
(package private) java.util.Vector |
available
|
(package private) int |
circularityCount
|
(package private) static boolean |
DEBUG
|
(package private) static java.lang.String |
em
|
(package private) static int |
expectedProvisionsCount
|
(package private) static java.lang.String |
loc
|
(package private) PL_Planner |
myPlan
|
(package private) java.util.Hashtable |
outcomes
|
(package private) java.util.Vector |
outcomeSpecs
|
(package private) java.util.Vector |
outcomeVars
|
(package private) java.util.Vector |
parameterSpecs
|
(package private) ObjectiveCell |
parent
|
(package private) Conjunction |
preconditions
|
(package private) java.util.Vector |
preconditionSpecs
|
(package private) java.util.Vector |
predicatesAddressed
|
(package private) java.util.Vector |
provisionSpecs
|
(package private) java.util.Vector |
provisionVars
|
(package private) Conjunction |
subObjectives
|
(package private) java.util.Vector |
subObjectiveSpecs
|
(package private) java.lang.String |
varMapString
|
(package private) static java.lang.String |
wm
|
Fields inherited from class Node |
ac,
em,
loc,
peData |
Constructor Summary | |
Task(java.lang.String name,
java.lang.String type)
Constructor. |
Method Summary | |
void |
addOutcomeVariable(java.lang.String outcomeName,
Variable var)
Add a variable to the list of vars associated with an outcome name in the hashtable "outcomes". |
java.util.Vector |
addPredicatesAddressed(Predicate p)
|
java.util.Vector |
addPredicatesAddressed(java.util.Vector v)
|
boolean |
addressesPredicate(Predicate p2)
Determines whether this task has outcomeSpecs to address the Predicate argument. |
void |
addToOutcomeVars(Predicate p)
Removes Variables from a Predicate and adds them to Vector outcomeVars. |
void |
addToProvisionSpecs(Predicate p)
Adds a Predicate to a Vector of specifications of Task inputs. |
void |
addToProvisionVars(Predicate p)
Removes Variables from a Predicate and adds them to Vector ProvisionVars. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
Just tests to see if the class of Task is the same. |
java.lang.String |
getName()
|
java.util.Vector |
getOutcomeSpecs()
|
java.util.Vector |
getOutcomeVars()
|
ObjectiveCell |
getParent()
|
Conjunction |
getPreconditions()
|
java.util.Vector |
getPredicatesAddressed()
|
java.util.Vector |
getProvisionNames()
Returns a Vector of String names of provision variables for the Task. |
java.util.Vector |
getProvisions()
Returns names of provisions. |
java.util.Vector |
getProvisionSpecs()
Returns a Vector of Predicate specifications of Task inputs. |
Predicate |
getSpecificationOfVariable(java.lang.String varName,
java.util.Vector specList)
Find the specification that corresponds to the variable name. |
Conjunction |
getSubObjectives()
|
java.util.Vector |
getSubObjectiveSpecs()
|
java.util.Vector |
getTopicVarsFromPredVector(java.util.Vector pv)
|
java.util.Vector |
getUnAddressedProvisionsSpecs()
Return provisionSpecs of a Task that have not yet been addressed by Provides in ObjectiveCell parent. |
java.lang.String |
getVarMapString()
|
static void |
main(java.lang.String[] args)
|
void |
makeOutcome(java.lang.String outcomeName,
java.util.Vector vars)
Associate a vector of variables with an outcome name in the hashtable "outcomes". |
java.util.Vector |
makeProvidesForProvisions(Task parentTask,
KnowledgeBase kB)
Return a Vector of PEComponentData "provides" that describe which provision of the ObjectiveCell is connected to which provision of the Task below. |
java.util.Vector |
makeProvidesFromOtherOutcomesToProvisions(Task otherTask)
Connect an outcome of otherTask to a provision of this task. |
java.util.Vector |
makeProvidesFromOutcomesToParent(Task parentTask,
KnowledgeBase kB)
Looks for shared variables between outcomes of task and parent. |
Task |
makeTask()
Create a Task to correspond to this Task. |
java.util.Vector |
nextMakeProvidesForProvisions(Task parentTask,
KnowledgeBase kB)
This version of makeProvidesForProvisions looks to fill provision variables by making Provides between the vars and vars of the parent that they are unified with. |
void |
print()
|
void |
propagateAttributes()
The Attributes of a Task are the combined Attributes of the preconditions and the subobjectives. |
void |
setParent(ObjectiveCell o)
|
void |
setProvisions()
|
java.lang.String |
setVarMapString(java.lang.String inputNames)
|
boolean |
vectorsShareVariables(java.util.Vector vars1,
java.util.Vector specList1,
java.util.Vector vars2,
java.util.Vector specList2)
Return true if any Variables in the vectors match (i.e. |
Methods inherited from class Node |
checkAttributes,
convertAttributes,
getAttributeCell,
getAttributeFeatureAverage,
getAttributeFeatureNames,
getAttributeNames,
getCost,
getDuration,
getNodeChildren,
getQuality,
makeAttribute,
setCost,
setDuration,
setQuality,
updateAttributeFeature |
Methods inherited from class java.lang.Object |
|
Field Detail |
PL_Planner myPlan
ObjectiveCell parent
Conjunction subObjectives
Conjunction preconditions
int circularityCount
java.util.Hashtable outcomes
java.lang.String varMapString
java.util.Vector outcomeSpecs
java.util.Vector parameterSpecs
java.util.Vector provisionVars
java.util.Vector provisionSpecs
java.util.Vector outcomeVars
java.util.Vector preconditionSpecs
java.util.Vector subObjectiveSpecs
java.util.Vector available
java.util.Vector predicatesAddressed
static java.lang.String em
static java.lang.String wm
static java.lang.String loc
static boolean DEBUG
static int expectedProvisionsCount
Constructor Detail |
public Task(java.lang.String name, java.lang.String type)
Method Detail |
public java.lang.String getName()
public ObjectiveCell getParent()
public void setParent(ObjectiveCell o)
public java.util.Vector getOutcomeSpecs()
public java.util.Vector getOutcomeVars()
public java.util.Vector getSubObjectiveSpecs()
public Conjunction getSubObjectives()
public Conjunction getPreconditions()
public void propagateAttributes()
public java.util.Vector getPredicatesAddressed()
public java.util.Vector addPredicatesAddressed(Predicate p)
public java.util.Vector addPredicatesAddressed(java.util.Vector v)
public void addToProvisionVars(Predicate p)
public void addToOutcomeVars(Predicate p)
public void makeOutcome(java.lang.String outcomeName, java.util.Vector vars)
public void addOutcomeVariable(java.lang.String outcomeName, Variable var)
public java.lang.Object clone()
public boolean equals(java.lang.Object obj)
public boolean addressesPredicate(Predicate p2)
public java.util.Vector makeProvidesForProvisions(Task parentTask, KnowledgeBase kB)
public java.util.Vector nextMakeProvidesForProvisions(Task parentTask, KnowledgeBase kB)
public java.util.Vector makeProvidesFromOtherOutcomesToProvisions(Task otherTask)
public java.util.Vector makeProvidesFromOutcomesToParent(Task parentTask, KnowledgeBase kB)
public java.util.Vector getTopicVarsFromPredVector(java.util.Vector pv)
public boolean vectorsShareVariables(java.util.Vector vars1, java.util.Vector specList1, java.util.Vector vars2, java.util.Vector specList2)
public Task makeTask()
public void setProvisions()
public java.util.Vector getUnAddressedProvisionsSpecs()
public Predicate getSpecificationOfVariable(java.lang.String varName, java.util.Vector specList)
public java.util.Vector getProvisions()
public java.util.Vector getProvisionNames()
public java.lang.String setVarMapString(java.lang.String inputNames)
public java.lang.String getVarMapString()
public java.util.Vector getProvisionSpecs()
public void addToProvisionSpecs(Predicate p)
public void print()
public static void main(java.lang.String[] args)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |