31 Dprintf((
"Queue{%p}::Queue()",
this));
36 Dprintf((
"Queue{%p}::Queue(\"%s\")",
this, name));
44 Dprintf((
"Queue{%p}::~Queue() // \"%s\" ",
this,
Name().c_str()));
55 #if 0 // _INS_FROM_BEGIN 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;
void PredIns(Link *e, iterator pos)
virtual void Clear()
initialize
void SetName(const std::string &name)
assign the name
Priority_t Priority
priority of the entity (scheduling,queues)
virtual Link * Get(iterator pos)
remove at position
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 ...
abstract base class for active entities (Process, Event) instances of derived classes provide Behavio...
const double & Time
model time (is NOT the block)
#define SIMLIB_internal_error()
void PostIns(Entity *e, iterator pos)
Internal header file for SIMLIB/C++.
Main SIMLIB/C++ interface.
virtual std::string Name() const
get object name
EntityPriority_t Priority_t
virtual Entity * Get(iterator pos)
remove at position
void PredIns(Entity *e, iterator pos)
virtual void Insert(Entity *e)
virtual void Clear(double initval=0.0)
initialize