Class StationDefectsHierarchy
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
Root
Gets or sets the root node for the hierarchy.
[DataMember]
public StationDefectNode Root { get; set; }
Property Value
Methods
FindClosestDefectNode(Defect)
Finds the closest node in the defects hierarchy matching the specified defect.
public StationDefectNode FindClosestDefectNode(Defect defect)
Parameters
defectDefectThe defect.
Returns
- StationDefectNode
The best matching defect node. If no parts of the defect match, the root node is returned.
Exceptions
- ArgumentNullException
defectis 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
defectPartNamesIEnumerable<string>The defect part names.
Returns
- StationDefectNode
The best matching defect node. If no parts match, the root node is returned.
Exceptions
- ArgumentNullException
defectPartNamesis null.
FindRepairTreeForDefect(Defect)
Finds the repair tree associated with the specified defect.
public StationRepairNode FindRepairTreeForDefect(Defect defect)
Parameters
defectDefectThe 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
defectis null.