org.dxc.api.datatypes
Class Candidate
Object
org.dxc.api.datatypes.Candidate
public class Candidate
- extends Object
Maps a set of component IDs to (hypothesized) faulty states.
Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
Candidate
public Candidate(FaultSet faultSet,
double optionalWeight)
Candidate
public Candidate(FaultSet faultSet)
Candidate
public Candidate()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getFaultSet
public FaultSet getFaultSet()
- A map of component IDs to predicted fault mode IDs.
setFaultSet
public void setFaultSet(FaultSet f)
getWeight
public double getWeight()
- Weight of this candidate relative to others in the diagnosis.
Weights in a candidate set are normalized upon creation of DiagnosisData,
such that they add up to 1.
setWeight
public void setWeight(double w)
toString
public String toString()
- Overrides:
toString
in class Object