Package moise.os.fs
Class Scheme
java.lang.Object
moise.common.MoiseElement
moise.os.fs.Scheme
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable,Identifiable,ToProlog,ToXML
public class Scheme extends MoiseElement implements ToXML, ToProlog
Represents a Scheme specification.
- Author:
- Jomi Fred Hubner
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected FSfsprotected java.util.Map<java.lang.String,Goal>goalsprotected CardinalitySet<Mission>missionsprotected java.util.Set<Plan>plansprotected Goalrootprivate static longserialVersionUIDFields inherited from class moise.common.MoiseElement
debug -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddGoal(Goal g)voidaddMission(Mission m)voidaddPlan(Plan p)org.w3c.dom.ElementgetAsDOM(org.w3c.dom.Document document)java.lang.StringgetAsProlog()returns a string representing the goal in Prolog syntax, format: scheme_specification(id, goals tree starting by root goal, missions, properties)FSgetFS()GoalgetGoal(java.lang.String id)java.util.Set<java.lang.String>getGoalMissionsId(Goal g)returns the missions where goal g isjava.util.Collection<Goal>getGoals()returns an iterator for GoalSpec objects of this SCHMissiongetMission(java.lang.String id)CardinalitygetMissionCardinality(java.lang.String missionId)CardinalitygetMissionCardinality(Mission m)java.util.Collection<Mission>getMissions()gets the scheme missions ordered by the preference relationjava.util.Collection<Plan>getPlans()GoalgetRoot()static java.lang.StringgetXMLTag()booleanremoveMission(Mission m)voidsetFromDOM(org.w3c.dom.Element ele)voidsetMissionCardinality(java.lang.String missionId, Cardinality c)voidsetMissionCardinality(Mission m, Cardinality c)voidsetRoot(Goal g)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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
missions
-
plans
-
goals
-
root
-
fs
-
-
Constructor Details
-
Scheme
-
-
Method Details
-
setRoot
-
getRoot
-
getFS
-
addPlan
-
getPlans
-
addMission
-
removeMission
-
setMissionCardinality
public void setMissionCardinality(java.lang.String missionId, Cardinality c) throws MoiseConsistencyException- Throws:
MoiseConsistencyException
-
setMissionCardinality
-
getMissionCardinality
-
getMissionCardinality
-
getMissions
gets the scheme missions ordered by the preference relation -
getMission
-
addGoal
-
getGoals
returns an iterator for GoalSpec objects of this SCH -
getGoal
-
getGoalMissionsId
returns the missions where goal g is -
getAsProlog
public java.lang.String getAsProlog()returns a string representing the goal in Prolog syntax, format: scheme_specification(id, goals tree starting by root goal, missions, properties)- Specified by:
getAsPrologin interfaceToProlog
-
getXMLTag
public static java.lang.String getXMLTag() -
getAsDOM
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document) -
setFromDOM
- Throws:
MoiseException
-