Package moise.os

Class OSBuilder


  • public class OSBuilder
    extends java.lang.Object
    API to build an OS and produce its XML file
    Author:
    jomi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) OS os  
    • Method Summary

      Modifier and Type Method Description
      Goal addGoal​(java.lang.String schemeId, java.lang.String goalId, java.lang.String plan)  
      Goal addGoalArg​(java.lang.String schemeId, java.lang.String goalId, java.lang.String argId, java.lang.Object value)  
      Mission addMission​(java.lang.String schemeId, java.lang.String missionId, java.lang.String goals)  
      Goal addMissionGoal​(java.lang.String missionId, java.lang.String goalId)  
      Role addRole​(java.lang.String grId, java.lang.String roleId)  
      Group addRootGroup​(java.lang.String id)  
      Scheme addScheme​(java.lang.String id, java.lang.String rootGoal)  
      Group addSubGroup​(java.lang.String father, java.lang.String id)  
      OS getOS()  
      java.lang.String getXMLSpec()  
      void save​(java.lang.String file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • os

        OS os
    • Constructor Detail

      • OSBuilder

        public OSBuilder()
      • OSBuilder

        public OSBuilder​(OS os)
    • Method Detail

      • getOS

        public OS getOS()
      • addRootGroup

        public Group addRootGroup​(java.lang.String id)
      • addSubGroup

        public Group addSubGroup​(java.lang.String father,
                                 java.lang.String id)
      • addScheme

        public Scheme addScheme​(java.lang.String id,
                                java.lang.String rootGoal)
      • addGoalArg

        public Goal addGoalArg​(java.lang.String schemeId,
                               java.lang.String goalId,
                               java.lang.String argId,
                               java.lang.Object value)
      • getXMLSpec

        public java.lang.String getXMLSpec()
      • save

        public void save​(java.lang.String file)
                  throws java.io.IOException
        Throws:
        java.io.IOException