Mike1DStateWriter Class

Class for writing current state of a MIKE 1D model to a state file.

Definition

Namespace: DHI.Mike1D.Mike1DDataAccess
Assembly: DHI.Mike1D.Mike1DDataAccess (in DHI.Mike1D.Mike1DDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class Mike1DStateWriter
Inheritance
Object    Mike1DStateWriter

Constructors

Mike1DStateWriter Create state writer class

Properties

FileTimeFormat Format of time string in file name. Must not include characters that are not valid for a file-name, especially colon, i.e. "HH:mm:ss" is not allowed.

Default is "yyyyMMddTHHmmss" (ISO 8601 basic format)

StateTime Last time the state was written. This may be differ from time series

Methods

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)
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)
PostTimeStep This methods checks if it is now the time to write state, and if so, writes it
Prepare Preparing state writing
ToStringReturns a string that represents the current object.
(Inherited from Object)
WriteState Write state to state file

Fields

CustomStateWriters List of custom state writers.

This works in par with the CustomStateReaders, such that it is possible to write and read custom state into the MIKE 1D state file.

DefaultFileTimeFormat Default formatting of date and time in file name

See Also