public class AlarmClock extends Object
SimpleTime objects (one for the clock time
and one for the alarm time).| Constructor and Description |
|---|
AlarmClock(SimpleTime clockTime,
SimpleTime alarmTime)
Create an alarm clock with the given clock time and alarm time.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleTime |
getAlarm()
Get the alarm time.
|
SimpleTime |
getClock()
Get the clock time.
|
void |
setAlarm(SimpleTime newTime)
Set the alarm time.
|
void |
setClock(SimpleTime newTime)
Set the clock time.
|
public AlarmClock(SimpleTime clockTime, SimpleTime alarmTime)
clockTime - the clock timealarmTime - the alarm timepublic SimpleTime getClock()
public void setClock(SimpleTime newTime)
newTime - the desired clock timepublic SimpleTime getAlarm()
public void setAlarm(SimpleTime newTime)
newTime - the desired alarm time