osmose.engine_cs.engine

CSharpEngine: the third in-process engine (spec section 9.2).

Same two methods and signatures as osmose.engine.PythonEngine. Python resolves the config into a bundle (osmose.engine_cs.build), allocates the result buffers, and the C# engine runs the whole simulation and writes the records into them; this module turns those rows into the StepOutput list that OsmoseResults.from_outputs and write_outputs already consume. Nothing here imports pythonnet: osmose.engine_cs.bridge does, on first run.

Module Attributes

COMPLETED

RunStatus values (Osmose.Engine.RunStatus).

CANCELLED

RunStatus values (Osmose.Engine.RunStatus).

TIMED_OUT

RunStatus values (Osmose.Engine.RunStatus).

Classes

CSharpEngine(*[, threads, deadline_seconds, ...])

The C# engine.

Exceptions

CSharpEngineError

The C# engine refused the config or failed; the message says why.

CSharpEngineTimeout

The run passed its deadline_seconds (RunStatus.TimedOut).