Fixed problem in DeviceSettings::strParam, returned wrong string
[avr-sim.git] / src / SimulationObject.h
blobdb193f4b872db9be1b3188e81c6fcfa32ec6f207
1 #ifndef SIM_SIMULATIONOBJECT_H
2 #define SIM_SIMULATIONOBJECT_H
4 #include "SimulationClock.h"
6 namespace sim {
8 /**
9 * @author Tom Haber
10 * @date Apr 27, 2008
11 * @brief An object in the simulation
13 * Represents a member of the simulation, this can be
14 * either a peripheral or an AVR chip. It contains a
15 * stepping function and can negotiate with the clock
16 * for a specific timing.
18 class SimulationObject {
19 public:
20 SimulationObject(SimulationClock & clock) : clock(clock) {}
21 virtual ~SimulationObject() {};
23 public:
24 /**
25 * Perform a single simulation step.
27 virtual void step() = 0;
29 protected:
30 SimulationClock & clock;
35 #endif /*SIM_SIMULATIONOBJECT_H*/