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.


Field Summary
(package private)  java.util.Vector chosenTasks
           
(package private) static boolean DEBUG
           
(package private) static java.lang.String em
           
(package private)  java.util.Vector failedTasks
           
(package private) static java.lang.String loc
           
(package private)  PL_Planner myPlan
           
(package private)  Task myTask
           
(package private)  java.lang.String name
           
(package private)  java.util.Vector objectives
           
(package private)  java.util.Vector objectivesAddressed
           
(package private)  java.util.Vector objectivesRemaining
           
(package private)  Conjunction parent
           
(package private) static PL_DummyTask PL_DummyTask
           
(package private)  java.util.Vector possibleTasks
           
(package private)  java.util.Vector provides
           
private static int uniqueID
           
(package private)  java.util.Vector unsatisfiedObjectives
           
(package private) static java.lang.String wm
           
 
Fields inherited from class Node
ac, em, loc, peData
 
Constructor Summary
ObjectiveCell()
           
ObjectiveCell(java.util.Vector objectiveList)
           
 
Method Summary
 void addObjectivesAddressed(java.util.Vector v)
           
 void addObjectivesAddressedUniquely(Predicate p1)
           
 void addObjectivesAddressedUniquely(java.util.Vector v)
           
 void addProvides(PEComponentData p)
           
 void addProvides(java.util.Vector v)
           
 Task getMyTask()
           
 java.lang.String getName()
           
 java.util.Vector getObjectives()
           
 java.util.Vector getObjectivesRemaining()
          Find undone objectives by subtracting objectivesAddressed.
 Conjunction getParent()
           
 java.util.Vector getProvides()
           
 boolean isSameOrMoreGeneralThan(ObjectiveCell oc)
           
 void print()
           
 void print(java.lang.String indent)
           
 void propagateAttributes()
          The Attributes of an ObjectiveCell are the combined Attributes of the chosenTasks.
 void removeObjectivesAddressed(java.util.Vector v)
           
 void setMyTask(Task t)
           
 void setParent(Conjunction c)
           
 java.lang.String toString()
           
 
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
 

Field Detail

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
Constructor Detail

ObjectiveCell

public ObjectiveCell(java.util.Vector objectiveList)

ObjectiveCell

public ObjectiveCell()
Method Detail

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()