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