|
SIMLIB/C++ 3.09
|
activation record More...


Public Member Functions | |
| EventNotice (Entity *p, double t) | |
| void | create_reverse_link () |
| create link from entity to activation record | |
| void | delete_reverse_link () |
| delete link from entity to activation record | |
| ~EventNotice () | |
| void | Set (Entity *e, double t) |
| set new values to existing (unlinked) record | |
Public Member Functions inherited from simlib3::EventNoticeLinkBase | |
| EventNoticeLinkBase () | |
| void | remove () |
| remove from calendar list | |
| void | insert (EventNoticeLinkBase *p) |
| insert at position p | |
Static Public Member Functions | |
| static EventNotice * | Create (Entity *p, double t) |
| creates new EventNotice, | |
| static void | Destroy (EventNotice *en) |
| delete EventNotice, if inserted in calendar remove it first | |
Public Attributes | |
| Entity * | entity |
| which entity is scheduled | |
| double | time |
| activation time of entity | |
| Entity::Priority_t | priority |
| priority at the time of scheduling | |
Public Attributes inherited from simlib3::EventNoticeLinkBase | |
| EventNoticeLinkBase * | pred |
| previous object in list | |
| EventNoticeLinkBase * | succ |
| next object in list | |
Private Member Functions | |
| EventNotice (const EventNotice &) | |
| EventNotice & | operator= (const EventNotice &) |
activation record
Definition at line 145 of file calendar.cc.
|
inline |
Definition at line 153 of file calendar.cc.
References create_reverse_link().
|
inline |
Definition at line 171 of file calendar.cc.
References delete_reverse_link(), simlib3::EventNoticeLinkBase::pred, and simlib3::EventNoticeLinkBase::remove().
|
private |
|
inlinestatic |
creates new EventNotice,
Definition at line 413 of file calendar.cc.
References simlib3::EventNoticeAllocator::alloc(), simlib3::allocator, simlib3::Entity::GetEventNotice(), priority, simlib3::Entity::Priority, simlib3::EventNoticeLinkBase::remove(), t, and time.
Referenced by simlib3::CalendarListImplementation::insert().
|
inline |
create link from entity to activation record
Definition at line 163 of file calendar.cc.
References simlib3::Entity::_evn, and entity.
Referenced by EventNotice(), and Set().
|
inline |
delete link from entity to activation record
Definition at line 167 of file calendar.cc.
References simlib3::Entity::_evn, and entity.
Referenced by simlib3::EventNoticeAllocator::free(), and ~EventNotice().
|
inlinestatic |
delete EventNotice, if inserted in calendar remove it first
Definition at line 435 of file calendar.cc.
References simlib3::allocator, and simlib3::EventNoticeAllocator::free().
Referenced by simlib3::CalendarListImplementation::remove(), and simlib3::CalendarListImplementation::remove_first().
|
private |
|
inline |
set new values to existing (unlinked) record
Definition at line 179 of file calendar.cc.
References create_reverse_link(), entity, simlib3::EventNoticeLinkBase::pred, priority, simlib3::Entity::Priority, simlib3::EventNoticeLinkBase::succ, t, and time.
Referenced by simlib3::EventNoticeAllocator::alloc().
| Entity* simlib3::EventNotice::entity |
which entity is scheduled
Definition at line 147 of file calendar.cc.
Referenced by create_reverse_link(), delete_reverse_link(), simlib3::CalendarListImplementation::remove_first(), and Set().
| Entity::Priority_t simlib3::EventNotice::priority |
priority at the time of scheduling
Definition at line 151 of file calendar.cc.
Referenced by Create(), simlib3::CalendarListImplementation::search(), and Set().
| double simlib3::EventNotice::time |
activation time of entity
Definition at line 149 of file calendar.cc.
Referenced by simlib3::Entity::ActivationTime(), Create(), simlib3::CalendarQueue::Resize(), simlib3::CalendarListImplementation::search(), Set(), and simlib3::CalendarQueue::switchtocq().