30 Dprintf((
"Event::Event(%u)", p));
74 if(!name.empty())
return name;
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
Event(Priority_t p=DEFAULT_PRIORITY)
constructor, default priority if not specified
void Get(Entity *e)
remove selected entity activation record from calendar
Implementation of class CalendarList interface is static - using global functions in SQS namespace...
unsigned long _Ident
unique identification number of entity
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 ...
abstract base class for active entities (Process, Event) instances of derived classes provide Behavio...
Internal header file for SIMLIB/C++.
virtual void Behavior()=0
behavior description
virtual void _Run() noexcept override
activation method, called from simulation control algorithm
Main SIMLIB/C++ interface.
virtual std::string Name() const
get object name
bool Idle()
entity activation is not scheduled in calendar
void Activate()
activate now
EntityPriority_t Priority_t
virtual ~Event()
destructor