Click or drag to resize

Res1DBridge Class

[Missing <summary> documentation for "T:DHI.Mike1D.ResultDataAccess.Res1DBridge"]

Inheritance Hierarchy

Namespace:  DHI.Mike1D.ResultDataAccess
Assembly:  DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class Res1DBridge : Res1DStreamBridge, 
	IResultRandomReadBridge, IResultReadBridge, IResultBridge

The Res1DBridge type exposes the following members.

Constructors
  NameDescription
Public methodRes1DBridge
Constructor, storing data in the provided IResultData object.
Top
Properties
  NameDescription
Public propertyConnection (Inherited from Res1DStreamBridge.)
Public propertyDoRewindTime
Flag indicating whether to rewind outputting if the simulation time was manually moved back in time. When rewinding, data after the new simulation time will be overridden by new data.

Default value is true.

Public propertyFilter
Specifies what data to load. Must be set before any call to the open and read methods.
(Inherited from Res1DStreamBridge.)
Public propertyNumberOfTimeSteps
Return the number of time steps in the storage
(Inherited from Res1DStreamBridge.)
Public propertySecondsBetweenFileFlush
Seconds between flush to file. Set this lower if you need to read the result file while your calculations are running.

Set to zero to disable file flushing.

Default value is 10 seconds.

(Inherited from Res1DStreamBridge.)
Top
Methods
  NameDescription
Protected methodCloseDfsFile (Inherited from Res1DStreamBridge.)
Public methodConnect
Connects to storage
(Inherited from Res1DStreamBridge.)
Protected methodCreateDynamicItemInfos (Inherited from Res1DStreamBridge.)
Protected methodCreateDynamicItemInfosOld (Inherited from Res1DStreamBridge.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Release ressources allocated by the bridge.
(Inherited from Res1DStreamBridge.)
Public methodFinish (Inherited from Res1DStreamBridge.)
Public methodFlush
Write the contained time steps into the res11 file
(Inherited from Res1DStreamBridge.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOpenDfsFile (Inherited from Res1DStreamBridge.)
Protected methodPeakStaticItemNameNext
Peak the next static item.
(Inherited from Res1DStreamBridge.)
Protected methodPeakStaticItemNext
Peak the next static item.
(Inherited from Res1DStreamBridge.)
Public methodPrepare
Prepare bridge, create the file, add dynamic and static items.
(Overrides Res1DStreamBridgePrepare(IDiagnostics).)
Public methodRead
Reads in the data specified by _specification and _filePath and populates _resultData.
(Inherited from Res1DStreamBridge.)
Public methodReadData
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.

(Overrides Res1DStreamBridgeReadData(IDiagnostics).)
Public methodReadHeader(IDiagnostics)
Reads in the header data from persistant storage and populates the associated resultdata object.
(Inherited from Res1DStreamBridge.)
Public methodReadHeader(IDiagnostics, Boolean) (Inherited from Res1DStreamBridge.)
Protected methodReadStaticItemNext
Reads the next static item, depending on the _readMode.
(Inherited from Res1DStreamBridge.)
Public methodReadTimeForTimeStep
Read the first item of the provided time step, and return the time.
Public methodReadTimeStep
Read and populate result data with data for the given time step
Protected methodRewindTime
If simulation time is changed "back in time", rewind writing of results, overwriting already written data with new values.

Only if [!:]

(Overrides Res1DStreamBridgeRewindTime.)
Public methodSave
Writes the content of the _resultDataAccess into a Res1d file
(Inherited from Res1DStreamBridge.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodTriggerTimeStepReadEvent
Method to trigger when a new time step has been read.
(Inherited from Res1DStreamBridge.)
Public methodWrite
write everything in a file, closing and finalizing file.
(Inherited from Res1DStreamBridge.)
Top
Events
  NameDescription
Public eventTimeStepReadEvent
Event triggered everytime a time step has been read
(Inherited from Res1DStreamBridge.)
Top
Fields
  NameDescription
Protected field_connection (Inherited from Res1DStreamBridge.)
Protected field_contained
Table to indicate which items to read. Determined by the filter in ReadDynamicDataHeader()
(Inherited from Res1DStreamBridge.)
Protected field_dfsFile (Inherited from Res1DStreamBridge.)
Protected field_dfsFileStream (Inherited from Res1DStreamBridge.)
Protected field_dynamicItems
List of same size as the dynamic items in the dfs file.
(Inherited from Res1DStreamBridge.)
Protected field_lastTime
Last time when the data was outputted.
(Inherited from Res1DStreamBridge.)
Protected field_predefItemData
Predefined DFS item data, used when reading, for performance.
(Inherited from Res1DStreamBridge.)
Protected field_predefItemData0TimestepIndex
Timestep index of the predefined item data stored in [!:_predefItemData] for the first item (0 index). This is required to avoid that the first item is read both in ReadTimeForTimeStep(Int32) and in ReadTimeStep(Int32, Int32).
Protected field_resultData (Inherited from Res1DStreamBridge.)
Protected field_useUbgUnits
Flag indicating whether file is being read in Ubg user units. Not used when writing
(Inherited from Res1DStreamBridge.)
Top
See Also