Go to the documentation of this file.
28 #include <boost/function.hpp>
115 virtual std::string
str()
const {
return "(event)"; };
362 static void clear()
throw();
static void set_stop_time(Time t=INIT_TIME)
stops the execution of the simulation at the given time
static void self_signal_event(const Event *e)
signal an event to the current process immediately
a generic discrete-event sequential simulator
const char * Version
version identifier for this ssim library
ProcessId activate()
activates this process within the simulator.
virtual void handle_terminated(ProcessId p, const Event *e)
handles terminated-process conditions.
Virtual class (interface) representing processes running within the simulator.
virtual std::string str() const
virtual void stop(void)
executed when the process is explicitly stopped.
static ProcessId create_process(Process *)
creates a new process
virtual void clear()
handles a clear operation.
static void set_error_handler(SimErrorHandler *)
registers a handler for simulation errors.
virtual void initialize(void)
action executed when the process is initialized.
static Time clock()
returns the current virtual time for the current process
int ProcessId
process identifier type
ProcessId pid() const
process id of this process.
static void stop_process()
stops the execution of the current process
virtual ~SimErrorHandler()
an error handler for simulation errors.
double Time
virtual time type
basic event in the simulation.
static void advance_delay(Time)
advance the execution time of the current process.
virtual void process_event(const Event *msg)
action executed in response to an event signaled to this process.
static ProcessId this_process()
returns the current process
utility Process class providing a utility interface with the simulator.
virtual void handle_busy(ProcessId p, const Event *e)
handles busy-process conditions.
boost::function< bool(const Event *)> EventPredicate
static void stop_simulation()
stops execution of the simulation
const ProcessId NULL_PROCESSID
no process will be identified by NULL_PROCESSID
static void clear()
clears out internal data structures
const Time INIT_TIME
beginning of time
name space for the Siena simulator.
static void signal_event(ProcessId p, const Event *e)
signal an event to the given process immediately
static void run_simulation()
starts execution of the simulation
static void ignore_event(EventPredicate pred)