Table of Contents

Class StationDefectsHierarchy

Namespace
Acuit.Pinpoint.Services.Entities
Assembly
Acuit.Pinpoint.Services.Entities.dll

A defect/repair hierarchy.

[DataContract(Namespace = "http://schemas.datacontract.org/2004/07/Acuit.Pinpoint.Server.Business")]
public class StationDefectsHierarchy
Inheritance
StationDefectsHierarchy
Inherited Members

Constructors

StationDefectsHierarchy()

public StationDefectsHierarchy()

Properties

IsDefectEntryConfigured

Gets whether defect entry is configured for this station. One or more defect paths must be configured for the station type in the line configuration that aren't also configured as hidden via the key/value settings.

public bool IsDefectEntryConfigured { get; }

Property Value

bool

Root

Gets or sets the root node for the hierarchy.

[DataMember]
public StationDefectNode Root { get; set; }

Property Value

StationDefectNode

Methods

FindClosestDefectNode(Defect)

Finds the closest node in the defects hierarchy matching the specified defect.

public StationDefectNode FindClosestDefectNode(Defect defect)

Parameters

defect Defect

The defect.

Returns

StationDefectNode

The best matching defect node. If no parts of the defect match, the root node is returned.

Exceptions

ArgumentNullException

defect is null.

FindClosestDefectNode(IEnumerable<string>)

Finds the closest node in the defects hierarchy matching the specified defect part names.

public StationDefectNode FindClosestDefectNode(IEnumerable<string> defectPartNames)

Parameters

defectPartNames IEnumerable<string>

The defect part names.

Returns

StationDefectNode

The best matching defect node. If no parts match, the root node is returned.

Exceptions

ArgumentNullException

defectPartNames is null.

FindRepairTreeForDefect(Defect)

Finds the repair tree associated with the specified defect.

public StationRepairNode FindRepairTreeForDefect(Defect defect)

Parameters

defect Defect

The defect for which to find the repair tree.

Returns

StationRepairNode

The root node of the repair tree associated with the defect. If no repair tree is directly associated with the defect, the method traverses up the defect hierarchy to find the closest repair tree.

Exceptions

ArgumentNullException

defect is null.