|
MATHVisualSimulator
A BPMN2 simulator for MATH
|
Inherits Simulator.IResourceListener, and Simulator.ISimEvent.
Public Types | |
| enum | State { Ready = 0x00, Exited = 0x01, Blocking = 0x02, Dead = 0x03, InSubprocess = 0x04, FinishedSubprocess = 0x05, ResourceSleep = 0x06, Waking = 0x07, Delaying = 0x08, TerminateProcess = 0x09, WaitingForMessage = 0x10, EnteringJoinGateway = 0x11, WaitingForTrigger = 0x12 } |
Public Member Functions | |
| Runner (RunningProcess startScheduler, BPNode startNode, Runner newParent, string label, long startTime=0) | |
| void | setState (State newState) |
| Set the state without updating the scheduler's queues. DO NOT CALL THIS OUTSIDE THE RunningProcess CLASS! | |
| BPNode | getCurrentNode () |
| Runner | getFounder () |
| Runner | getParent () |
| bool | hasAncestor (Runner r) |
| int | countChildren () |
| int | countLivingChildren () |
| void | setTrap (BPNode n) |
| bool | isTrap (BPNode n) |
| string | getId () |
| void | setCurrent (BPNode c) |
| BPNode | getCurrent () |
| BPNode | getLast () |
| void | charge (string k, double v, bool isTime) |
| void | reserveAll (Dictionary< BPResource, int > resources) |
| void | unreserveAll (Dictionary< BPResource, int > resources=null) |
| long | getCurrentTime () |
| void | updateCurrentTime (long newTime) |
| void | updateCurrentTime (long newTime, bool allowOverride) |
| void | updateTime (Runner r) |
| void | noteReserved (object o, double amt) |
| void | noteUnreserved (object o, double amt) |
| bool | hasReserved (object o, double amt) |
| void | tryAgain () |
| void | setWaiting () |
| void | stepTime (long ms) |
| void | die (string error) |
| void | run () |
| void | addAcc (Dictionary< string, double > acc2) |
| void | absorb (Runner r) |
| void | sendMessage (BPFlow msgFlow) |
| void | setError (BPEvent.eventSubtype subtype) |
| bool | isRunnable () |
Public Attributes | |
| Dictionary< string, double > | acc = null |
| RunningProcess | scheduler = null |
| int | blockCount = 0 |
| Dictionary< BPResource, int > | resourceHoldings = new Dictionary<BPResource, int>() |
| string | label |
| string | messageID |
Properties | |
| State | state [get] |
| long | currentTime [get] |
| void Simulator.Runner.setState | ( | State | newState | ) |
Set the state without updating the scheduler's queues. DO NOT CALL THIS OUTSIDE THE RunningProcess CLASS!
| newState | The new state of the runner. |
1.7.4