31 Dprintf((
"Queue{%p}::Queue()",
this));
36 Dprintf((
"Queue{%p}::Queue(\"%s\")",
this, name));
44 Dprintf((
"Queue{%p}::~Queue() // \"%s\" ",
this,
Name().c_str()));
57 for( ; p!=
end() && ((
Entity*)(*p))->Priority >= prio; ++p);
64 if( ((
Entity*)(*p))->Priority >= prio ) { p = q;
break; }
93 Dprintf((
"%s::PostIns(%s,pos)",
Name().c_str(), ent->
Name().c_str(), *pos ));
104 Dprintf((
"%s::PredIns(%s,pos:%p)",
Name().c_str(), ent->
Name().c_str(), *pos ));
135 Dprintf((
"%s::Get(pos:%p)",
Name().c_str(), *pos));
162 if(*name)
return name;
abstract base class for active entities (Process, Event) instances of derived classes provide Behavio...
EntityPriority_t Priority_t
Priority_t Priority
priority of the entity (scheduling,queues)
virtual Link * Get(iterator pos)
remove at position
void PredIns(Link *e, iterator pos)
virtual Entity * Get(iterator pos)
remove at position
void PredIns(Entity *e, iterator pos)
virtual void Insert(Entity *e)
void PostIns(Entity *e, iterator pos)
virtual std::string Name() const
get object name
virtual void Clear()
initialize
virtual void Clear(double initval=0.0)
initialize
Internal header file for SIMLIB/C++.
#define SIMLIB_internal_error()
Implementation of class CalendarList interface is static - using global functions in SQS namespace.
const double & Time
model time (is NOT the block)
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 ...
void SetName(SimObject &o, const std::string &name)
assign name to object
Main SIMLIB/C++ interface.