MATHVisualSimulator
A BPMN2 simulator for MATH
Public Types | Public Member Functions | Public Attributes | Properties
Simulator.BPTask Class Reference

Inherits Simulator.BPNode.

Inherited by Simulator.BPProcess.

List of all members.

Public Types

enum  SubType {
  None = 0, Service, Send, Receive,
  User, Manual, Rule, Script
}

Public Member Functions

 BPTask (Simulator sim, XmlNode x)
string getTimeSpentString ()
string getWaitTimeString ()
string getWaitCountString ()
string getWaitRatioString ()
string getEntryCountString ()
override long getDuration ()
override int getCost ()
override long getDelay ()
override void parseSimulationParameters (XmlNode x)
 Parse simulation parameters for this node.
override XmlElement getSimulationXml (XmlDocument doc)
 Create a simulation extension node from this BPNode.
SubType getSubtype ()
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.
override void finishParsing ()
 Finish up this node, after all the nodes have been created.
override void enter (Runner rr)
 Enter a token into this node.
override void exit (Runner rr)
 Exit a token from this node.

Public Attributes

Dictionary< BPResource, int > resources = new Dictionary<BPResource, int>()
IRandomVariable duration = new ConstantRandomVariable()
IRandomVariable cost = new ConstantRandomVariable()
IRandomVariable delayV = new ConstantRandomVariable()
LinkedList< InfoIteminfoInputs = new LinkedList<InfoItem>()
LinkedList< InfoIteminfoOutputs = new LinkedList<InfoItem>()
const string timeSpentBaseString = "time spent at task"
const string entryCountBaseString = "entries into task"
const string waitTimeBaseString = "wait time at task"
const string waitCountBaseString = "wait count at task"
const string waitRatioBaseString = "wait ratio at task"

Properties

new string name [get, set]
string duration_desc [get, set]
string cost_desc [get, set]
string delay_desc [get, set]
string[] info_inputs [get]
string[] info_outputs [get]
string[] resourcesRequired [get]

Member Function Documentation

override void Simulator.BPTask.enter ( Runner  rr) [virtual]

Enter a token into this node.

Parameters:
rrThe token

Reimplemented from Simulator.BPNode.

Reimplemented in Simulator.BPProcess.

override void Simulator.BPTask.exit ( Runner  rr) [virtual]

Exit a token from this node.

Parameters:
rrThe token

Reimplemented from Simulator.BPNode.

Reimplemented in Simulator.BPProcess.

override void Simulator.BPTask.finishParsing ( ) [virtual]

Finish up this node, after all the nodes have been created.

Reimplemented from Simulator.BPNode.

Reimplemented in Simulator.BPProcess.

override int Simulator.BPTask.getCost ( ) [virtual]
Returns:
Get an instance of the cost of the activity.

Reimplemented from Simulator.BPNode.

override long Simulator.BPTask.getDelay ( ) [virtual]
Returns:
Get an instance of the delay before the activity can begin, in milliseconds.

Reimplemented from Simulator.BPNode.

override long Simulator.BPTask.getDuration ( ) [virtual]
Returns:
Get an instance of the duration of the activity, in milliseconds.

Reimplemented from Simulator.BPNode.

override XmlElement Simulator.BPTask.getSemanticXml ( XmlDocument  doc) [virtual]

Create a BPMN semantic node from this BPNode.

Parameters:
docAn XML Document object that will own the new BPMN node
Returns:
The created XML node

Reimplemented from Simulator.BPNode.

Reimplemented in Simulator.BPProcess.

override XmlElement Simulator.BPTask.getSimulationXml ( XmlDocument  doc) [virtual]

Create a simulation extension node from this BPNode.

Parameters:
docAn XML Document object that will own the new simulation node
Returns:
The created XML node

Reimplemented from Simulator.BPNode.

override void Simulator.BPTask.parse ( XmlNode  x) [virtual]

Parse the main BPMN XML parameters into this node.

Parameters:
xThe BPMN XML node, from which parameters are to be taken.

Reimplemented from Simulator.BPNode.

override void Simulator.BPTask.parseSimulationParameters ( XmlNode  x) [virtual]

Parse simulation parameters for this node.

Parameters:
xThe parameter to parse

Reimplemented from Simulator.BPNode.


The documentation for this class was generated from the following file: