public class EntityScheduleEntry
extends java.lang.Object
Constructor and Description |
---|
EntityScheduleEntry(Model model,
TimeSpan fromBeginOfDay,
TimeSpan untilBeginOfDay)
Create an schedule entry with daily time border.
|
EntityScheduleEntry(Model model,
TimeSpan fromBeginOfDay,
TimeSpan untilBeginOfDay,
double value) |
EntityScheduleEntry(Model model,
TimeSpan fromBeginOfDay,
TimeSpan untilBeginOfDay,
java.lang.Object value)
Create an schedule entry with daily time border and an entry value.
|
Modifier and Type | Method and Description |
---|---|
TimeInstant |
getEnd(TimeInstant time)
Get end time of this Entry for given date.
|
java.lang.Object[] |
getValues()
Get values array of entry
|
void |
setDayOfWeek(boolean[] dayOfWeek)
active daysOfWeek in this schedule entry (SUN, MON, .., FRI, SAT)
|
void |
setValidTimeRange(TimeInstant from,
TimeInstant until)
Global range of this schedule entry
Default is null
|
void |
setValues(java.lang.Object[] values)
Each entry has a values array.
|
java.lang.String |
toString() |
public EntityScheduleEntry(Model model, TimeSpan fromBeginOfDay, TimeSpan untilBeginOfDay, java.lang.Object value)
model
- fromBeginOfDay
- TimeSpan from 0:00 until begin of entry.
Must be smaller than 24h. Null is not allowed.untilBeginOfDay
- TimeSpan from 0:00 until end of entry.
Null is not allowed.value
- public EntityScheduleEntry(Model model, TimeSpan fromBeginOfDay, TimeSpan untilBeginOfDay, double value)
public EntityScheduleEntry(Model model, TimeSpan fromBeginOfDay, TimeSpan untilBeginOfDay)
model
- fromHourOfDay
- fromMinute
- untilHourOfDay
- untilMinute
- public void setValidTimeRange(TimeInstant from, TimeInstant until)
from
- until
- public void setDayOfWeek(boolean[] dayOfWeek)
dayOfWeek
- public void setValues(java.lang.Object[] values)
capacity
- public java.lang.Object[] getValues()
public TimeInstant getEnd(TimeInstant time)
date
- public java.lang.String toString()
toString
in class java.lang.Object