#include <CNCL/EventBaseSched.h>
CN_EVENTBASESCHED
CNObjedt
None
None
Constructors:
CNEventBaseSched();
CNEventBaseSched(CNParam *);
CNEventBaseSched
.
In addition to the member functions required by CNCL, CNEventBaseSched
provides:
CNSimTime::time();
CNStatistics *statistics() const;
void statistics(CNStatistics *st);
void delete_events_from(CNEventHandler *h);
void delete_events_to(CNEventHandler *h);
from
or adressed to
the
eventhandler h
.
The following functions are defined virtual and must be defined in
derived classes:
void add_event(CNEvent *ev)=0;
void send_event(CNEvent *ev)=0;
void delete_event(CNEventID id)=0;
id
.
void delete_events(CNEventHandler *evh, bool to=TRUE)=0;
evh
.
CNEvent *peek_event()=0;
CNEvent *peek_event(CNEventID id)=0;
id
. Returns pointer to
event, or NIL
if not available.
CNEvent *next_event() = 0;
void start();
void start(CNEvent *ev);
void stop()=0;
CNEventIterator *create_iterator() = 0;
void process_events();
void process_now();
Go to the first, previous, next, last section, table of contents.