pipeline.domain.state.State
- class State(state_id: int, obs_mode: str)[source]
Bases:
objectA logical representation of rows in the STATE table.
Relates STATE_ID (in the MAIN table) to the observing mode(s) and corresponding pipeline intent(s).
- id
Numerical identifier of this State.
- obs_mode
Unique obs_mode values associated with this State.
- obs_mode_mapping
Class-level dictionary mapping obs_mode strings to pipeline intent strings.
Methods
Return list of obs_mode values associated with given intent.
Attributes
Return all intents associated with this State.
- __init__(state_id: int, obs_mode: str) None[source]
Initialize a State object.
- Parameters:
state_id -- Numerical identifier of this State.
obs_mode -- Unique obs_mode values associated with this State.
- get_obs_mode_for_intent(intent: str) list[str][source]
Return list of obs_mode values associated with given intent.
- property intents: set[str]
Return all intents associated with this State.