Package com.anylogic.engine
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- isInitialized
- lazyInit
- initialize
- setOwner
- setCalendarType
- setFirstDayOfWeek
- setTimeUnits
- setPeriod
- setSnapTo
- setSnapTo
- setDefaultValue
- setGlueIntervals
- setSingleThreadMode
- addInterval
- addInterval
- addInterval
- addInterval
- addInterval
- addMoment
- addMoment
- addMoment
- addMoment
- addMoment
- addException
- getTimeUnits
- getTimeoutToNextValue
- getTimeoutToNextValue
- getTimeoutToNextValue
- getTimeOfNextValue
- getTimeOfNextValue
- getTimeOfNextValue
- getDateOfNextValue
- getDateOfNextValue
- getDateOfNextValue
- getNextValue
- getNextValue
- getNextValue
- getNextValue
- getTimeOfValue
- getTimeOfValue
- getTimeOfValue
- getDateOfValue
- getDateOfValue
- getDateOfValue
- getValue
- getValue
- getValue
- getValue
- toString
- getDistinctValues_xjal
- restoreOwner
- java.lang.Object
- com.anylogic.engine.Schedule<V>
- Type Parameters:
V
- the type of schedule values
- All Implemented Interfaces:
com.anylogic.engine.internal.Child
,Serializable
- Direct Known Subclasses:
ScheduleWithUnits
public class Schedule<V extends Serializable> extends Object implements Serializable, com.anylogic.engine.internal.Child
Schedule class. Allows to track moments specified using time table with some
period. Also, annual and single exceptions may be added to the schedule.
Schedule provides 4 types of information:
Schedule provides 4 types of information:
- the current value:
getValue()
- the moment since the schedule has been holding its current value:
getTimeOfValue()
,getDateOfValue()
- the next value of the schedule (which will be set in future):
getNextValue()
- the time of the moment schedule switches to the next value:
getTimeOfNextValue()
,getDateOfNextValue()
,getTimeoutToNextValue()
- without any argument - data is retrieved for the current model time
- with argument
time
of typedouble
: data is retrieved for the provided modeltime
. In case of+/-infinity
orNaN
argument value,getValue*
andgetDate*
methods returnnull
, andgetTime*
andgetTimeout*
methods returnDouble.NaN
- with argument
date
of type
: data is retrieved for the provided modelDate
date
. In case ofnull
argument value,getValue*
andgetDate*
methods returnnull
, andgetTime*
andgetTimeout*
methods returnDouble.NaN
getTimeOfNextValue()
method instead of getTimeoutToNextValue()
because of possible
numeric calculation errors). Create the timeout event
which occurs once at the time:
schedule.getTimeOfValue() == time() ? time() : schedule.getTimeOfNextValue()and has the following action code:
// ...your custom actions are here... event.restartTo( schedule.getTimeOfNextValue() );
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Constructor | Description |
---|---|
Schedule() |
Creates new schedule object
|
Schedule |
Creates new schedule object
|
Schedule |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
Modifier and Type | Method | Description |
---|---|---|
void | addException |
Adds new particular time intervals when the value defined by this schedule should have other values
|
void | addInterval |
Adds new particular time interval to this schedule
|
void | addInterval |
Adds new particular time interval to this schedule
|
void | addInterval |
Adds new particular time interval to this schedule
|
void | addInterval |
Adds new particular time intervals to this schedule
|
void | addInterval |
Adds new particular time interval to this schedule
|
void | addMoment |
Adds new particular time moment to this schedule
|
void | addMoment |
Adds new particular time moment to this schedule
|
void | addMoment |
Adds new particular time moment to this schedule
|
void | addMoment |
Adds new particular time moment to this schedule
|
void | addMoment |
Adds new particular time moment to this schedule
|
Date | getDateOfNextValue() |
Returns the model date of the next change moment in the schedule.
In case when there is no 'next' value, returns null |
Date | getDateOfNextValue | |
Date | getDateOfNextValue |
Returns the model date of the schedule change moment next to the given
model
date .In case when there is no 'next' value, returns null .In case of null argument value, returns null |
Date | getDateOfValue() |
Returns the model date the current value of the schedule has
been held since.
If the schedule has always been holding the current value, the method returns null |
Date | getDateOfValue | |
Date | getDateOfValue |
Returns the model date of the schedule change moment of the
value corresponding to the given model
date .If the schedule has always been holding the current value (up to the given date ), the method returns null .In case of null argument value, returns null |
Set<V> | getDistinctValues_xjal() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
V | getNextValue() |
Returns the value of the next change moment in the schedule.
In case when there is no 'next' value, returns null |
V | getNextValue | |
V | getNextValue | |
V | getNextValue |
Returns the value of the schedule change moment next to the given
model
date .In case when there is no 'next' value, returns null .In case of null argument value, returns null |
double | getTimeOfNextValue() |
Returns the model time of the next change moment in the schedule.
In case when there is no 'next' value, returns positive infinity |
double | getTimeOfNextValue |
Returns the model time of the schedule change moment next to the given
model
time .In case when there is no 'next' value, returns positive infinity. In case of +/-infinity or
NaN argument value, returns Double.NaN |
double | getTimeOfNextValue |
Returns the model time of the schedule change moment next to the given
model
date .In case when there is no 'next' value, returns positive infinity. In case of null argument value, returns Double.NaN |
double | getTimeOfValue() |
Returns the model time the current value of the schedule has
been held since.
If the schedule has always been holding the current value, the method returns negative infinity |
double | getTimeOfValue |
Returns the model time of the schedule change moment of the
value corresponding to the given model
time .If the schedule has always been holding the current value (up to the given time ), the method returns negative infinity.In case of +/-infinity or
NaN argument value, returns Double.NaN |
double | getTimeOfValue |
Returns the model time of the schedule change moment of the
value corresponding to the given model
date .If the schedule has always been holding the current value (up to the given date ), the method returns negative infinity.In case of null argument value, returns Double.NaN |
double | getTimeoutToNextValue() |
Returns timeout to the next change moment in the schedule,
measured in the model time units from the current model time.
In case when there is no 'next' value, returns positive infinity |
double | getTimeoutToNextValue |
Returns timeout to the schedule change moment next to the given
time , measured in the model time units from that
time .In case when there is no 'next' value, returns positive infinity. In case of +/-infinity or
NaN argument value, returns Double.NaN |
double | getTimeoutToNextValue |
Returns timeout to the schedule change moment next to the given
model
date , measured in the model time units from that
model date .In case when there is no 'next' value, returns positive infinity. In case of null argument value, returns Double.NaN |
long | getTimeUnits() |
Returns time units of the schedule
|
V | getValue() |
Returns the value corresponding to the current model time
|
V | getValue | |
V | getValue | |
V | getValue |
Returns the value of the schedule corresponding to the given model
date .In case of null argument value, returns null |
void | initialize() | |
boolean | isInitialized() | |
void | lazyInit |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
void | restoreOwner |
Deprecated.
|
void | setCalendarType |
Sets the calendar type
|
void | setDefaultValue |
Sets the default value used when there is no interval defined in the schedule
|
void | setFirstDayOfWeek |
Sets the first day of the week
|
void | setGlueIntervals | |
void | setOwner |
Sets the owner agent or experiment owning the schedule
|
void | setPeriod |
Sets the recurrence period of the schedule
|
void | setSingleThreadMode |
Sets the thread mode
|
void | setSnapTo |
Sets start time of the schedule
|
void | setSnapTo |
Sets start time of the schedule
|
void | setTimeUnits |
Sets the time units of the schedule
|
String | toString() |
public Schedule()
Creates new schedule object
@AnyLogicInternalAPI public Schedule(Utilities owner, boolean calendarType, int firstDayOfWeek, long period, long timeUnits, Long snapTo, V defaultValue, long[] exStarts, long[] exEnds, Object[] exValues, boolean glueIntervals, boolean[] exceptionsAnnually, boolean singleThreadMode, boolean isLateInit)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
public Schedule(Utilities owner, boolean calendarType, int firstDayOfWeek, long period, long timeUnits, Long snapTo, V defaultValue, long[] starts, long[] ends, Object[] values, boolean glueIntervals, boolean[] exceptionsAnnually, boolean singleThreadMode)
Creates new schedule object
- Parameters:
owner
- agent or experiment owning the schedulecalendarType
- iftrue
then schedule works with calendar dates. For example, if you create a schedule for 8:00-17:00 each day - these times will be preserved even during the days of Daylight Saving Time switching.
If this parameter isfalse
, "1 day" will be treated as24*60*60
seconds - this is good for modeling the behavior of some automatic machines which don't watch at the wall-clock during e.g. self-maintenance procedures.firstDayOfWeek
- the first day of the week, this parameter is actually used whencalendarType == true
andtimeUnit
is weekperiod
- recurrence period of the schedule, measured in milliseconds. Milliseconds may be actual - ifcalendarType
isfalse
, and hypothetical - iftrue
, which means that1000*60*60*24
milliseconds denotes one day independently on Daylight Saving Time switching.timeUnits
- time units of the schedule, one ofTIME_UNIT_*
constants
In the calendar-mode the only supported time units are day and weeksnapTo
- the absolute date (ifcalendarType==true
) or the number of milliseconds from the zero model time (ifcalendarType==false
) which points to the start of some period. All schedule periods are cloned, started from the given time moment in both directions.defaultValue
- the value used when there is no interval defined in the schedulestarts
- start times of intervals, measured in milliseconds from the beginning of the period (milliseconds may be actual - ifcalendarType
isfalse
, and hypothetical - iftrue
, which means that1000*60*60*24
milliseconds denotes one day independently on Daylight Saving Time switching). This array may also contain starts of exceptions (seeexceptionsAnnually
parameter)ends
- end times of intervals, the same description as forstarts
values
- values for intervalsglueIntervals
- iftrue
then intersecting intervals with the same 'value' will be merged, e.g. two intervals "Day1 18:00-24:00 value=5" and "Day2 00:00-02:00 value=5" will be treated as one interval "Day1 18:00 - Day2 02:00 value=5"exceptionsAnnually
- the array of exception flags (true
means annual exception,false
- single occurrence), may be empty. The number of exceptions equals the length ofexceptionsAnnually
array. The exceptions are read fromstarts, ends, values
arrays. Exceptions data is located in the tails of these arrays. Note that for exceptions,starts
andends
arrays contain absolute dates encoded aslong
numbers (seeDate.getTime()
).singleThreadMode
- this parameter indicates whether schedule will work in single thread environment or will be used by multiple concurrent threads. This parameter is usually set totrue
for schedules inside agents and experiment which don't allow parallel execution (e.g. simulation experiment). But for schedules, located in optimization and parameter variation experiment which allow parallel execution this parameter should be set tofalse
.
@AnyLogicInternalCodegenAPI public boolean isInitialized()
@AnyLogicInternalAPI public void lazyInit(long[] starts, long[] ends, Object[] values)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
public void initialize()
public void setOwner(Utilities owner)
Sets the owner agent or experiment owning the schedule
- Parameters:
owner
- - agent or experiment owning the schedule
public void setCalendarType(boolean calendarType)
Sets the calendar type
- Parameters:
calendarType
- - iftrue
then schedule works with calendar dates. For example, if you create a schedule for 8:00-17:00 each day - these times will be preserved even during the days of Daylight Saving Time switching.
If this parameter isfalse
, "1 day" will be treated as24*60*60
seconds - this is good for modeling the behavior of some automatic machines which don't watch at the wall-clock during e.g. self-maintenance procedures.
public void setFirstDayOfWeek(int firstDayOfWeek)
Sets the first day of the week
- Parameters:
firstDayOfWeek
- - the first day of the week, this parameter is actually used whencalendarType == true
andtimeUnit
is week
public void setTimeUnits(long timeUnits)
Sets the time units of the schedule
- Parameters:
timeUnits
- - time units of the schedule, one ofTIME_UNIT_*
constants
In the calendar-mode the only supported time units are day and weeksnapTo
- the absolute date (ifcalendarType==true
) or the number of milliseconds from the zero model time (ifcalendarType==false
) which points to the start of some period. All schedule periods are cloned, started from the given time moment in both directions
public void setPeriod(int period)
Sets the recurrence period of the schedule
- Parameters:
period
- - recurrence period of the schedule, measured in milliseconds. Milliseconds may be actual - ifcalendarType
isfalse
, and hypothetical - iftrue
, which means that1000*60*60*24
milliseconds denotes one day independently on Daylight Saving Time switching.
public void setSnapTo(long snapTo)
Sets start time of the schedule
- Parameters:
snapTo
- - the absolute date (ifcalendarType==true
) or the number of milliseconds from the zero model time
public void setSnapTo(int year, int month, int day, int hour, int minute, int second)
Sets start time of the schedule
- Parameters:
year
- - yearmonth
- - monthday
- - dayhour
- - hourminute
- - minutesecond
- - second
public void setDefaultValue(V defaultValue)
Sets the default value used when there is no interval defined in the schedule
- Parameters:
defaultValue
- - the value used when there is no interval defined in the schedule
public void setGlueIntervals(boolean glueIntervals)
- Parameters:
glueIntervals
- iftrue
then intersecting intervals with the same 'value' will be merged, e.g. two intervals "Day1 18:00-24:00 value=5" and "Day2 00:00-02:00 value=5" will be treated as one interval "Day1 18:00 - Day2 02:00 value=5"
public void setSingleThreadMode(boolean singleThreadMode)
Sets the thread mode
- Parameters:
singleThreadMode
- - this parameter indicates whether schedule will work in single thread environment or will be used by multiple concurrent threads. This parameter is usually set totrue
for schedules inside agents and experiment which don't allow parallel execution (e.g. simulation experiment). But for schedules, located in optimization and parameter variation experiment which allow parallel execution this parameter should be set tofalse
.
public void addInterval(long start, long end, V value)
Adds new particular time interval to this schedule
- Parameters:
start
- - start time of the interval, measured in millisecondsend
- - end time of the interval, measured in millisecondsvalue
- - value of the interval
public void addInterval(int startWeek, int startDayOfWeek, int startHour, int startMinute, int startSecond, int endWeek, int endDayOfWeek, int endHour, int endMinute, int endSecond, V value)
Adds new particular time interval to this schedule
- Parameters:
startWeek
- - start week of the intervalstartDayOfWeek
- - start day of week of the intervalstartHour
- - start hour of the intervalstartMinute
- - start minute of the intervalstartSecond
- - start second of the intervalendWeek
- - end week of the intervalendDayOfWeek
- - end day of week of the intervalendHour
- - end hour of the intervalendMinute
- - end minute of the intervalendSecond
- - end second of the intervalvalue
- - value of the interval
public void addInterval(int startDay, int startHour, int startMinute, int startSecond, int endDay, int endHour, int endMinute, int endSecond, V value)
Adds new particular time interval to this schedule
- Parameters:
startDay
- - start day of the intervalstartHour
- - start hour of the intervalstartMinute
- - start minute of the intervalstartSecond
- - start second of the intervalendDay
- - end day of the intervalendHour
- - end hour of the intervalendMinute
- - end minute of the intervalendSecond
- - end second of the intervalvalue
- - value of the interval
public void addInterval(int startHour, int startMinute, int startSecond, int endHour, int endMinute, int endSecond, V value)
Adds new particular time interval to this schedule
- Parameters:
startHour
- - start hour for intervalstartMinute
- - start minute for intervalstartSecond
- - start second for intervalendHour
- - end hour for intervalendMinute
- - end minute for intervalendSecond
- - end second for intervalvalue
- - value for interval
public void addInterval(int startHour, int startMinute, int startSecond, int endHour, int endMinute, int endSecond, V value, int[] weekDays)
Adds new particular time intervals to this schedule
- Parameters:
startHour
- - start hour of the intervalstartMinute
- - start minute of the intervalstartSecond
- - start second of the intervalendHour
- - end hour of the intervalendMinute
- - end minute of the intervalendSecond
- - end second of the intervalvalue
- - value of the intervalweekDays
- - week days of the intervals
public void addMoment(long time, V value)
Adds new particular time moment to this schedule
- Parameters:
time
- - time of the moment, measured in millisecondsvalue
- - value of the moment
public void addMoment(int week, int dayOfWeek, int hour, int minute, int second, V value)
Adds new particular time moment to this schedule
- Parameters:
week
- - week of the momentdayOfWeek
- - day of the week of the momenthour
- - hour of the momentminute
- - minute of the momentsecond
- - second of the momentvalue
- - value of the moment
public void addMoment(int day, int hour, int minute, int second, V value)
Adds new particular time moment to this schedule
- Parameters:
day
- - day of the momenthour
- - hour of the momentminute
- - minute of the momentsecond
- - second of the momentvalue
- - value of the moment
public void addMoment(int hour, int minute, int second, V value)
Adds new particular time moment to this schedule
- Parameters:
hour
- - hour of the momentminute
- - minute of the momentsecond
- - second of the momentvalue
- - value of the moment
public void addMoment(int hour, int minute, int second, V value, int[] weekDays)
Adds new particular time moment to this schedule
- Parameters:
hour
-minute
-second
-value
-weekDays
-
public void addException(int startYear, int startMonth, int startDay, int startHour, int startMinute, int startSecond, int endYear, int endMonth, int endDay, int endHour, int endMinute, int endSecond, V value, boolean annually)
Adds new particular time intervals when the value defined by this schedule should have other values
- Parameters:
startYear
- - start year of the intervalstartMonth
- - start month of the intervalstartDay
- - start day of the intervalstartHour
- - start hour of the intervalstartMinute
- - start minute of the intervalstartSecond
- - start second of the intervalendYear
- - end year of the intervalendMonth
- - end month of the intervalendDay
- - end day of the intervalendHour
- - end hour of the intervalendMinute
- - end minute of the intervalendSecond
- - end second of the intervalvalue
- - value of the intervalannually
- - if you want the defined exception to occur annually in the specified day, sets true. Otherwise, if you want it to occur only in the specified year, sets false
public long getTimeUnits()
Returns time units of the schedule
- Returns:
- time units of the schedule, one of
TIME_UNIT_*
constants
public double getTimeoutToNextValue()
Returns timeout to the next change moment in the schedule,
measured in the model time units from the current model time.
In case when there is no 'next' value, returns positive infinity
In case when there is no 'next' value, returns positive infinity
- Returns:
- the timeout to the next schedule change or
+infinity
public double getTimeoutToNextValue(double time)
Returns timeout to the schedule change moment next to the given
In case when there is no 'next' value, returns positive infinity.
In case of
time
, measured in the model time units from that
time
.In case when there is no 'next' value, returns positive infinity.
In case of
+/-infinity
or
NaN
argument value, returns Double.NaN
- Returns:
- the timeout to the schedule change next to the given
time
or+infinity
public double getTimeoutToNextValue(Date date)
Returns timeout to the schedule change moment next to the given
model
In case when there is no 'next' value, returns positive infinity.
In case of
date
, measured in the model time units from that
model date
.In case when there is no 'next' value, returns positive infinity.
In case of
null
argument value, returns Double.NaN
- Returns:
- the timeout to the schedule change next to the given
date
or+infinity
public double getTimeOfNextValue()
Returns the model time of the next change moment in the schedule.
In case when there is no 'next' value, returns positive infinity
In case when there is no 'next' value, returns positive infinity
- Returns:
- the model time of the next schedule change or
+infinity
public double getTimeOfNextValue(double time)
Returns the model time of the schedule change moment next to the given
model
In case when there is no 'next' value, returns positive infinity.
In case of
time
.In case when there is no 'next' value, returns positive infinity.
In case of
+/-infinity
or
NaN
argument value, returns Double.NaN
- Returns:
- the model time of the schedule change next to the given
time
or+infinity
public double getTimeOfNextValue(Date date)
Returns the model time of the schedule change moment next to the given
model
In case when there is no 'next' value, returns positive infinity.
In case of
date
.In case when there is no 'next' value, returns positive infinity.
In case of
null
argument value, returns Double.NaN
- Returns:
- the model time of the schedule change next to the given
date
or+infinity
public Date getDateOfNextValue()
Returns the model date of the next change moment in the schedule.
In case when there is no 'next' value, returns
In case when there is no 'next' value, returns
null
- Returns:
- the model date of the next schedule change or
null
public Date getDateOfNextValue(double time)
Returns the model date of the schedule change moment next to the given
model
In case when there is no 'next' value, returns
In case of
time
.In case when there is no 'next' value, returns
null
.In case of
+/-infinity
or
NaN
argument value, returns null
- Returns:
- the model date of the schedule change next to the given
time
ornull
public Date getDateOfNextValue(Date date)
Returns the model date of the schedule change moment next to the given
model
In case when there is no 'next' value, returns
In case of
date
.In case when there is no 'next' value, returns
null
.In case of
null
argument value, returns null
- Returns:
- the model date of the schedule change next to the given
date
ornull
public V getNextValue()
Returns the value of the next change moment in the schedule.
In case when there is no 'next' value, returns
In case when there is no 'next' value, returns
null
- Returns:
- the value of the next schedule change or
null
public V getNextValue(double time)
Returns the value of the schedule change moment next to the given
model
In case when there is no 'next' value, returns
In case of
time
.In case when there is no 'next' value, returns
null
.In case of
+/-infinity
or
NaN
argument value, returns null
- Returns:
- the value of the schedule change next to the given
time
ornull
public V getNextValue(double time, TimeUnits units)
Returns the value of the schedule change moment next to the given
In case when there is no 'next' value, returns
In case of
time
.In case when there is no 'next' value, returns
null
.In case of
+/-infinity
or
NaN
argument value, returns null
- Parameters:
units
- the units of time- Returns:
- the value of the schedule change next to the given
time
ornull
public V getNextValue(Date date)
Returns the value of the schedule change moment next to the given
model
In case when there is no 'next' value, returns
In case of
date
.In case when there is no 'next' value, returns
null
.In case of
null
argument value, returns null
- Returns:
- the value of the schedule change next to the given
date
ornull
public double getTimeOfValue()
Returns the model time the current value of the schedule has
been held since.
If the schedule has always been holding the current value, the method returns negative infinity
If the schedule has always been holding the current value, the method returns negative infinity
- Returns:
- the model time of the current schedule change or
-infinity
public double getTimeOfValue(double time)
Returns the model time of the schedule change moment of the
value corresponding to the given model
If the schedule has always been holding the current value (up to the given
In case of
time
.If the schedule has always been holding the current value (up to the given
time
), the method returns negative infinity.In case of
+/-infinity
or
NaN
argument value, returns Double.NaN
- Returns:
- the model time of the schedule change corresponding to
the given
time
or-infinity
public double getTimeOfValue(Date date)
Returns the model time of the schedule change moment of the
value corresponding to the given model
If the schedule has always been holding the current value (up to the given
In case of
date
.If the schedule has always been holding the current value (up to the given
date
), the method returns negative infinity.In case of
null
argument value, returns Double.NaN
- Returns:
- the model time of the schedule change corresponding to
the given
date
or-infinity
public Date getDateOfValue()
Returns the model date the current value of the schedule has
been held since.
If the schedule has always been holding the current value, the method returns
If the schedule has always been holding the current value, the method returns
null
- Returns:
- the model date of the current schedule change or
null
public Date getDateOfValue(double time)
Returns the model date of the schedule change moment of the
value corresponding to the given model
If the schedule has always been holding the current value (up to the given
In case of
time
.If the schedule has always been holding the current value (up to the given
time
), the method returns null
.In case of
+/-infinity
or
NaN
argument value, returns null
- Returns:
- the model date of the schedule change corresponding to
the given
time
ornull
public Date getDateOfValue(Date date)
Returns the model date of the schedule change moment of the
value corresponding to the given model
If the schedule has always been holding the current value (up to the given
In case of
date
.If the schedule has always been holding the current value (up to the given
date
), the method returns null
.In case of
null
argument value, returns null
- Returns:
- the model time of the schedule change corresponding to
the given
date
ornull
public V getValue()
Returns the value corresponding to the current model time
- Returns:
- the value corresponding to the current model time
public V getValue(double time)
Returns the value of the schedule corresponding to the given model
In case of
time
.In case of
+/-infinity
or
NaN
argument value, returns null
- Parameters:
time
- the model time- Returns:
- the value corresponding to the given model
time
public V getValue(double time, TimeUnits units)
Returns the value of the schedule corresponding to the given
In case of
time
.In case of
+/-infinity
or
NaN
argument value, returns null
- Parameters:
time
- the timeunits
- the units of time- Returns:
- the value corresponding to the given
time
public V getValue(Date date)
Returns the value of the schedule corresponding to the given model
In case of
date
.In case of
null
argument value, returns null
- Parameters:
date
- the model date- Returns:
- the value corresponding to the given model
date
public String toString()
@AnyLogicInternalAPI public Set<V> getDistinctValues_xjal()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalCodegenAPI @Deprecated public void restoreOwner(Object owner)
Deprecated.
Description copied from interface:
com.anylogic.engine.internal.Child
This method normally should not be called by user
This method restores owner of this object
This method is used in snapshot saving/loading
Note, that some objects may support several owners (e.g. of different types)
This method restores owner of this object
This method is used in snapshot saving/loading
Note, that some objects may support several owners (e.g. of different types)
- Specified by:
restoreOwner
in interfacecom.anylogic.engine.internal.Child
- Parameters:
owner
- owner of this object, usuallyAgent
,Experiment
orShapeGroup