|
MATHVisualSimulator
A BPMN2 simulator for MATH
|
Inherits Simulator.BPNode.
Inherited by Simulator.BPResourceRole.
Public Types | |
| enum | ResourceType { UNKNOWN, PERFORMER_PERSON, PERFORMER_GROUP, INFO_RESOURCE_PERSON, INFO_RESOURCE_DOCUMENT, INFO_RESOURCE_PART, INFO_RESOURCE_SYSTEM } |
Public Member Functions | |
| BPResource (Simulator sim, XmlNode x) | |
| override void | reset () |
| Reset simulation counters for this node. | |
| string | getInputInfoUsedString () |
| string | getOutputInfoUsedString () |
| string | getInfoUsedString () |
| string | getIdleCostString () |
| string | getOverallCostString () |
| string | getTimeUsedString () |
| string | getCountUsedString () |
| string | getCountWaitString () |
| string | getWaitRatioString () |
| string | getIdleTimeString () |
| string | getUtilizationString () |
| override void | parseSimulationParameters (XmlNode x) |
| Parse simulation parameters for this node. | |
| override XmlElement | getSimulationXml (XmlDocument doc) |
| Create a simulation extension node from this BPNode. | |
| override void | parse (XmlNode x) |
| Parse the main BPMN XML parameters into this node. | |
| override XmlElement | getSemanticXml (XmlDocument doc) |
| Create a BPMN semantic node from this BPNode. | |
| virtual bool | canReserve (int amt) |
| virtual void | register (IResourceListener listener) |
| virtual void | reserve (int amt, IResourceListener listener) |
| virtual void | unreserve (int amt, IResourceListener rr) |
| override void | enter (Runner rr) |
| Enter a token into this node. | |
| override void | exit (Runner rr) |
| Exit a token from this node. | |
| LinkedList< string > | getAttrNameList () |
| LinkedList< string > | getAttrValueList () |
| void | addAttr (string attr) |
Static Public Member Functions | |
| static BPResource | lookup (string name) |
Public Attributes | |
| double | total = 1 |
| int | cumulativeWaits = 0 |
| double | cumulativeWaitTime = 0 |
| double | cumulativeTimeUsed = 0 |
| double | cumulativeCost = 0 |
| ResourceType | typeVal = ResourceType.UNKNOWN |
| double | costPerUse = 0 |
| double | costPerHourIdle = 0 |
| double | costPerHourUsed = 0 |
| const string | idleCostBaseString = "idle cost of" |
| const string | totalCostBaseString = "total cost of" |
| const string | timeUsedBaseString = "time used of" |
| const string | countUsedBaseString = "uses of" |
| const string | countWaitBaseString = "instances of waiting for" |
| const string | waitRatioBaseString = "wait ratio of" |
| const string | idleTimeBaseString = "idle time of" |
| const string | utilizationBaseString = "percent utilization of" |
| const string | inputInfoUsedBaseString = "reads from info resource" |
| const string | outputInfoUsedBaseString = "writes to info resource" |
| const string | infoUsedBaseString = "references to info resource" |
Static Public Attributes | |
| static double | maxCumulativeTimeUsed = 0 |
| static double | maxCumulativeCost = 0 |
| static string[] | resourceTypeNames |
Properties | |
| long | currentTime [get] |
| ResourceType | type [get, set] |
| new string | name [get, set] |
| override void Simulator.BPResource.enter | ( | Runner | rr | ) | [virtual] |
Enter a token into this node.
| rr | The token |
Reimplemented from Simulator.BPNode.
Reimplemented in Simulator.BPResourceRole.
| override void Simulator.BPResource.exit | ( | Runner | rr | ) | [virtual] |
Exit a token from this node.
| rr | The token |
Reimplemented from Simulator.BPNode.
Reimplemented in Simulator.BPResourceRole.
| override XmlElement Simulator.BPResource.getSemanticXml | ( | XmlDocument | doc | ) | [virtual] |
Create a BPMN semantic node from this BPNode.
| doc | An XML Document object that will own the new BPMN node |
Reimplemented from Simulator.BPNode.
Reimplemented in Simulator.BPResourceRole.
| override XmlElement Simulator.BPResource.getSimulationXml | ( | XmlDocument | doc | ) | [virtual] |
Create a simulation extension node from this BPNode.
| doc | An XML Document object that will own the new simulation node |
Reimplemented from Simulator.BPNode.
| override void Simulator.BPResource.parse | ( | XmlNode | x | ) | [virtual] |
Parse the main BPMN XML parameters into this node.
| x | The BPMN XML node, from which parameters are to be taken. |
Reimplemented from Simulator.BPNode.
Reimplemented in Simulator.BPResourceRole.
| override void Simulator.BPResource.parseSimulationParameters | ( | XmlNode | x | ) | [virtual] |
Parse simulation parameters for this node.
| x | The parameter to parse |
Reimplemented from Simulator.BPNode.
| override void Simulator.BPResource.reset | ( | ) | [virtual] |
Reset simulation counters for this node.
Reimplemented from Simulator.BPNode.
string [] Simulator.BPResource.resourceTypeNames [static] |
{
"unknown",
"performerPerson",
"performerGroup",
"infoResourcePerson",
"document",
"part",
"system",
}
1.7.4