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 | Field and Description |
---|---|
static TimeDomain |
Workday.DOMAIN
A constant holding the domain.
|
static TimeDomain |
ThirdFriday.DOMAIN
A constant holding the domain.
|
static TimeDomain |
SystemTime.DOMAIN
A constant holding the domain.
|
static TimeDomain |
Week.DOMAIN
A constant holding the domain.
|
static TimeDomain |
Year.DOMAIN
A constant holding the domain.
|
static TimeDomain |
DateTime.DOMAIN
A constant holding the domain.
|
static TimeDomain |
Month.DOMAIN
A constant holding the domain.
|
Modifier and Type | Class and Description |
---|---|
class |
TimeFactory
A TimeFactory makes
TimeIndex objects and
acts as an immutable TimeDomain . |
Modifier and Type | Field and Description |
---|---|
static TimeDomain |
Day.DOMAIN
A constant holding the domain.
|
Modifier and Type | Method and Description |
---|---|
TimeDomain |
TimeDomainDefinition.asTimeDomain()
Construct the time domain corresponding to this definition.
|
TimeDomain |
TimeDomainCatalog.get(String label)
Return the time domain with the given label.
|
TimeDomain |
ImmutableTimeDomainCatalog.get(String label) |
TimeDomain |
TimeDomainCatalog.get(TimeDomainDefinition definition)
Return the time domain corresponding to the definition, ignoring the label.
|
TimeDomain |
ImmutableTimeDomainCatalog.get(TimeDomainDefinition def) |
protected TimeDomain |
TimeDomainDefinition.getCached()
For subclasses.
|
TimeDomain |
Time2.getTimeDomain() |
TimeDomain |
TimeIndex.getTimeDomain()
Return the time domain.
|
TimeDomain |
Range.getTimeDomain()
Return the time domain.
|
Modifier and Type | Method and Description |
---|---|
Collection<TimeDomain> |
TimeDomainCatalog.get()
Return all time domains defined in the catalog.
|
Collection<TimeDomain> |
ImmutableTimeDomainCatalog.get() |
Modifier and Type | Method and Description |
---|---|
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.
|
Range |
Range.convert(TimeDomain domain,
Adjustment adjust)
Convert the range to the domain specified.
|
void |
TimeDomain.requireEquality(TimeDomain domain)
Throw an exception if the domain is not equal to this domain.
|
void |
TimeFactory.requireEquality(TimeDomain domain) |
protected void |
TimeDomainDefinition.setCached(TimeDomain cached)
For subclasses.
|
boolean |
TimeDomain.similar(TimeDomain domain)
Compare to another time domain, ignoring label.
|
boolean |
TimeFactory.similar(TimeDomain domain) |
Constructor and Description |
---|
ImmutableTimeDomainCatalog(TimeDomain... domains)
Constructor.
|
Range(TimeDomain domain)
Construct an empty range.
|
Range(TimeDomain domain,
long first,
long last)
Construct a range with bounds specified with numerical time indexes,.
|
Range(TimeDomain domain,
String firstDate,
String lastDate,
Adjustment adjust)
Construct a range with bounds specified as date strings.
|
Time2(TimeDomain domain,
long time)
Construct a time index with the given time domain and numerical time index.
|
Time2(TimeDomain domain,
long year,
int month,
int day,
int hour,
int min,
int sec,
int fsec,
Adjustment adjust)
Construct a time index with the given time domain and parameters.
|
Time2(TimeDomain domain,
String time)
Construct a time index with the given time domain and string.
|
Time2(TimeDomain domain,
String time,
Adjustment adjustment)
Construct a time index with the given time domain and string, with possible
adjustment.
|
Time2(TimeDomain domain,
TimeParts timeParts,
Adjustment adjust)
Constructor a time index from a time parts object with an adjustment
parameter.
|
Modifier and Type | Method and Description |
---|---|
TimeDomain |
Observation.getDomain()
Return the time domain.
|
TimeDomain |
AbstractTimeSeries.getTimeDomain() |
TimeDomain |
TimeAddressable.getTimeDomain()
Return the time domain of the time series.
|
Modifier and Type | Method and Description |
---|---|
static <X> TimeAddressable<X> |
AbstractTimeSeries.make(Class<X> type,
TimeDomain domain,
boolean forceSparse)
Construct a time series of the type and domain specified.
|
Constructor and Description |
---|
AbstractTimeSeries(Class<T> type,
TimeDomain domain,
T missingValue)
Construct a time series with the given time domain, data type, and missing value.
|
Observation(TimeDomain domain,
long index,
T value)
Construct an observation.
|
RegularTimeSeries(Class<T> type,
TimeDomain domain)
Construct a regular time series.
|
RegularTimeSeries(Class<T> type,
TimeDomain domain,
T missingValue)
Construct a regular time series.
|
SparseTimeSeries(Class<T> type,
TimeDomain domain)
Construct a sparse time series with the given type and time domain.
|
SparseTimeSeries(Class<T> type,
TimeDomain domain,
T missingValue)
Construct a sparse time series with the given type, time domain and missing
value.
|
Modifier and Type | Method and Description |
---|---|
TimeDomain |
RangeHolder.getTimeDomain()
Return the time domain.
|
TimeDomain |
DateHolder.getTimeDomain()
Return the time domain.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
DayExpression.enforceValidRange(TimeDomain domain,
DayExpression begin,
boolean keepBegin)
Enforce a valid range between the given day expression and this
expression.
|
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 |
DayExpression.getDate(TimeDomain domain)
Resolve the expression in the given time domain and return the result as
a time index.
|
Range |
RangeHolder.getRange(TimeDomain context)
Get the range evaluated in the context of the given domain.
|
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.
|
void |
RangeHolder.reset(TimeDomain domain)
Change the time domain of the range holder.
|
void |
DateHolder.reset(TimeDomain domain)
Change the time domain.
|
TimeIndex |
DateTimeScanner.scan(TimeDomain domain,
String date)
Scan the date in the given time domain.
|
void |
DateTimeScanner.setDomain(TimeDomain domain)
Set the default time domain.
|
void |
DayExpression.setExpression(TimeDomain domain,
String expression)
Set the domain and the expression.
|
Constructor and Description |
---|
DateHolder(TimeDomain domain)
Construct a date holder in the given time domain and initialize it
with the current time.
|
RangeHolder(TimeDomain domain)
Construct a range holder with the given time domain and
initialized with the current time.
|
Copyright © 2017. All rights reserved.