hydrologics/TimeSeriesLibrary — pull request #2 by tpulokas (2012-09-10 22:35:55+00:00)
Title: Tony

Changes needed in Oasis.Base:

* TimeSeriesTrace and PatternTrace each need a new Entity property "Checksum". Type is Binary and MaxLength = 16, just like the property "Checksum" in TimeSeriesInputSource. Do not remove the existing properties called "Checksum" from TimeSeriesInputSource and PatternInputSource.

* ITimeSeriesTrace is now declared in TimeSeriesLibrary, so it must be deleted from file "TimeSeriesTrace.cs"

* The last parameter in TSLibrary.ConvertListToBlobWithChecksum is now an ITimeSeriesTrace object, so you can just pass the TimeSeriesTrace or PatternTrace object to the method, and the method will assign the ValueBlob and Checksum properties of the object for you. You must set the TraceNumber property of this object before calling the method. Note that this method now computes the checksum only of the Trace object -- it no longer computes the checksum of the InputSourceBase-derived object.

* After you have called ConvertListToBlobWithChecksum and added to the "Traces" collection, you must call the new method TSLibrary.ComputeChecksum. This returns the checksum that should be assigned to the Checksum property of the TimeSeriesInputSource or PatternInputSource object.

Changes needed in Oasis.Translator:

The TSImport class now contains a property "TraceList". Each item in this list is of type ITimeSeriesTrace, so you can copy the properties "TraceNumber", "ValueBlob" and "Checksum" from an item in this list into a new TimeSeriesTrace object.