C# 클래스 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.
파일 보기 프로젝트 열기: hydrologics/TimeSeriesLibrary 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
SetDetailFieldDouble ( Double &x, XmlReader xmlReader, Double defaultVal ) : void
SetDetailFieldInt ( int &i, XmlReader xmlReader, int defaultVal ) : void
SetDetailFieldString ( String &s, XmlReader xmlReader ) : void

메소드 상세

AddUnprocessedElement() 공개 메소드

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.
리턴 void

GetTraceNumber() 공개 메소드

public GetTraceNumber ( XmlReader xmlReader ) : int
xmlReader System.Xml.XmlReader
리턴 int

RecordFromTS() 공개 메소드

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
리턴 void

RecordFromTSParameters() 공개 메소드

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
리턴 void

SetAPart() 공개 메소드

public SetAPart ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
리턴 void

SetBPart() 공개 메소드

public SetBPart ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
리턴 void

SetCPart() 공개 메소드

public SetCPart ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
리턴 void

SetEPart() 공개 메소드

public SetEPart ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
리턴 void

SetMultiplicationFactor() 공개 메소드

public SetMultiplicationFactor ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
리턴 void

SetTimeSeriesType() 공개 메소드

public SetTimeSeriesType ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
리턴 void

SetUnits() 공개 메소드

public SetUnits ( XmlReader xmlReader ) : void
xmlReader System.Xml.XmlReader
리턴 void

TSImport() 공개 메소드

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. ///
리턴 System

프로퍼티 상세

APart 공개적으로 프로퍼티

public String APart
리턴 String

BPart 공개적으로 프로퍼티

public String BPart
리턴 String

BlobStartDate 공개적으로 프로퍼티

public DateTime,System BlobStartDate
리턴 System.DateTime

CPart 공개적으로 프로퍼티

public String CPart
리턴 String

Checksum 공개적으로 프로퍼티

public byte[] Checksum
리턴 byte[]

CompressionCode 공개적으로 프로퍼티

public int CompressionCode
리턴 int

EPart 공개적으로 프로퍼티

public String EPart
리턴 String

Id 공개적으로 프로퍼티

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
리턴 int

IsDetailed 공개적으로 프로퍼티

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
리턴 System.Boolean

IsPattern 공개적으로 프로퍼티

If true, then this TSImport represents a cyclic Time Pattern
public Boolean,System IsPattern
리턴 System.Boolean

MultiplicationFactor 공개적으로 프로퍼티

public Double MultiplicationFactor
리턴 Double

Name 공개적으로 프로퍼티

Content of the Name tag in the XML file, presumably the name of a HECDSS record
public String Name
리턴 String

TimeSeriesType 공개적으로 프로퍼티

public String TimeSeriesType
리턴 String

TimeStepQuantity 공개적으로 프로퍼티

public short TimeStepQuantity
리턴 short

TimeStepUnit 공개적으로 프로퍼티

public TSDateCalculator.TimeStepUnitCode TimeStepUnit
리턴 TSDateCalculator.TimeStepUnitCode

TraceList 공개적으로 프로퍼티

public List TraceList
리턴 List

Units 공개적으로 프로퍼티

public String Units
리턴 String

UnprocessedElements 공개적으로 프로퍼티

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
리턴 String