Package moise.tools
Class SimOE
- java.lang.Object
-
- moise.tools.SimOE
-
- Direct Known Subclasses:
ViewOS
public class SimOE extends java.lang.Object
Simple program to show an OE and simulate social events on it- Author:
- Jomi Fred Hubner
-
-
Field Summary
Fields Modifier and Type Field Description protected OE
currentOE
protected OS
currentOS
static boolean
debug
SimOEFrame
frame
private java.lang.String
name
private boolean
needsScreenUpdate
protected org.w3c.dom.Node
OE_DOM
protected java.lang.String
OExml
protected org.w3c.dom.Node
OS_DOM
protected java.lang.String
OSxml
protected javax.xml.parsers.DocumentBuilder
parser
private boolean
running
-
Method Summary
Modifier and Type Method Description (package private) void
abortSCH(SchemeInstance sch)
(package private) void
addResponsibleGroupToSCH(SchemeInstance sch, GroupInstance gr)
(package private) void
agAdoptsRole(java.lang.String agId, java.lang.String roleId, java.lang.String grId)
(package private) void
agCommitsMission(java.lang.String agId, java.lang.String missionId, java.lang.String schId)
(package private) void
agGiveUpRole(java.lang.String agId, java.lang.String roleId, java.lang.String grId)
(package private) void
agUncommitsMission(java.lang.String agId, java.lang.String missionId, java.lang.String schId)
(package private) void
createAg(java.lang.String name)
(package private) void
createGr(java.lang.String superGroup, java.lang.String spec)
private void
createUpdateScreenThread()
void
disposeWindow()
(package private) void
finishSCH(SchemeInstance sch)
OE
getCurrentOE()
protected OS
getCurrentOS()
java.lang.String
getName()
protected org.w3c.dom.Node
getOE_DOM()
protected java.lang.String
getOExml()
protected org.w3c.dom.Node
getOS_DOM()
protected java.lang.String
getOSxml()
static void
main(java.lang.String[] args)
protected static void
print(java.lang.String s)
protected static void
printErr(java.lang.String s)
(package private) void
removeAg(java.lang.String name, boolean check)
(package private) void
removeErrorLastFromFrame()
(package private) void
removeGr(java.lang.String grId)
(package private) void
remResponsibleGroupToSCH(SchemeInstance sch, GroupInstance gr)
(package private) void
setGoalArg(GoalInstance gi, java.lang.String arg, java.lang.String val)
(package private) void
setGoalStateImpossible(GoalInstance gi, OEAgent ag)
(package private) void
setGoalStateSatisfied(GoalInstance gi, OEAgent ag)
void
setName(java.lang.String s)
void
setOE(OE oe)
protected void
setOS(OS os)
(package private) SchemeInstance
startSCH(java.lang.String schSpecId)
void
updateScreen()
-
-
-
Field Detail
-
debug
public static boolean debug
-
currentOE
protected OE currentOE
-
currentOS
protected OS currentOS
-
OExml
protected java.lang.String OExml
-
OE_DOM
protected org.w3c.dom.Node OE_DOM
-
OSxml
protected java.lang.String OSxml
-
OS_DOM
protected org.w3c.dom.Node OS_DOM
-
parser
protected javax.xml.parsers.DocumentBuilder parser
-
frame
public SimOEFrame frame
-
name
private java.lang.String name
-
running
private boolean running
-
needsScreenUpdate
private boolean needsScreenUpdate
-
-
Constructor Detail
-
SimOE
public SimOE()
-
SimOE
public SimOE(boolean addSim)
-
SimOE
public SimOE(java.lang.String OSxmlURI) throws java.lang.Exception
- Throws:
java.lang.Exception
-
SimOE
public SimOE(OE oe) throws java.lang.Exception
- Throws:
java.lang.Exception
-
SimOE
public SimOE(OE oe, boolean addSim) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
setOE
public void setOE(OE oe)
-
getCurrentOE
public OE getCurrentOE()
-
setName
public void setName(java.lang.String s)
-
getName
public java.lang.String getName()
-
getOExml
protected java.lang.String getOExml()
-
getOE_DOM
protected org.w3c.dom.Node getOE_DOM()
-
getCurrentOS
protected OS getCurrentOS()
-
getOSxml
protected java.lang.String getOSxml()
-
getOS_DOM
protected org.w3c.dom.Node getOS_DOM()
-
setOS
protected void setOS(OS os)
-
createUpdateScreenThread
private void createUpdateScreenThread()
-
updateScreen
public void updateScreen()
-
disposeWindow
public void disposeWindow()
-
createAg
void createAg(java.lang.String name)
-
removeAg
void removeAg(java.lang.String name, boolean check)
-
createGr
void createGr(java.lang.String superGroup, java.lang.String spec)
-
removeGr
void removeGr(java.lang.String grId)
-
startSCH
SchemeInstance startSCH(java.lang.String schSpecId)
-
finishSCH
void finishSCH(SchemeInstance sch)
-
abortSCH
void abortSCH(SchemeInstance sch)
-
addResponsibleGroupToSCH
void addResponsibleGroupToSCH(SchemeInstance sch, GroupInstance gr)
-
remResponsibleGroupToSCH
void remResponsibleGroupToSCH(SchemeInstance sch, GroupInstance gr)
-
agCommitsMission
void agCommitsMission(java.lang.String agId, java.lang.String missionId, java.lang.String schId)
-
agUncommitsMission
void agUncommitsMission(java.lang.String agId, java.lang.String missionId, java.lang.String schId)
-
agAdoptsRole
void agAdoptsRole(java.lang.String agId, java.lang.String roleId, java.lang.String grId)
-
agGiveUpRole
void agGiveUpRole(java.lang.String agId, java.lang.String roleId, java.lang.String grId)
-
setGoalArg
void setGoalArg(GoalInstance gi, java.lang.String arg, java.lang.String val)
-
setGoalStateSatisfied
void setGoalStateSatisfied(GoalInstance gi, OEAgent ag)
-
setGoalStateImpossible
void setGoalStateImpossible(GoalInstance gi, OEAgent ag)
-
removeErrorLastFromFrame
void removeErrorLastFromFrame()
-
print
protected static void print(java.lang.String s)
-
printErr
protected static void printErr(java.lang.String s)
-
-