pub struct WorkControl<'m> { /* private fields */ }Expand description
A borrowed view of an IfcWorkPlan or IfcWorkSchedule, read against
one release.
Implementations§
Source§impl<'m> WorkControl<'m>
impl<'m> WorkControl<'m>
Sourcepub fn new(
id: EntityId,
entity: &'m Entity,
release: SchemaVersion,
) -> Result<Option<Self>, ScheduleReadError>
pub fn new( id: EntityId, entity: &'m Entity, release: SchemaVersion, ) -> Result<Option<Self>, ScheduleReadError>
Wrap an entity if it is a work plan or work schedule, read against
release; Ok(None) for another entity.
work_plans and work_schedules bind the model’s declared
release; use this when the release is known some other way.
§Errors
ScheduleReadError::UnsupportedSchema for a release the readers
are not verified against (IFC4X1, IFC4X2).
Sourcepub fn release(&self) -> SchemaVersion
pub fn release(&self) -> SchemaVersion
The release this record is read against.
Sourcepub fn kind(&self) -> WorkControlKind
pub fn kind(&self) -> WorkControlKind
Whether this is a plan or a schedule.
Sourcepub fn description(&self) -> Option<&'m str>
pub fn description(&self) -> Option<&'m str>
The description.
Sourcepub fn identification(&self) -> Option<&'m str>
pub fn identification(&self) -> Option<&'m str>
The user-facing identification code.
Sourcepub fn creation_date(&self) -> Option<AuthoredDateTime<'m>>
pub fn creation_date(&self) -> Option<AuthoredDateTime<'m>>
When it was created, as authored: ISO 8601 text or an IFC2X3 date record.
Sourcepub fn start_time(&self) -> Option<AuthoredDateTime<'m>>
pub fn start_time(&self) -> Option<AuthoredDateTime<'m>>
The planned start, as authored. Required by the schema.
Sourcepub fn finish_time(&self) -> Option<AuthoredDateTime<'m>>
pub fn finish_time(&self) -> Option<AuthoredDateTime<'m>>
The planned finish, as authored.
Sourcepub fn duration(&self) -> Option<AuthoredDuration<'m>>
pub fn duration(&self) -> Option<AuthoredDuration<'m>>
The overall duration, as authored: an ISO 8601 duration or an IFC2X3 time measure.
Sourcepub fn total_float(&self) -> Option<AuthoredDuration<'m>>
pub fn total_float(&self) -> Option<AuthoredDuration<'m>>
The total float, as authored: an ISO 8601 duration or an IFC2X3 time measure.
Sourcepub fn predefined_type(&self) -> Option<&'m str>
pub fn predefined_type(&self) -> Option<&'m str>
The predefined type token, without its dots. None in IFC2X3, which
declares WorkControlType instead (see Self::work_control_type).
Sourcepub fn work_control_type(&self) -> Option<&'m str>
pub fn work_control_type(&self) -> Option<&'m str>
IFC2X3’s WorkControlType token (IfcWorkControlTypeEnum), without
its dots. None in IFC4 and IFC4X3, which declare PredefinedType
with their own enumerations instead; the two are not aliased.
Trait Implementations§
Source§impl<'m> Clone for WorkControl<'m>
impl<'m> Clone for WorkControl<'m>
Source§fn clone(&self) -> WorkControl<'m>
fn clone(&self) -> WorkControl<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more