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

Field Summary
protected  java.lang.String disease
          Name of the diagnosable disease.
protected  DiseaseToSymptomMapping nextDiseaseForSymptom
          Reference to the next disease that presents this symptom.
protected  DiseaseToSymptomMapping nextSymptomForDisease
          Reference to the next symptom for this disease.
protected  java.lang.String symptom
          Name of the presented symptom.
 
Constructor Summary
DiseaseToSymptomMapping()
          No-arg constructor.
DiseaseToSymptomMapping(java.lang.String d, java.lang.String s)
          Creates a new DiseaseToSymptomMapping instance.
 
Method Summary
 void addDisease(DiseaseToSymptomMapping dtsm)
          Adds a new matrix entry to the end of the chain for this symptom.
 void addSymptom(DiseaseToSymptomMapping dtsm)
          Adds a new entry to the end of the chain for this disease.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.
Constructor Detail

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 value
s - a String value
Method Detail

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