TODO: under construction
- New Project
- Console Application
- Nuget -> Mars.Life.Simulations -> Install for Project
- Set up project structure in root directory:
- Add directory ModelStarter
- Drag Program.cs into ModelStarter
- Add directory: Agents (create new classes Sheep.cs, Wolf.cs, Grass.cs)
- Add directory: Layers (create new class Grassland.cs; agents who interact with each other can be placed on the same layer)
- GrassLayer.cs:
- Choose layer type -> RasterLayer
- Must implement ILayer
- Grass.cs:
- Must implement IAgent -> provides a Tick method (contains the agent's behavioral logic which is executed during each time step of the simulation) and an ID (identifies a single agent)
- Program.cs:
- Define a ModelDescription
description
- Add layer to
description
- Add agents to
description
- Define a SimulationConfig
config
(its return is provided by the method CreateDefaultConfig) - Define a method CreateDefaultConfig() that returns a SimulationConfig
- Define variables -> startPoint, suffix
- Define a SimulationConfig
config
and open it with a curly brace- Define Globals -> StartPoint, EndPoint, DeltaTUnit, OutputTarget, CsvOptions (FileSuffix, Delimiter, )
- Define LayerMappings ->
- Define a ModelDescription