Provides access to data that may be used in Statistics Collector callbacks.
Each StatisticsCollector has a CollectedData object. This object can only be accessed in callbacks called by the Statistics Collector, through its collectedData property. Before evaluating one of these callbacks, the Statistics Collector sets some or all of the properties on this object, so they can be read within the callback.colNum | The position of the current column in the table. |
colValue | The value associated with the current column. |
colValueIndex | The index of the current column, relative to its column set. |
currentValue | The value in the table at the current row and column. |
eventName | The name of the event that fired, causing the current callback to be evaluated. |
eventNode | The treenode responsible for the event that fired, causing the current callback to be evaluated. |
group | The Group associated with the current callback. |
linkedColumns | An array of column numbers, indicating which columns are linked to the current event. |
processFlowInstance | The instance associated with the current callback. |
row | Accesses labels associated with the current row. |
rowNum | The position of the current row in the table. |
rowValue | The value associated with the current row. |
rowValueIndex | The index of this row value, if the Row Value for the current event is an Array. |
enumerate | Creates a value that represents the unique combination of object, instance, and group. |
readonly int colNum
The position of the current column in the table.
readonly Variant colValue
The value associated with the current column.
This value is set as part of the Set Value callback for Column Sets.readonly int colValueIndex
The index of the current column, relative to its column set.
This value determined by the sequence of values returned from the Set Value callback for Column Sets.readonly Variant currentValue
The value in the table at the current row and column.
readonly string eventName
The name of the event that fired, causing the current callback to be evaluated.
readonly treenode eventNode
The treenode responsible for the event that fired, causing the current callback to be evaluated.
readonly Group group
The Group associated with the current callback.
This value will be empty unless the Statistics Collector is listening to a Group, or an enumerated object is a Group.readonly Array linkedColumns
An array of column numbers, indicating which columns are linked to the current event.
readonly Object processFlowInstance
The instance associated with the current callback.
This value will be empty unless the Statistics Collector is listening to, or has enumerated, a Process Flow block in a instanced flow.readonly row
Accesses labels associated with the current row.
This property is an object that has a labels property, like treenode.labels. The object also has dynamic label access, like treenode.labelProperties.data.row.RowAddTime = Model.time;
Then, you could reference this label in a column's value:
Model.time - data.row.RowAddTime
readonly int rowNum
The position of the current row in the table.
readonly Variant rowValue
The value associated with the current row.
This value is the value specified by the Row Value. If the Row Mode is Enumerate, then the row value is the object associated with the current row.readonly int rowValueIndex
The index of this row value, if the Row Value for the current event is an Array.
double enumerate( ) |
double enumerate( treenode object , Object instance , Group group ) |
object | The object to enumerate. |
instance | The instance to enumerate. |
group | The group to enumerate. |
double | A hash of the object, instance, and group values. |
Creates a value that represents the unique combination of object, instance, and group.
If the parameters are not given, then the current eventNode, processFlowInstance, and group property values are used. This method creates a hash of the object, instance, and group values. That hash, along with the values used in that hash, are stored in the Statistics Collector. That hash is the return value. If you use the hash as a row value, then the Statistics Collector will assert a row for the hash value, and set eventNode, processFlowInstance, and group to the values associated with the hash.