com.jstatcom.ts
Class TSProjectData
- java.lang.Object
-
- com.jstatcom.ts.TSProjectData
-
- All Implemented Interfaces:
- ProjectData
public final class TSProjectData extends java.lang.Object implements ProjectData
Implementation ofProjectDatafor the time series data type. It stores the data for a project and can be (de)serialized.
-
-
Field Summary
Fields Modifier and Type Field and Description static XmlFormat<TSProjectData>TSProjectData_XMLXML format field for (de)serialization.
-
Constructor Summary
Constructors Constructor and Description TSProjectData()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetDescription()Gets the data description.JSCData[]getJSCData()Gets the project data as an array ofJSCDataobjects.ProjectDataTypesgetProjectDataType()Gets the time series data type.voidsetDescription(java.lang.String dataDescription)Sets the data description.voidsetJSCData(JSCData[] dataArray)Sets the data array for the underlying data.
-
-
-
Field Detail
-
TSProjectData_XML
public static final XmlFormat<TSProjectData> TSProjectData_XML
XML format field for (de)serialization.
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Gets the data description.- Specified by:
getDescriptionin interfaceProjectData- Returns:
- descriptive string
-
setDescription
public void setDescription(java.lang.String dataDescription)
Sets the data description. If the string argument isnullthen""is used instead.- Specified by:
setDescriptionin interfaceProjectData- Parameters:
dataDescription- a descriptive string
-
setJSCData
public void setJSCData(JSCData[] dataArray)
Sets the data array for the underlying data. The array is a vector with 4*(number of time series) elements which must be in the following order:JSCString -string with the name of the 1st time seriesJSCString -string representing the data type of the 1st time series, for example"endogenous"JSCDate -start date of the 1st time seriesJSCNArray -data vector of the 1st time series- ... the same for the remaining time series
Usage Note:
The argument data array is not copied by this method but the reference is used. Clients should make sure that the data is not modified afterwards. This is reasonable because usually the data is not referenced from outside the calling method.- Specified by:
setJSCDatain interfaceProjectData- Parameters:
dataArray- the array with the data to be stored- Throws:
java.lang.IllegalArgumentException- if (dataArray == null)java.lang.RuntimeException- if the elements in the data array are not of the correct type, or if there arenullelements, or if the number of array elements is not a multiple of 4
-
getJSCData
public JSCData[] getJSCData()
Gets the project data as an array ofJSCDataobjects. For the ordering of the elements of this array, see thesetJSCDatamethod.Usage Note:
The returned data array is a reference to the array used by this object. Clients should not modify it.- Specified by:
getJSCDatain interfaceProjectData- Returns:
- reference to the data array
- See Also:
setJSCData(JSCData[])
-
getProjectDataType
public ProjectDataTypes getProjectDataType()
Gets the time series data type.- Specified by:
getProjectDataTypein interfaceProjectData- Returns:
ProjectDataTypes.TS_DATA
-
-
DMelt 3.0 © DataMelt by jWork.ORG