Skip to content

AVGSUM - Sum over attribute ​

Hint

The result function "Sum over attribute" restricts the agent to model types from the dynamic library.

The result function "Sum over attribute" must be introduced by the expression AVGSUM. This result function calculates the expected value of an arbitrary numerical attribute.

The basic result settings for this result function can be made.

The expression class defines the class (ClassName) which is to be examined by this result function. The classes available are all those derived from the meta-model class "__Activity__" .

Hint

If this expression is not specified, the ADOxx user himself has to select the class.

Examples:

When an agent is to calculate the average costs of a dynamic model and the attribute "Costs" is defined in the class "Activity", the following expression has to be defined: class: "Activity" attribute: "Costs" attribute-type: numeric

The lock/hide parameters lock-class and hide-class control the selection of the class specified.

With the expression attribute an attribute (AttributeName) can be defined which will then be summed up.

Hint

if this expression is not specified, the ADOxx user has to select the attribute.

When using the expression attribute the attribute type attribute-type must also be defined where:

Example:

To calculate the average execution time of a dynamic model based on the attribute "Execution time" in the class "Activity", the following expression has to be defined: class: "Activity" attribute: "Execution time" attribute-type: time

The lock/hide parameters lock-attribute and hide-attribute control the selection of the attribute specified.