org.dxc.api.datatypes
Class Candidate

Object
  extended by org.dxc.api.datatypes.Candidate

public class Candidate
extends Object

Maps a set of component IDs to (hypothesized) faulty states.


Constructor Summary
Candidate()
           
Candidate(FaultSet faultSet)
           
Candidate(FaultSet faultSet, double optionalWeight)
           
 
Method Summary
 boolean equals(Object o)
           
 FaultSet getFaultSet()
          A map of component IDs to predicted fault mode IDs.
 double getWeight()
          Weight of this candidate relative to others in the diagnosis.
 int hashCode()
           
 void setFaultSet(FaultSet f)
           
 void setWeight(double w)
           
 String toString()
           
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Candidate

public Candidate(FaultSet faultSet,
                 double optionalWeight)

Candidate

public Candidate(FaultSet faultSet)

Candidate

public Candidate()
Method Detail

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