Package moise.os.fs

Class Scheme

    • Constructor Detail

      • Scheme

        public Scheme​(java.lang.String id,
                      FS fs)
    • Method Detail

      • setRoot

        public void setRoot​(Goal g)
      • getRoot

        public Goal getRoot()
      • getFS

        public FS getFS()
      • addPlan

        public void addPlan​(Plan p)
      • getPlans

        public java.util.Collection<Plan> getPlans()
      • addMission

        public void addMission​(Mission m)
      • setMissionCardinality

        public void setMissionCardinality​(Mission m,
                                          Cardinality c)
      • getMissionCardinality

        public Cardinality getMissionCardinality​(java.lang.String missionId)
      • getMissions

        public java.util.Collection<Mission> getMissions()
        gets the scheme missions ordered by the preference relation
      • getMission

        public Mission getMission​(java.lang.String id)
      • addGoal

        public void addGoal​(Goal g)
      • getGoals

        public java.util.Collection<Goal> getGoals()
        returns an iterator for GoalSpec objects of this SCH
      • getGoal

        public Goal getGoal​(java.lang.String id)
      • getGoalMissionsId

        public java.util.Set<java.lang.String> getGoalMissionsId​(Goal g)
        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:
        getAsProlog in interface ToProlog
      • getXMLTag

        public static java.lang.String getXMLTag()
      • getAsDOM

        public org.w3c.dom.Element getAsDOM​(org.w3c.dom.Document document)
        Specified by:
        getAsDOM in interface ToXML