Table of Contents

Class IfcTask

Namespace
IfcIO.Model.Sequence
Assembly
IfcIO.dll

A scheduled construction or operational task within a work schedule conforming to buildingSMART IFCTASK.

public sealed class IfcTask

Inheritance

Inherited Members

Constructors

IfcTask()

public IfcTask()

IfcTask(string, string?, IfcTaskType)

public IfcTask(string name, string? identification = null, IfcTaskType taskType = IfcTaskType.Construction)

Parameters

name string
identification string?
taskType IfcTaskType

Properties

AssignedElements

Building elements assigned to be constructed or demolished by this task.

public List<IfcElement> AssignedElements { get; }

Property Value

List<IfcElement>

Description

public string? Description { get; set; }

Property Value

string?

GlobalId

public string GlobalId { get; set; }

Property Value

string

Identification

Work Breakdown Structure (WBS) identification code (e.g. "1.2.3").

public string? Identification { get; set; }

Property Value

string?

Name

public string Name { get; set; }

Property Value

string

Predecessors

Predecessor sequence dependencies leading into this task.

public List<IfcTaskRelationship> Predecessors { get; }

Property Value

List<IfcTaskRelationship>

Priority

public int? Priority { get; set; }

Property Value

int?

Status

public string? Status { get; set; }

Property Value

string?

SubTasks

Hierarchical subtasks subordinate to this task.

public List<IfcTask> SubTasks { get; }

Property Value

List<IfcTask>

Successors

Successor sequence dependencies leading out of this task.

public List<IfcTaskRelationship> Successors { get; }

Property Value

List<IfcTaskRelationship>

TaskType

public IfcTaskType TaskType { get; set; }

Property Value

IfcTaskType

Time

public IfcTaskTime? Time { get; set; }

Property Value

IfcTaskTime?

Methods

AddSubTask(string, string?, DateTime?, DateTime?)

Adds a nested subtask under this task.

public IfcTask AddSubTask(string name, string? identification = null, DateTime? start = null, DateTime? finish = null)

Parameters

name string
identification string?
start DateTime?
finish DateTime?

Returns

IfcTask

AddSuccessor(IfcTask, IfcSequenceType, TimeSpan?)

Links a successor task with an optional sequence type and lag.

public IfcTaskRelationship AddSuccessor(IfcTask successor, IfcSequenceType sequenceType = IfcSequenceType.FinishToStart, TimeSpan? lag = null)

Parameters

successor IfcTask
sequenceType IfcSequenceType
lag TimeSpan?

Returns

IfcTaskRelationship

AssignElement(IfcElement)

Assigns a physical building element to this task.

public void AssignElement(IfcElement element)

Parameters

element IfcElement

AssignElements(IEnumerable<IfcElement>)

Assigns multiple building elements to this task.

public void AssignElements(IEnumerable<IfcElement> elements)

Parameters

elements IEnumerable<IfcElement>