C# Class TimeSeriesLibrary.TSImport

This class data for one time series record that was imported. This meta-data can be used by functions outside of TimeSeriesLibrary to finish processing the time series that were imported from an XML file by the TSXml class. In this way, the outside functions can handle features of the time series that TimeSeriesLibrary was not designed to handle.
Afficher le fichier Open project: hydrologics/TimeSeriesLibrary Class Usage Examples

Méthodes publiques

Свойство Type Description
APart String
BPart String
BlobStartDate System.DateTime
CPart String
Checksum byte[]
CompressionCode int
EPart String
Id int
IsDetailed System.Boolean
IsPattern System.Boolean
MultiplicationFactor Double
Name String
TimeSeriesType String
TimeStepQuantity short
TimeStepUnit TSDateCalculator.TimeStepUnitCode
TraceList List
Units String
UnprocessedElements String

Méthodes publiques

Méthode Description
AddUnprocessedElement ( String s ) : void

This method adds a string to the UnprocessedElements string. The UnprocessedElements string stores XML elements that TimeSeriesLibrary does not recognize, so that the calling process can parse and process these elements.

GetTraceNumber ( XmlReader xmlReader ) : int
RecordFromTS ( TS ts ) : void

This method copies into this TSImport object: the parameters of the time series the checksum for the entire time series the ID of the database record for the time series.

RecordFromTSParameters ( TSParameters tsp ) : void

This method copies the parameters of a time series from a TSParameters object into this TSImport object.

SetAPart ( XmlReader xmlReader ) : void
SetBPart ( XmlReader xmlReader ) : void
SetCPart ( XmlReader xmlReader ) : void
SetEPart ( XmlReader xmlReader ) : void
SetMultiplicationFactor ( XmlReader xmlReader ) : void
SetTimeSeriesType ( XmlReader xmlReader ) : void
SetUnits ( XmlReader xmlReader ) : void
TSImport ( System.Boolean isDetailed ) : System

Class constructor for TSImport class.

Private Methods

Méthode Description
SetDetailFieldDouble ( Double &x, XmlReader xmlReader, Double defaultVal ) : void
SetDetailFieldInt ( int &i, XmlReader xmlReader, int defaultVal ) : void
SetDetailFieldString ( String &s, XmlReader xmlReader ) : void

Method Details

AddUnprocessedElement() public méthode

This method adds a string to the UnprocessedElements string. The UnprocessedElements string stores XML elements that TimeSeriesLibrary does not recognize, so that the calling process can parse and process these elements.
public AddUnprocessedElement ( String s ) : void
s String The string that is to be added to the UnprocessedElements string. /// The given string should include the enclosing XML tags.
Résultat void

GetTraceNumber() public méthode

public GetTraceNumber ( XmlReader xmlReader ) : int
xmlReader System.Xml.XmlReader
Résultat int

RecordFromTS() public méthode

This method copies into this TSImport object: the parameters of the time series the checksum for the entire time series the ID of the database record for the time series.
public RecordFromTS ( TS ts ) : void
ts TS
Résultat void

RecordFromTSParameters() public méthode

This method copies the parameters of a time series from a TSParameters object into this TSImport object.
public RecordFromTSParameters ( TSParameters tsp ) : void
tsp TSParameters The TSParameters object that values will be copied from
Résultat void

SetAPart() public méthode

public SetAPart ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
Résultat void

SetBPart() public méthode

public SetBPart ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
Résultat void

SetCPart() public méthode

public SetCPart ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
Résultat void

SetEPart() public méthode

public SetEPart ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
Résultat void

SetMultiplicationFactor() public méthode

public SetMultiplicationFactor ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
Résultat void

SetTimeSeriesType() public méthode

public SetTimeSeriesType ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
Résultat void

SetUnits() public méthode

public SetUnits ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
Résultat void

TSImport() public méthode

Class constructor for TSImport class.
public TSImport ( System.Boolean isDetailed ) : System
isDetailed System.Boolean /// This value indicates whether the TSImport object records certain elements /// from an XML file to dedicated fields within the TSImport object, or to the /// UnprocessedElements string field of the TSImport object. It also determines /// whether the TSImport object records the BLOB of timeseries data. /// /// If true, then XML elements such as "Apart" are recorded to their own fields, /// and the BLOB is recorded in the BlobData field. /// /// If false, then XML elements such as "Apart" are recorded to the /// UnprocessedElements field, and the BLOB is not recorded in this object. ///
Résultat System

Property Details

APart public_oe property

public String APart
Résultat String

BPart public_oe property

public String BPart
Résultat String

BlobStartDate public_oe property

public DateTime,System BlobStartDate
Résultat System.DateTime

CPart public_oe property

public String CPart
Résultat String

Checksum public_oe property

public byte[] Checksum
Résultat byte[]

CompressionCode public_oe property

public int CompressionCode
Résultat int

EPart public_oe property

public String EPart
Résultat String

Id public_oe property

The ID that identifies the record that was created for this timeseries in the the database. If the database was not written to, then this field is meaningless.
public int Id
Résultat int

IsDetailed public_oe property

This value indicates whether the TSImport object records certain elements from an XML file to dedicated fields within the TSImport object, or to the UnprocessedElements string field of the TSImport object. It also determines whether the TSImport object records the BLOB of timeseries data. If true, then XML elements such as "Apart" are recorded to their own fields, and the BLOB is recorded in the BlobData field. If false, then XML elements such as "Apart" are recorded to the UnprocessedElements field, and the BLOB is not recorded in this object.
public Boolean,System IsDetailed
Résultat System.Boolean

IsPattern public_oe property

If true, then this TSImport represents a cyclic Time Pattern
public Boolean,System IsPattern
Résultat System.Boolean

MultiplicationFactor public_oe property

public Double MultiplicationFactor
Résultat Double

Name public_oe property

Content of the Name tag in the XML file, presumably the name of a HECDSS record
public String Name
Résultat String

TimeSeriesType public_oe property

public String TimeSeriesType
Résultat String

TimeStepQuantity public_oe property

public short TimeStepQuantity
Résultat short

TimeStepUnit public_oe property

public TSDateCalculator.TimeStepUnitCode TimeStepUnit
Résultat TSDateCalculator.TimeStepUnitCode

TraceList public_oe property

public List TraceList
Résultat List

Units public_oe property

public String Units
Résultat String

UnprocessedElements public_oe property

A string of XML elements, including the surrounding tags, that were not directly processed by the TimeSeriesLibrary. The design calls for the caller to process these elements according to its own logic.
public String UnprocessedElements
Résultat String