org.flexiblepower.api.efi.commonhelper
public class TimerModel extends Timer
| Constructor and Description |
|---|
TimerModel(Timer base)
Constructs a new timer.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getFinishedAt()
Returns the finishedAt moment.
|
boolean |
isBlockingAt(java.util.Date moment)
Returns whether the timer is blocking at this moment.
|
void |
updateFinishedAt(java.util.Date finishedAt)
A new finishedAt moment overwrites the old moment.
|
public TimerModel(Timer base)
base - The object that holds the information from the EFI message about the Timer.public void updateFinishedAt(java.util.Date finishedAt)
finishedAt - The new date at which the timer should be finished.public java.util.Date getFinishedAt()
public boolean isBlockingAt(java.util.Date moment)
moment - The timestamp for which we should check.