SIMLIB/C++  3.07
Functions
simlib3::SQS Namespace Reference

Special namespace for calendar implementation. More...

Functions

void ScheduleAt (Entity *e, double t)
 schedule entity e at given time t using scheduling priority from e More...
 
EntityGetFirst ()
 remove entity with minimum activation time More...
 
void Get (Entity *e)
 remove selected entity activation record from calendar More...
 
bool Empty ()
 empty calendar predicate More...
 
void Clear ()
 remove all scheduled entities More...
 
int debug_print ()
 

Detailed Description

Special namespace for calendar implementation.

This is for internal use only.

Function Documentation

◆ Clear()

void simlib3::SQS::Clear ( )

◆ debug_print()

int simlib3::SQS::debug_print ( )

◆ Empty()

bool simlib3::SQS::Empty ( )

empty calendar predicate

Definition at line 1280 of file calendar.cc.

References simlib3::Calendar::Empty(), and simlib3::Calendar::instance().

Referenced by simlib3::Run().

◆ Get()

void simlib3::SQS::Get ( Entity e)

◆ GetFirst()

Entity * simlib3::SQS::GetFirst ( )

remove entity with minimum activation time

Returns
pointer to entity

Definition at line 1327 of file calendar.cc.

References _SetTime, simlib3::Calendar::GetFirst(), simlib3::Calendar::instance(), simlib3::Calendar::MinTime(), simlib3::NextTime, and simlib3::Calendar::Size().

Referenced by simlib3::Queue::Length(), and simlib3::Run().

◆ ScheduleAt()

void simlib3::SQS::ScheduleAt ( Entity e,
double  t 
)

schedule entity e at given time t using scheduling priority from e

Parameters
eentity
ttime of activation

Definition at line 1287 of file calendar.cc.

References _SetTime, simlib3::Entity::Idle(), simlib3::Calendar::instance(), simlib3::Calendar::MinTime(), simlib3::NextTime, simlib3::Calendar::ScheduleAt(), simlib3::SIMLIB_error(), and simlib3::Calendar::Size().

Referenced by simlib3::Entity::Activate().