MuEpanetRelBridge Class

Interface that is to be implemted for a bridge that can read data from persistant storage into the ResultData access.

Definition

Namespace: DHI.Mike1D.ResultDataAccess.Epanet
Assembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class MuEpanetRelBridge : IResultReadBridge, 
	IResultBridge, IEpanetResultReadBridge
Inheritance
Object    MuEpanetRelBridge
Implements
IEpanetResultReadBridge, IResultBridge, IResultReadBridge

Constructors

MuEpanetRelBridge(IResultData) Constructor. Storing values in provided resultdata object.
MuEpanetRelBridge(IResultData, CsvResultFileReader) Constructor. Storing values in provided result data object.

Properties

Connection 
Filter Specifies what data to load. Must be set before any call to the open and read methods.
FlowUnitOption 0: CFS, 1: GPM, 2: MGD, 3: IMGD, 4: AFD, 5: LPS, 6: LPM, 7: MLD, 8: CMH, 9: CMD
NumberOfTimeSteps Return the number of time steps in the storage
PressureUnitOption 0 = psi 1 = kPa 2 = meters
ResultData Result data that values are read into
SourceTracingNode The ID of WQ source tracing node

Methods

Connect Connects to storage
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Finish Used to disconnect from/close persistant storage and free resources if needed.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Read Reads the header and data from persistant storage and populates the associated resultData object. This is the same as calling ReadHeader(IDiagnostics) and ReadData(IDiagnostics) in that order.
ReadData Reads in the data from persistant storage and populates the associated resultdata object.

You can not load the data without having loaded the header, hence it can be assumed that ReadHeader(IDiagnostics) has already been called.

ReadHeader Reads in the header data from persistent storage and populates the associated resultdata object.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

TimeStepReadEvent Event triggered everytime a time step has been read

See Also