Class Conjunction

java.lang.Object
  |
  +--Node
        |
        +--Conjunction

public class Conjunction
extends Node

Conjunctions represent AND and OR branches in the plan, allowing the scheduler to select different branches at run time if a branch is ORed. Each Conjunction has a KnowledgeBase where information about the state of the plan at that point is stored. Children of a Conjunction node may be either Conjunctions or ObjectiveCells. A Conjunction's parent may be a Task or another Conjunction.


Field Summary
(package private) static int andCount
           
(package private)  java.util.Vector children
           
(package private) static boolean DEBUG
           
(package private) static int dummyCount
           
(package private) static java.lang.String em
           
(package private)  KnowledgeBase kB
           
(package private) static java.lang.String loc
           
(package private)  PL_Planner myPlan
           
(package private)  Task myTask
           
(package private)  java.lang.String name
           
(package private) static int orCount
           
(package private)  java.lang.Object parent
           
(package private)  int type
           
(package private) static java.lang.String wm
           
 
Fields inherited from class Node
ac, em, loc, peData
 
Constructor Summary
Conjunction(int t)
           
Conjunction(java.lang.String s)
           
 
Method Summary
 void addChild(java.lang.Object o)
           
 java.util.Vector getChildren()
           
 KnowledgeBase getKB()
           
 KnowledgeBase getKBClone()
           
 java.lang.String getName()
           
 java.lang.Object getParent()
           
static void main(java.lang.String[] args)
           
 void propagateAttributes()
          The Attributes of a Conjunction are the combined Attributes of the children.
 void setParent(java.lang.Object o)
           
 void setParentsInTree()
           
 void setTaskInTree(Task t)
          Propagate the value of myTask through a tree of Conjunctions, stopping when the leaf ObjectiveCells have been set
 java.lang.String toString()
           
 void treePrint()
           
 void treePrint(java.lang.String indent)
           
 
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

parent

java.lang.Object parent

children

java.util.Vector children

myPlan

PL_Planner myPlan

myTask

Task myTask

type

int type

kB

KnowledgeBase kB

name

java.lang.String name

em

static java.lang.String em

wm

static java.lang.String wm

loc

static java.lang.String loc

DEBUG

static boolean DEBUG

andCount

static int andCount

orCount

static int orCount

dummyCount

static int dummyCount
Constructor Detail

Conjunction

public Conjunction(int t)

Conjunction

public Conjunction(java.lang.String s)
Method Detail

propagateAttributes

public void propagateAttributes()
The Attributes of a Conjunction are the combined Attributes of the children.
Overrides:
propagateAttributes in class Node

getParent

public java.lang.Object getParent()

getKB

public KnowledgeBase getKB()

getKBClone

public KnowledgeBase getKBClone()

setParentsInTree

public void setParentsInTree()

setTaskInTree

public void setTaskInTree(Task t)
Propagate the value of myTask through a tree of Conjunctions, stopping when the leaf ObjectiveCells have been set

treePrint

public void treePrint()

treePrint

public void treePrint(java.lang.String indent)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setParent

public void setParent(java.lang.Object o)

getName

public java.lang.String getName()

addChild

public void addChild(java.lang.Object o)

getChildren

public java.util.Vector getChildren()

main

public static void main(java.lang.String[] args)