30 Dprintf((
"Event::Event(%u)", p));
74 if(!name.empty())
return name;
abstract base class for active entities (Process, Event) instances of derived classes provide Behavio...
EntityPriority_t Priority_t
bool Idle()
entity activation is not scheduled in calendar
void Activate()
activate now
unsigned long _Ident
unique identification number of entity
virtual void Behavior()=0
behavior description
void Activate()
activate now
virtual ~Event()
destructor
virtual void Terminate() override
passivate event, it will be destroyed if not activated later in Behavior() Should not be used.
virtual std::string Name() const override
name of object
virtual void _Run() noexcept override
activation method, called from simulation control algorithm
Event(Priority_t p=DEFAULT_PRIORITY)
constructor, default priority if not specified
virtual std::string Name() const
get object name
Internal header file for SIMLIB/C++.
void Get(Entity *e)
remove selected entity activation record from calendar
Implementation of class CalendarList interface is static - using global functions in SQS namespace.
std::string SIMLIB_create_tmp_name(const char *fmt,...)
printf-like function to create temporary name (the length of temporary names is limited) used only ...
Main SIMLIB/C++ interface.