StateLabeling¶
- class StateLabeling(
- self: stormpy.models.StateLabeling,
- state_count: SupportsInt | SupportsIndex,
Bases:
ItemLabelingLabeling for states
- add_label(self: stormpy.developer.storage.ItemLabeling, label: str) None¶
Add label
- add_label_to_state(
- self: stormpy.models.StateLabeling,
- label: str,
- state: SupportsInt | SupportsIndex,
Add label to state
- contains_label(self: stormpy.developer.storage.ItemLabeling, label: str) bool¶
Check if the given label is contained in the labeling
- get_labels(self: stormpy.developer.storage.ItemLabeling) set[str]¶
Get all labels
- get_labels_of_state(
- self: stormpy.models.StateLabeling,
- state: SupportsInt | SupportsIndex,
Get labels of given state
- get_state_has_label(
- self: stormpy.models.StateLabeling,
- label: str,
- state: SupportsInt | SupportsIndex,
Check if the given state has the given label
- get_states(
- self: stormpy.models.StateLabeling,
- label: str,
Get all states which have the given label
- set_states(
- self: stormpy.models.StateLabeling,
- label: str,
- states: stormpy.datastructures.BitVector,
Add a label to the given states