Package | Description |
---|---|
ch.agent.t2.applied |
Ready to use time domains and a time domain catalog implemented with the ch.agent.t2.time API.
|
ch.agent.t2.time |
Defines and implements time and time domains.
|
ch.agent.t2.timeseries |
Defines and implements time series.
|
ch.agent.t2.timeutil |
Non-essential behavior useful for working with dates, times and time series.
|
Modifier and Type | Class and Description |
---|---|
class |
DateTime
A DateTime is a
Time2 with second resolution and the origin at
2000-01-01. |
class |
Month
A Month is a
Time2 with month resolution. |
class |
SystemTime
A SystemTime is a
Time2 time with millisecond resolution and the
origin at 1970-01-01. |
class |
ThirdFriday
A ThirdFriday is a
Time2 with month base resolution and one day each month falling
on the 3d Friday. |
class |
Week
A Week is a
Time2 with day resolution and a cycle of 6 days OFF and 1 day
ON. |
class |
Workday
A Workday is a
Time2 with day resolution and a cycle of 2 days OFF
days and 5 days ON. |
class |
Year
A Year is a
Time2 with year resolution. |
Constructor and Description |
---|
DateTime(TimeIndex time)
Construct a
datetimetime from another time object. |
Month(TimeIndex time)
Construct a
monthlytime from another time object. |
SystemTime(TimeIndex time)
Construct a
systemtimetime from another time object. |
ThirdFriday(TimeIndex time)
Construct a
friday3time from another time object. |
Week(TimeIndex time)
Construct a
weeklytime from another time object. |
Workday(TimeIndex time)
Construct a
workweektime from another time object. |
Year(TimeIndex time)
Construct a
yearlytime from another time object. |
Modifier and Type | Class and Description |
---|---|
class |
Day
A Day is a
Time2 with day resolution. |
class |
Time2
Time2 implements the behavior of
TimeIndex as an immutable object. |
Modifier and Type | Method and Description |
---|---|
TimeIndex |
Time2.add(long increment) |
TimeIndex |
TimeIndex.add(long increment)
Return a new time index with the time incremented from this one.
|
TimeIndex |
Time2.convert(TimeDomain domain) |
TimeIndex |
TimeIndex.convert(TimeDomain domain)
Return a new time index by converting this one to the given time domain.
|
TimeIndex |
Time2.convert(TimeDomain domain,
Adjustment adjustment) |
TimeIndex |
TimeIndex.convert(TimeDomain domain,
Adjustment adjustment)
Return a new time index by converting this one to the given time domain,
possibly adjusting the time as specified.
|
TimeIndex |
TimePacker.getBasePeriodStart(TimeIndex t)
Return the time index of the first time point in the base period containing
the time specified.
|
TimeIndex |
TimeFactory.getBasePeriodStart(TimeIndex t) |
TimeIndex |
Time2.getDayByRank(Resolution basePeriod,
DayOfWeek day,
int rank) |
TimeIndex |
TimeIndex.getDayByRank(Resolution referencePeriod,
DayOfWeek day,
int rank)
Return the TimeIndex for a day defined by name and rank within a reference period.
|
TimeIndex |
Range.getFirst()
Return the lower bound as a time or null when the range is empty.
|
TimeIndex |
Range.getLast()
r
Return the upper bound as a time o null when the range is empty.
|
TimeIndex |
TimeDomain.maxTime()
Return a new TimeIndex giving the maximum time in this domain.
|
TimeIndex |
TimeFactory.maxTime() |
TimeIndex |
TimeDomain.maxTime(boolean offsetCompatible)
Return a new TimeIndex giving the maximum time in this domain.
|
TimeIndex |
TimeFactory.maxTime(boolean offsetCompatible) |
TimeIndex |
TimeDomain.minTime()
Return a new TimeIndex giving the minimum time in this domain.
|
TimeIndex |
TimeFactory.minTime() |
TimeIndex |
TimeDomain.minTime(boolean offsetCompatible)
Return a new TimeIndex giving the minimum time in this domain.
|
TimeIndex |
TimeFactory.minTime(boolean offsetCompatible) |
TimeIndex |
Range.RangeIterator.next() |
TimeIndex |
TimeDomain.time(long index)
Return a new TimeIndex corresponding to the given index.
|
TimeIndex |
TimeFactory.time(long index) |
TimeIndex |
TimeDomain.time(long year,
int month,
int day,
int hour,
int min,
int sec,
int usec,
Adjustment adjust)
Return a new TimeIndex corresponding to the list of parameters.
|
TimeIndex |
TimeFactory.time(long year,
int month,
int day,
int hour,
int min,
int sec,
int usec,
Adjustment adjust) |
TimeIndex |
TimeDomain.time(String date)
Return a new TimeIndex corresponding to the given date string.
|
TimeIndex |
TimeFactory.time(String date) |
TimeIndex |
TimeDomain.time(String date,
Adjustment adjust)
Return a new TimeIndex corresponding to the given date string.
|
TimeIndex |
TimeFactory.time(String date,
Adjustment adjust) |
TimeIndex |
TimeDomain.timeFromOffset(long offset)
Return a new TimeIndex corresponding to the given offset.
|
TimeIndex |
TimeFactory.timeFromOffset(long offset) |
Modifier and Type | Method and Description |
---|---|
Iterator<TimeIndex> |
Range.iterator() |
Modifier and Type | Method and Description |
---|---|
int |
Time2.compareTo(TimeIndex otherTime) |
TimeIndex |
TimePacker.getBasePeriodStart(TimeIndex t)
Return the time index of the first time point in the base period containing
the time specified.
|
TimeIndex |
TimeFactory.getBasePeriodStart(TimeIndex t) |
static Day |
TimeTools.getDayOfMonthByRank(TimeIndex time,
DayOfWeek dayName,
int rank)
Return the TimeIndex for the day defined by name and rank within the
month of the indicated date.
|
DayOfWeek |
TimePacker.getDayOfWeek(TimeIndex time)
Return the day of week for the given time.
|
DayOfWeek |
TimeFactory.getDayOfWeek(TimeIndex time) |
static Day |
TimeTools.getDayOfYearByRank(TimeIndex time,
DayOfWeek dayName,
int rank)
Return the TimeIndex for the day defined by name and rank within the year
of the indicated date.
|
boolean |
Range.isInRange(TimeIndex time)
Return true if the time is within range.
|
long |
Time2.sub(TimeIndex time) |
long |
TimeIndex.sub(TimeIndex time)
Return the number of time units since the time specified as argument.
|
Constructor and Description |
---|
Day(TimeIndex time)
Construct a
dailytime from another time object. |
Range(TimeIndex first,
TimeIndex last)
Construct a range with bounds specified as times.
|
Modifier and Type | Method and Description |
---|---|
TimeIndex |
Observation.getTime()
Return the time index.
|
Modifier and Type | Method and Description |
---|---|
T |
AbstractTimeSeries.get(TimeIndex t) |
T |
TimeAddressable.get(TimeIndex time)
Return the value identified by the given time index.
|
Observation<T> |
AbstractTimeSeries.getFirst(TimeIndex t) |
Observation<T> |
TimeAddressable.getFirst(TimeIndex time)
Return the observation at or after the given time.
|
Observation<T> |
AbstractTimeSeries.getLast(TimeIndex t) |
Observation<T> |
TimeAddressable.getLast(TimeIndex time)
Return the observation at or before the given time.
|
void |
AbstractTimeSeries.put(TimeIndex t,
T value) |
void |
TimeAddressable.put(TimeIndex time,
T value)
Put a value identified by a time index into the time series.
|
void |
AbstractTimeSeries.put(TimeIndex t,
T[] values) |
void |
TimeAddressable.put(TimeIndex time,
T[] values)
Put an array of values identified with time index of its first element
into the time series.
|
void |
AbstractTimeSeries.remove(TimeIndex t) |
void |
TimeAddressable.remove(TimeIndex time)
Remove the value identified by the time index.
|
Constructor and Description |
---|
Observation(TimeIndex time,
T value)
Construct an observation with a time index.
|
Modifier and Type | Method and Description |
---|---|
static TimeIndex |
JavaDateUtil.fromJavaDate(Date date,
TimeDomain domain)
Convert a Java Date to a TimeIndex in a given domain.
|
static TimeIndex |
JavaDateUtil.fromJavaDate(Date date,
TimeDomain domain,
Adjustment adjustment,
boolean UTC)
Convert a Java Date to a TimeIndex in a given domain, with tuning parameters.
|
TimeIndex |
DateHolder.getDate()
Return the date evaluated in the time domain of the value holder.
|
TimeIndex |
DayExpression.getDate(Range context)
Resolve the expression in the context of the given range and return the
result as a time index.
|
TimeIndex |
DateHolder.getDate(Range context)
Return the date evaluated in the context of the given range.
|
TimeIndex |
DayExpression.getDate(TimeDomain domain)
Resolve the expression in the given time domain and return the result as
a time index.
|
static TimeIndex |
TimeUtil.now(TimeDomain domain)
Return the current date and time.
|
static TimeIndex |
DayExpression.parseDay(String expr,
TimeDomain domain,
Adjustment adjustment)
Parse the expression as a date in the daily calendar and returns it as a TimeIndex
in the domain requested, adjusted as indicated.
|
TimeIndex |
DateTimeScanner.scan(String date)
Scan the date using the default domain.
|
TimeIndex |
DateTimeScanner.scan(TimeDomain domain,
String date)
Scan the date in the given time domain.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DayExpression.setTime(TimeIndex time)
Set the time of the expression to the given time index.
|
static Date |
JavaDateUtil.toJavaDate(TimeIndex t)
Return the Java date corresponding to the given time index.
|
Copyright © 2017. All rights reserved.