package assign2startercode;

/**
 * @author macisac
 * @version 1.8.0
 * 
 */

public class Appointment {

	private OurDate appointmentDate;
	private Doctor doctor;
	private Patient patient;
	
	public Appointment() {
		this.patient = null;
		this.doctor = null;
		this.appointmentDate = null;
	}
	
	public Appointment(Patient patient, Doctor doctor, OurDate appointmentDate) {
		this.patient = patient;
		this.doctor = doctor;
		this.appointmentDate = appointmentDate;
	}
	
	@Override
	public String toString() {
		return "Appointment [appointments=" + appointmentDate + ", doctor=" + doctor + ", patient=" + patient + "]";
	}

	public OurDate getAppointmentDate() {
		return appointmentDate;
	}

	public void setAppointmentDate(OurDate appointmentDate) {
		this.appointmentDate = appointmentDate;
	}

	public Doctor getDoctor() {
		return doctor;
	}

	public void setDoctor(Doctor doctor) {
		this.doctor = doctor;
	}

	public Patient getPatient() {
		return patient;
	}

	public void setPatient(Patient patient) {
		this.patient = patient;
	}
		
}//end class definition
