33 #include "debug/HelloExample.hh" 46 DPRINTF(HelloExample,
"Created the hello object\n");
61 DPRINTF(HelloExample,
"Hello world! Processing the event! %d left\n",
65 DPRINTF(HelloExample,
"Done firing!\n");
73 HelloObjectParams::create()
const std::string myName
The name of this object in the Python config file.
void startup()
Part of a SimObject's initilaization.
const Tick latency
Latency between calling the event (in ticks)
Tick curTick()
The current simulated tick.
void processEvent()
Example function to execute on an event trigger.
HelloObject(HelloObjectParams *p)
void schedule(Event &event, Tick when)
int timesLeft
Number of times left to fire the event before goodbye.
const Params * params() const
EventFunctionWrapper event
An event that wraps the above function.
virtual const std::string name() const
void sayGoodbye(std::string name)
Called by an outside object.
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
Abstract superclass for simulation objects.
GoodbyeObject * goodbye
Pointer to the corresponding GoodbyeObject. Set via Python.