Request to add a scheduled sleep.
Modifiers | Name | Description |
---|---|---|
protected SleepCycle |
sleepCycle |
Constructor and description |
---|
AddScheduledSleepReq
() Request immediate sleep forever. |
AddScheduledSleepReq
(Date wakeupTime) Request immediate sleep until a specified time. |
AddScheduledSleepReq
(long wakeupTime) Request immediate sleep until a specified time. |
AddScheduledSleepReq
(Date sleepTime, Date wakeupTime) Request sleep from a given time until a wakeup time. |
AddScheduledSleepReq
(long sleepTime, long wakeupTime) Request sleep from a given time until a wakeup time. |
Type Params | Return Type | Name and description |
---|---|---|
|
SleepCycle |
getSleepCycle() Gets the sleep/wakeup times. |
|
Date |
getSleepTime() Gets the sleep time. |
|
Date |
getWakeupTime() Gets the wakeup time. |
|
String |
toString() |
Methods inherited from class | Name |
---|---|
class Message |
setPerformative, toString, getSender, setMessageID, getSentAt, setRecipient, getInReplyTo, setSentAt, setSender, getPerformative, getRecipient, getMessageID, setInReplyTo, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Request immediate sleep forever.
Request immediate sleep until a specified time.
wakeupTime
- time to wake upRequest immediate sleep until a specified time.
wakeupTime
- time to wake up (Unix epoch time)Request sleep from a given time until a wakeup time.
sleepTime
- time to go to sleepwakeupTime
- time to wake upRequest sleep from a given time until a wakeup time.
sleepTime
- time to go to sleep (Unix epoch time)wakeupTime
- time to wake up (Unix epoch time)Gets the sleep/wakeup times.
Gets the sleep time.
Gets the wakeup time.
Copyright 2013-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd