edu.cmu.cs.coral.icf.plan_based.planners
Class PartialState

java.lang.Object
  |
  +--edu.cmu.cs.coral.icf.plan_based.planners.PartialState
Direct Known Subclasses:
PlannerGoal, PlannerState

public class PartialState
extends java.lang.Object
implements java.lang.Cloneable

Represents a subset of the Literal's true in a state

Since:
ICF 0.0
Version:
$Id$

Field Summary
protected  java.util.TreeSet literals
           
 
Constructor Summary
PartialState()
          Constructs a new PartialState
 
Method Summary
 void addLiteral(Literal lit)
           
 java.lang.Object clone()
          Clones this PartialState down to the level of Literal's.
 java.util.Set getLiterals()
           
 void removeLiteral(Literal lit)
           
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

literals

protected java.util.TreeSet literals
Constructor Detail

PartialState

public PartialState()
Constructs a new PartialState
Since:
ICF 0.0
Method Detail

clone

public java.lang.Object clone()
Clones this PartialState down to the level of Literal's. Literals included in this state should not be modified after calling clone.
Returns:
a clone of this PartialState
Overrides:
clone in class java.lang.Object
Since:
ICF 0.0

getLiterals

public java.util.Set getLiterals()

addLiteral

public void addLiteral(Literal lit)

removeLiteral

public void removeLiteral(Literal lit)