|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jstatcom.ts.TSProjectData
public final class TSProjectData
Implementation of ProjectData
for the time series data type.
It stores the data for a project and can be (de)serialized.
Field Summary | |
---|---|
static javolution.xml.XmlFormat<TSProjectData> |
TSProjectData_XML
XML format field for (de)serialization. |
Constructor Summary | |
---|---|
TSProjectData()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Gets the data description. |
JSCData[] |
getJSCData()
Gets the project data as an array of JSCData objects. |
ProjectDataTypes |
getProjectDataType()
Gets the time series data type. |
void |
setDescription(java.lang.String dataDescription)
Sets the data description. |
void |
setJSCData(JSCData[] dataArray)
Sets the data array for the underlying data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javolution.xml.XmlFormat<TSProjectData> TSProjectData_XML
Constructor Detail |
---|
public TSProjectData()
Method Detail |
---|
public java.lang.String getDescription()
getDescription
in interface ProjectData
public void setDescription(java.lang.String dataDescription)
null
then ""
is used instead.
setDescription
in interface ProjectData
dataDescription
- a descriptive stringpublic void setJSCData(JSCData[] dataArray)
JSCString -
string with the name of the 1st time
series
JSCString -
string representing the data type of the
1st time series, for example "endogenous"
JSCDate -
start date of the 1st time series
JSCNArray -
data vector of the 1st 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.
setJSCData
in interface ProjectData
dataArray
- the array with the data to be stored
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 are null
elements, or if the
number of array elements is not a multiple of 4public JSCData[] getJSCData()
JSCData
objects. For
the ordering of the elements of this array, see the
setJSCData
method.
Usage Note:
The returned data array is a reference to the array used by this object.
Clients should not modify it.
getJSCData
in interface ProjectData
setJSCData(JSCData[])
public ProjectDataTypes getProjectDataType()
getProjectDataType
in interface ProjectData
ProjectDataTypes.TS_DATA
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |