State Case Class#

class sgio.model.StateCase(case: dict | None = None, states: dict | None = None)#

Bases: object

A collection of states associated with a single load or response case.

addState(name: str, state: State | None = None, data=None, entity_id=None, loc_type='')#

Add a state to the StateCase object.

at(locs: Iterable, state_name=None)#

Return all states with data at the given locations.

getState(name)#

Get state by name.

toDictionary()#

Convert the StateCase object to a dictionary.