ChangeStateCondition (autotransform.step.condition.state)
The implementation for the ChangeStateCondition.
- class autotransform.step.condition.state.ChangeStateCondition(*, comparison: ComparisonType, value: ChangeState)
Bases:
ComparisonCondition
[ChangeState
]A condition which checks the ChangeState against the state supplied using the supplied comparison. Note: only equals and not equals are valid, all others will result in an error.
- comparison
The type of comparison to perform.
- Type
- value
The state to compare against.
- Type
- name
The name of the Component.
- Type
ClassVar[ConditionName]
- comparison: ComparisonType
- get_val_from_change(change: Change) ChangeState
Gets the state from the Change.
- Parameters
change (Change) – The Change the Condition is checking.
- Returns
The state of the Change.
- Return type
- name: ClassVar[ConditionName] = 'change_state'
- value: ChangeState