for_developers:simulator
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | for_developers:simulator [2017/05/04 08:58] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Extending the Simulator ====== | ||
+ | How to add a new device type to sim-eeros? | ||
+ | |||
+ | - create class derived from SimBehaviour.hpp | ||
+ | - implement member functions according to your needs | ||
+ | * constructor: | ||
+ | * run() : implement your desired simulation function -> will be called from SimDevice:: | ||
+ | * getInChannel(): | ||
+ | * getOutChannel(): | ||
+ | - add newly created device type as member object to SimDevice.hpp (for example see sim:: | ||
+ | - call run() of your newly added channels in SimDevice:: | ||
+ | - add identifier string to available simFeatures in SimDevice.hpp | ||
+ | - add entries to SubDeviceNumber-Enum in SimDevice.hpp with your desired subdevice number for your sim-device | ||
+ | - add getInChannel() and getOutChannel() of your device type to getLogicChannel() or getRealChannel() in SimDevice.cpp accordingly | ||
for_developers/simulator.txt · Last modified: 2017/05/04 08:58 by 127.0.0.1