pub struct Subsystem {
pub name: String,
pub groups: Vec<SelectorGroup>,
pub retained: Vec<RetainedStatement>,
}Expand description
One named subsystem: the union of its selector groups.
Fields§
§name: String§groups: Vec<SelectorGroup>The groups whose bus sets are unioned. The implicit group, holding the
selectors stated outside any JOIN, comes first when it has any.
retained: Vec<RetainedStatement>Statements inside this subsystem, and outside any JOIN group, that
are outside the grammar, kept as their trimmed line.
Implementations§
Source§impl Subsystem
impl Subsystem
Sourcepub fn select_buses(&self, net: &BalancedNetwork) -> BTreeSet<BusId>
pub fn select_buses(&self, net: &BalancedNetwork) -> BTreeSet<BusId>
The buses of net this subsystem names.
Within one group the buses matching each selector family present are unioned within the family and intersected across the families, and the groups of a subsystem are unioned. A group with no selector, and a subsystem with no group, names no bus.
Source§impl Subsystem
impl Subsystem
Sourcepub fn calc_dispatch_rules(&self) -> Vec<SubsystemDispatchRule>
pub fn calc_dispatch_rules(&self) -> Vec<SubsystemDispatchRule>
The TARA dispatch lines the subsystem states, in the order the
subsystem keeps them: its own retained lines, then each JOIN group’s.
A line outside this grammar is not listed and stays text only.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Subsystem
impl<'de> Deserialize<'de> for Subsystem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Subsystem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Subsystem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Subsystem
impl JsonSchema for Subsystem
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more