Package moise.os
Class OSBuilder
- java.lang.Object
-
- moise.os.OSBuilder
-
public class OSBuilder extends java.lang.Object
API to build an OS and produce its XML file- Author:
- jomi
-
-
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)
-
-
-
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)
-
addRole
public Role addRole(java.lang.String grId, java.lang.String roleId) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
addScheme
public Scheme addScheme(java.lang.String id, java.lang.String rootGoal)
-
addMission
public Mission addMission(java.lang.String schemeId, java.lang.String missionId, java.lang.String goals) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
addMissionGoal
public Goal addMissionGoal(java.lang.String missionId, java.lang.String goalId) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
addGoal
public Goal addGoal(java.lang.String schemeId, java.lang.String goalId, java.lang.String plan) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
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
-
-