# SimulationMetricComputationType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Specification of how is the metric value computed for individual "processed objects".

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
domain | container SimulationObjectPredicateType | [0,1] | Domain of the metric.
selection | container SimulationObjectPredicateType | [0,1] | Determines whether the object is "selected" by the metric.
valueExpression | property ExpressionType | [0,1] | An expression providing the value for the metric.

- ### Items

  - #### domain

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Domain of the metric. It denotes objects that should be considered by the metric.

  - #### selection

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Determines whether the object is "selected" by the metric. Default (if the value is computed): true if value greater than 0, false otherwise.

  - #### valueExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    An expression providing the value for the metric. Input: - processedObject: ProcessedObject Output: - any number: the output Default (if the expression is not present but selection criteria is): 1 if selected, 0 otherwise.