AggregateCondition (autotransform.step.condition.aggregate)
The implementation for the AggregateCondition.
- class autotransform.step.condition.aggregate.AggregateCondition(*, aggregator: AggregatorType, conditions: List[Condition])
Bases:
ConditionA Condition which aggregates a list of Conditions using the supplied aggregator and returns the result of the aggregation.
- aggregator
How to aggregate the conditions, using any or all.
- Type:
- name
The name of the Component.
- Type:
ClassVar[ConditionName]
- aggregator: AggregatorType
- check(change: Change) bool
Checks whether the aggregation of all conditions passes.
- Parameters:
change (Change) – The Change the Condition is checking.
- Returns:
Whether the Change passes the Condition.
- Return type:
bool
- classmethod from_data(data: Dict[str, Any]) AggregateCondition
Produces an instance of the component from decoded data.
- Parameters:
data (Dict[str, Any]) – The JSON decoded data.
- Returns:
An instance of the component.
- Return type:
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: ClassVar[ConditionName] = 'aggregate'