Class VarTimeSeries
java.lang.Object
com.walkfares.odsl.var.BaseVar
com.walkfares.odsl.var.VersionedVar
com.walkfares.odsl.var.timeseries.VarTimeSeries
- All Implemented Interfaces:
Convertible
,BasicValidation
,ListProvider
,DynamicVar
,Var
- Direct Known Subclasses:
VarCurveDates
,VarCurveSeries
,VarEventTimeSeries
,VarMatrixDates
,VarReportDates
,VarSmartTimeSeries
public class VarTimeSeries extends VersionedVar implements Var, DynamicVar, Convertible, ListProvider, BasicValidation
-
Constructor Summary
Constructors Constructor Description VarTimeSeries(Calendar calendar)
VarTimeSeries(UTCDate start, Calendar calendar)
VarTimeSeries(UTCDate start, Calendar calendar, double[] data)
VarTimeSeries(UTCDate start, Calendar calendar, VarList data)
VarTimeSeries(UTCDate start, Calendar calendar, List<Var> data)
VarTimeSeries(VarCalendar calendar)
VarTimeSeries(Var start, VarCalendar calendar)
VarTimeSeries(Var start, VarCalendar calendar, Var value)
VarTimeSeries(Var start, VarCalendar calendar, Var value, Var dataType)
VarTimeSeries(Var start, VarCalendar calendar, Var intervalPositions, Var value, Var dataType, Var positionCalendar)
VarTimeSeries(Var start, Var end, VarCalendar calendar, Var value, Var dataType)
-
Method Summary
Methods inherited from class com.walkfares.odsl.var.BaseVar
add, getLinks, getTypeName, getUID, setLinks, toString, tryConvert
-
Constructor Details
-
Method Details
-
setStart
-
addValue
-
add
-
add
-
add
-
add
- Specified by:
add
in interfaceListProvider
-
add
- Specified by:
add
in interfaceListProvider
-
add
-
add
-
addObservations
-
addAll
-
addAll
-
get
- Specified by:
get
in interfaceListProvider
-
get
- Specified by:
get
in interfaceListProvider
-
getElements
- Specified by:
getElements
in interfaceListProvider
-
getAbsolute
-
get
- Specified by:
get
in interfaceListProvider
-
getTimeValue
-
getStart
-
getEnd
-
getStartAsLocalDateTime
-
getStartAsLocalDate
-
getStartAsVarDate
-
getStartString
-
getEndString
-
size
public int size()- Specified by:
size
in interfaceListProvider
-
add
-
applyChanges
- Specified by:
applyChanges
in interfaceVar
- Overrides:
applyChanges
in classBaseVar
-
getObservations
-
getValues
-
getValuesAsDoubles
public double[] getValuesAsDoubles() -
getValuesAsScalars
-
range
-
withRange
-
last
-
from
-
clear
public void clear()- Specified by:
clear
in interfaceListProvider
-
getLocalValues
-
getTimeValues
-
getLastNValues
-
setCalendar
-
getCalendar
-
getObserved
-
setObserved
-
getType
-
getId
-
set_Id
-
_clone
-
getProperties
- Specified by:
getProperties
in interfaceDynamicVar
-
setProperties
-
getDescription
-
setDescription
-
getSource
-
setSource
-
getCurrency
- Specified by:
getCurrency
in interfaceConvertible
-
setCurrency
-
getUnits
- Specified by:
getUnits
in interfaceConvertible
-
setUnits
-
getTenor
-
setTenor
-
getTimezone
- Specified by:
getTimezone
in interfaceConvertible
-
setTimezone
-
getDataType
-
setDataType
-
getValueType
-
setValueType
-
getName
-
setName
-
convert
-
convert
Description copied from interface:Convertible
Converts this Var using the conversion options- Specified by:
convert
in interfaceConvertible
- Parameters:
options
- The options to determine what to convert to- Returns:
- A **NEW** converted version of this Var
-
getReference
- Specified by:
getReference
in interfaceVar
-
realign
public void realign()Realign the TimeSeries with its calendar -
sort
public void sort() -
mergeMetaData
-
getStatus
-
withStatus
-
getChecks
-
setChecks
-
getObjtype
-
setObjtype
-
getDataid
-
setDataid
-
getObjid
-
setObjid
-
getSubtype
-
setSubtype
-
getPrecision
-
setPrecision
-
addCheck
-
performBasicValidation
Description copied from interface:BasicValidation
Perform some basic validation on this entity. This is called before the entity is merged and updated. Any issues - throw an OpenDSLRuntimeException - ErrorCode: FAILED_BASIC_VALIDATION- Specified by:
performBasicValidation
in interfaceBasicValidation
- Parameters:
id
- - The object id this entity belongs to
-
toMatrix
-
toMatrix
-
toMatrix
-
toMatrix
-
toMatrix
-