Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
IntegratedTravelSystem/MedCond.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
63 lines (55 sloc)
1.31 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable; | |
public class MedCond implements Serializable | |
{ | |
// Variables | |
String algType; | |
String mdPhone; | |
String mdContact; | |
String illType; | |
//Constructor | |
public MedCond(String mdContact, String mdPhone, String algType, String illType) | |
{ | |
this.mdContact=mdContact; //medical contact | |
this.mdPhone=mdPhone; //Medical Phone # | |
this.algType=algType; // Allergy Type | |
this.illType=illType; // Illness type | |
} | |
@Override | |
public String toString() { | |
return mdContact + "\t" + mdPhone + "\t" + algType + "\t" + illType; | |
} | |
//Get Methods | |
public String getIllType() | |
{ | |
return illType; | |
} | |
public String getMdPhone() | |
{ | |
return mdPhone; | |
} | |
public String getMdContact() | |
{ | |
return mdContact; | |
} | |
public String getAlgType() | |
{ | |
return algType; | |
} | |
//Update Methods | |
public void updateIllType(String name) | |
{ | |
this.illType=name; | |
} | |
public void updateMdPhone(String name) | |
{ | |
this.mdPhone=name; | |
} | |
public void updateMdContact(String name) | |
{ | |
this.mdContact=name; | |
} | |
public void updateAlgType(String name) | |
{ | |
this.algType=name; | |
} | |
} |