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

Inherits Simulator.BPNode.

List of all members.

Public Types

enum  eventType { UNKNOWN = 0, START = 1, INTERMEDIATE = 2, END = 3 }
enum  eventSubtype {
  NONE = 0, MESSAGE = 1, SIGNAL = 2, ESCALATION = 3,
  TIMER = 4, ERROR = 5, CONDITIONAL = 6, LINK = 7,
  CANCEL = 8, COMPENSATE = 9, MULTIPLE = 10, TERMINATING = 11
}

Public Member Functions

 BPEvent (Simulator sim, XmlNode x)
override bool validate ()
 Check this node to see whether it makes sense semantically.
override void enter (Runner rr)
 Enter a token into this node.
override void exit (Runner rr)
 Exit a token from this node.
override void finishParsing ()
 Finish up this node, after all the nodes have been created.
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 XmlElement getSemanticXml (XmlDocument doc)
 Create a BPMN semantic node from this BPNode.
BPNode getAttachedTo ()
eventSubtype getSubtype ()
override string getBPNodeType ()
 Return the tag used to generate this node. Children will override to add their own parameters.

Public Attributes

bool interrupting = false
bool boundary = false
bool catching = false
bool throwing = false
IRandomVariable startInterval = null
BPNode attachedTo = null
string attachedToId = null
BPNode linkedTo = null
string linkedToId = null

Static Public Attributes

static string[] eventTypeName
static string[] eventSubtypeName

Properties

eventType type [get, set]
eventSubtype subtype [get, set]
new string name [get, set]

Member Function Documentation

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

Enter a token into this node.

Parameters:
rrThe token

Reimplemented from Simulator.BPNode.

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

Exit a token from this node.

Parameters:
rrThe token

Reimplemented from Simulator.BPNode.

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

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

Reimplemented from Simulator.BPNode.

override string Simulator.BPEvent.getBPNodeType ( ) [virtual]

Return the tag used to generate this node. Children will override to add their own parameters.

Returns:
The tag

Reimplemented from Simulator.BPNode.

override XmlElement Simulator.BPEvent.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.

override XmlElement Simulator.BPEvent.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.BPEvent.parseSimulationParameters ( XmlNode  x) [virtual]

Parse simulation parameters for this node.

Parameters:
xThe parameter to parse

Reimplemented from Simulator.BPNode.

override bool Simulator.BPEvent.validate ( ) [virtual]

Check this node to see whether it makes sense semantically.

Returns:

Reimplemented from Simulator.BPNode.


Member Data Documentation

string [] Simulator.BPEvent.eventSubtypeName [static]
Initial value:
 {
                                               "none",
                                               "message",
                                               "signal",
                                               "escalation",
                                               "timer",
                                               "error",
                                               "conditional",
                                               "link",
                                               "cancel",
                                               "compensate",
                                               "multiple",
                                               "terminating",
                                           }
string [] Simulator.BPEvent.eventTypeName [static]
Initial value:
 {
                                            "Unknown",
                                            "Start",
                                            "Intermediate",
                                            "End"
                                        }

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