Using Easy2Sim
Note
Make sure that you know which simulation type should be implemented before you continue. (1)
- Simulation types can be e.g. discrete event simulation or dynamic simulation
To run a simulation this framework uses two key components:
- Simulation environment
- Components
- Links
- Logging (Serilog)
- Simulation specific Solver
- How are the connections resolved?
- How often are components called
When creating a new component, it registers in the simulation environment.
Running a simulation
To start a simulation the steps are as follows:
- Implement simulation library
- Instantiate simulation environment and solver
- Add components to environment
- Add connections to the environment
- Run the simulation
Implement a sine simulation component and visualize in xaml
Visualization of random values and the Sine (Sine uses code from above):