Package moise.oe
Class PlanInstance
- java.lang.Object
-
- moise.common.MoiseElement
-
- moise.oe.PlanInstance
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
,Identifiable
public class PlanInstance extends MoiseElement
Represents a plan instance inside a scheme- Author:
- jomi
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<GoalInstance>
goals
protected GoalInstance
head
protected SchemeInstance
sch
private static long
serialVersionUID
protected Plan
spec
-
Fields inherited from class moise.common.MoiseElement
debug
-
-
Constructor Summary
Constructors Constructor Description PlanInstance(Plan p)
-
Method Summary
Modifier and Type Method Description java.util.List<GoalInstance>
getGoals()
GoalInstance
getHead()
GoalInstance
getLastGoal()
SchemeInstance
getScheme()
Plan
getSpec()
void
setGoalInstances(SchemeInstance sch)
java.lang.String
toString()
-
Methods inherited from class moise.common.MoiseElement
compareTo, equals, getBoolProperty, getBoolProperty, getCreationDate, getFullId, getId, getId, getOwner, getPrefix, getPrefix, getProperties, getPropertiesAsDOM, getPropertiesAsProlog, getProperty, getStrProperty, hashCode, setId, setOwner, setPrefix, setPropertiesFromDOM, setProperty
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
spec
protected Plan spec
-
sch
protected SchemeInstance sch
-
head
protected GoalInstance head
-
goals
protected java.util.List<GoalInstance> goals
-
-
Constructor Detail
-
PlanInstance
public PlanInstance(Plan p)
-
-
Method Detail
-
getSpec
public Plan getSpec()
-
getScheme
public SchemeInstance getScheme()
-
getHead
public GoalInstance getHead()
-
setGoalInstances
public void setGoalInstances(SchemeInstance sch) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
getGoals
public java.util.List<GoalInstance> getGoals()
-
getLastGoal
public GoalInstance getLastGoal()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classMoiseElement
-
-