pub struct SwitchSchedule<'a>(pub &'a Object);Expand description
A schedule of switch positions. If RegularTimePoint.value1 is 0, the switch is open. If 1, the switch is closed.
Tuple Fields§
§0: &'a ObjectImplementations§
Source§impl<'a> SwitchSchedule<'a>
impl<'a> SwitchSchedule<'a>
Sourcepub fn diagram_objects(
&self,
) -> impl Iterator<Item = TypedRef<DiagramObject<'static>>> + use<'a>
pub fn diagram_objects( &self, ) -> impl Iterator<Item = TypedRef<DiagramObject<'static>>> + use<'a>
The diagram objects that are associated with the domain object.
Sourcepub fn diagram_objects_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = DiagramObject<'d>> + use<'a, 'd>
pub fn diagram_objects_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = DiagramObject<'d>> + use<'a, 'd>
Resolve every DiagramObjects through dataset, skipping unresolved references.
Sourcepub fn description(&self) -> Option<&'a str>
pub fn description(&self) -> Option<&'a str>
The description is a free human readable text describing or naming the object. It may be non unique and may not correlate to a naming hierarchy.
Sourcepub fn m_rid(&self) -> Option<&'a str>
pub fn m_rid(&self) -> Option<&'a str>
Master resource identifier issued by a model authority. The mRID is unique within an exchange context. Global uniqueness is easily achieved by using a UUID, as specified in RFC 4122, for the mRID. The use of UUID is strongly recommended. For CIMXML data files in RDF syntax conforming to IEC 61970-552, the mRID is mapped to rdf:ID or rdf:about attributes that identify CIM object elements.
Sourcepub fn name(&self) -> Option<&'a str>
pub fn name(&self) -> Option<&'a str>
The name is any free human readable and possibly non unique text naming the object.
Sourcepub fn energy_ident_code_eic(&self) -> Option<&'a str>
pub fn energy_ident_code_eic(&self) -> Option<&'a str>
The attribute is used for an exchange of the EIC code (Energy identification Code). The length of the string is 16 characters as defined by the EIC code. For details on EIC scheme please refer to ENTSO-E web site.
Sourcepub fn short_name(&self) -> Option<&'a str>
pub fn short_name(&self) -> Option<&'a str>
The attribute is used for an exchange of a human readable short name with length of the string 12 characters maximum.
Sourcepub fn start_time(&self) -> Option<&'a str>
pub fn start_time(&self) -> Option<&'a str>
The time for the first time point. The value can be a time of day, not a specific date.
Sourcepub fn value1_unit(&self) -> Option<EnumValueId>
pub fn value1_unit(&self) -> Option<EnumValueId>
Value1 units of measure.
Sourcepub fn value2_unit(&self) -> Option<EnumValueId>
pub fn value2_unit(&self) -> Option<EnumValueId>
Value2 units of measure.
Sourcepub fn time_points(
&self,
) -> impl Iterator<Item = TypedRef<RegularTimePoint<'static>>> + use<'a>
pub fn time_points( &self, ) -> impl Iterator<Item = TypedRef<RegularTimePoint<'static>>> + use<'a>
The regular interval time point data values that define this schedule.
Sourcepub fn time_points_in<'d>(
&self,
dataset: &'d Dataset,
) -> impl Iterator<Item = RegularTimePoint<'d>> + use<'a, 'd>
pub fn time_points_in<'d>( &self, dataset: &'d Dataset, ) -> impl Iterator<Item = RegularTimePoint<'d>> + use<'a, 'd>
Resolve every TimePoints through dataset, skipping unresolved references.
Sourcepub fn end_time(&self) -> Option<&'a str>
pub fn end_time(&self) -> Option<&'a str>
The time for the last time point. The value can be a time of day, not a specific date.
Sourcepub fn time_step(&self) -> Option<f64>
pub fn time_step(&self) -> Option<f64>
The time between each pair of subsequent regular time points in sequence order.
Unit: s.
Sourcepub fn day_type_in<'d>(&self, dataset: &'d Dataset) -> Option<DayType<'d>>
pub fn day_type_in<'d>(&self, dataset: &'d Dataset) -> Option<DayType<'d>>
Resolve DayType through dataset.
Sourcepub fn season_in<'d>(&self, dataset: &'d Dataset) -> Option<Season<'d>>
pub fn season_in<'d>(&self, dataset: &'d Dataset) -> Option<Season<'d>>
Resolve Season through dataset.