Click or drag to resize

IMike1DController Interface

The IMike1DController is the starting point for controlling and running a simulation. Depending on the underlying data components, the controller may do different things. Different data controllers may also do different things on the same data components. The following are examples of controllers:
  • HD controller: runs an HD simulation, including add ons (rainfall runoff, AD etc.)
  • RR controller: runs an RR simulation.
  • RR calibration controller: runs an RR calibration.
  • LTS controller: runs a LTS (Long Term Statistics) HD simulation.

Namespace:  DHI.Mike1D.Mike1DDataAccess
Assembly:  DHI.Mike1D.Mike1DDataAccess (in DHI.Mike1D.Mike1DDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public interface IMike1DController

The IMike1DController type exposes the following members.

Properties
  NameDescription
Public propertyCurrentTime
Current time of controller.
Public propertyEngineNet
The enginenet used for the simulation
Public propertyMike1DData
The Mike1DData that defines the simulation setup
Public propertyProgressState
Progress state of the controller, specifying how far the controller has progressed. One of Initialized,Prepared,Running.
Public propertyResultDataList
List of all result data components associated with
Public propertyRuntimeDiagnostics
Diagnostics that are used during the simulation (prepare, run)
Public propertySimulationType
String to indicate the type of simulation being run. Used for user output only.
Public propertyState
Current state of the controller
Public propertyTimings
Detailed timings of the different parts of the simulation.
Top
Methods
  NameDescription
Public methodFinish
Finish and clean up.
Public methodInitialize
Initialize the engine. Initialize sets up the engine net. When done, the EngineNet will be ready to inform on what data is available
Public methodPrepare
Prepare the engine. This is called just before run is called. I will set the initial state (initial conditions), open output files etc.
Public methodRaiseSpecialEvent
Trigger a custom special event
Public methodRun
Run the engine
Public methodRunUntil
Run the engine until endTime.

endTime should not exceed the simulation end time.

Public methodStopSimulation
Calling this function will end the simulation after the current timestep has been completed
Public methodValidate
Validate that the Controller/data access modules does not have any errors/warnings. Can be called before Initialize(IDiagnostics).
Top
Events
  NameDescription
Public eventControllerEvent
Event that is raised while the controller is running. It is raised whenever the State of the controller changes.
Public eventSpecialEvent
Event that is raised for special events
Top
Extension Methods
  NameDescription
Public Extension MethodCanWriteHtmlSummary
Check if controller is in a state to write HTML summary
(Defined by ControllerExtensions.)
Top
See Also