scheduler.model
Class Medication
java.lang.Object
scheduler.model.Medication
public class Medication
- extends java.lang.Object
Represents a named medication with four possible
description attributes.
Nested Class Summary |
static class |
Medication.Color
Enumerated color options for the description of a medication. |
static class |
Medication.Shape
Enumerated shape options for the description of a medication. |
static class |
Medication.Special
Enumerated special options for the description of a medication. |
Constructor Summary |
Medication(java.lang.String name)
Creates a new Medication with the specified name and
no default attributes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Medication
public Medication(java.lang.String name)
- Creates a new Medication with the specified name and
no default attributes.
- Parameters:
name
- the description for this new medication
setName
public void setName(java.lang.String name)
setColor
public void setColor(Medication.Color color)
setShape
public void setShape(Medication.Shape shape)
setSpecial1
public void setSpecial1(Medication.Special special)
setSpecial2
public void setSpecial2(Medication.Special special)
getName
public java.lang.String getName()
getColor
public Medication.Color getColor()
getShape
public Medication.Shape getShape()
getSpecial1
public Medication.Special getSpecial1()
getSpecial2
public Medication.Special getSpecial2()