org.mitre.midiki.workshop
Class DiseaseToSymptomMapping
java.lang.Object
|
+--org.mitre.midiki.workshop.DiseaseToSymptomMapping
- All Implemented Interfaces:
- java.io.Serializable
- public class DiseaseToSymptomMapping
- extends java.lang.Object
- implements java.io.Serializable
Indicates that the presence of the specified symptom
supports a diagnosis of the specified disease.
The database is implemented as a sparse matrix in which
each entry is a DiseaseToSymptomMapping
.
Not a user-accessible object.
- Since:
- 1.0
- See Also:
Serializable
, Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
disease
protected java.lang.String disease
- Name of the diagnosable disease.
symptom
protected java.lang.String symptom
- Name of the presented symptom.
nextSymptomForDisease
protected DiseaseToSymptomMapping nextSymptomForDisease
- Reference to the next symptom for this disease.
nextDiseaseForSymptom
protected DiseaseToSymptomMapping nextDiseaseForSymptom
- Reference to the next disease that presents this symptom.
DiseaseToSymptomMapping
public DiseaseToSymptomMapping()
- No-arg constructor.
DiseaseToSymptomMapping
public DiseaseToSymptomMapping(java.lang.String d,
java.lang.String s)
- Creates a new
DiseaseToSymptomMapping
instance.
- Parameters:
d
- a String
values
- a String
value
addDisease
public void addDisease(DiseaseToSymptomMapping dtsm)
- Adds a new matrix entry to the end of the chain for this symptom.
- Parameters:
dtsm
- a DiseaseToSymptomMapping
value
addSymptom
public void addSymptom(DiseaseToSymptomMapping dtsm)
- Adds a new entry to the end of the chain for this disease.
- Parameters:
dtsm
- a DiseaseToSymptomMapping
value