public class PController
extends java.lang.Thread
Modifier and Type | Class and Description |
---|---|
static class |
PController.PMethod |
Constructor and Description |
---|
PController(java.lang.String string)
Create a controller using the string description of environment
|
Modifier and Type | Method and Description |
---|---|
Membrane |
getEnvironment(java.lang.String modelInstanceStr)
Recognize simulation environment
|
java.util.ArrayList<Membrane> |
getRecords()
Get all the records of simulation result
|
boolean |
isEnableRecords() |
void |
run() |
void |
runSteps(int steps)
Simulate the environment with steps specified
|
void |
runToStop()
Simulate till no rules can be used.
|
void |
setEnableRecords(boolean enableRecords) |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public PController(java.lang.String string)
string
- the string description of environment in UPLpublic Membrane getEnvironment(java.lang.String modelInstanceStr)
modelInstanceStr
- the string description of environmentpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void runToStop()
public void runSteps(int steps)
steps
- Steps need to simulatepublic java.util.ArrayList<Membrane> getRecords()
public boolean isEnableRecords()
public void setEnableRecords(boolean enableRecords)