scheduler.model
Class Medication

java.lang.Object
  extended by 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.
 
Method Summary
 Medication.Color getColor()
           
 java.lang.String getName()
           
 Medication.Shape getShape()
           
 Medication.Special getSpecial1()
           
 Medication.Special getSpecial2()
           
 void setColor(Medication.Color color)
           
 void setName(java.lang.String name)
           
 void setShape(Medication.Shape shape)
           
 void setSpecial1(Medication.Special special)
           
 void setSpecial2(Medication.Special special)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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()