Class ObjectiveCell
java.lang.Object
|
+--Node
|
+--ObjectiveCell
- public class ObjectiveCell
- extends Node
ObjectiveCells contain a set of ANDed predicate goals that the
planner will try to achieve, and a list of the tasks that the
planner has selected to achieve them. An ObjectiveCell has one or
more Tasks as children, and a Conjunction as parent.
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 |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
name
java.lang.String name
myPlan
PL_Planner myPlan
myTask
Task myTask
parent
Conjunction parent
objectives
java.util.Vector objectives
possibleTasks
java.util.Vector possibleTasks
chosenTasks
java.util.Vector chosenTasks
failedTasks
java.util.Vector failedTasks
unsatisfiedObjectives
java.util.Vector unsatisfiedObjectives
objectivesRemaining
java.util.Vector objectivesRemaining
objectivesAddressed
java.util.Vector objectivesAddressed
provides
java.util.Vector provides
PL_DummyTask
static PL_DummyTask PL_DummyTask
DEBUG
static boolean DEBUG
uniqueID
private static int uniqueID
em
static java.lang.String em
wm
static java.lang.String wm
loc
static java.lang.String loc
ObjectiveCell
public ObjectiveCell(java.util.Vector objectiveList)
ObjectiveCell
public ObjectiveCell()
propagateAttributes
public void propagateAttributes()
- The Attributes of an ObjectiveCell are the combined Attributes of the
chosenTasks.
- Overrides:
- propagateAttributes in class Node
isSameOrMoreGeneralThan
public boolean isSameOrMoreGeneralThan(ObjectiveCell oc)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
print
public void print()
print
public void print(java.lang.String indent)
addObjectivesAddressed
public void addObjectivesAddressed(java.util.Vector v)
addObjectivesAddressedUniquely
public void addObjectivesAddressedUniquely(java.util.Vector v)
addObjectivesAddressedUniquely
public void addObjectivesAddressedUniquely(Predicate p1)
removeObjectivesAddressed
public void removeObjectivesAddressed(java.util.Vector v)
getObjectives
public java.util.Vector getObjectives()
getName
public java.lang.String getName()
getObjectivesRemaining
public java.util.Vector getObjectivesRemaining()
- Find undone objectives by subtracting objectivesAddressed.
setParent
public void setParent(Conjunction c)
getParent
public Conjunction getParent()
setMyTask
public void setMyTask(Task t)
getMyTask
public Task getMyTask()
addProvides
public void addProvides(PEComponentData p)
addProvides
public void addProvides(java.util.Vector v)
getProvides
public java.util.Vector getProvides()