SIMLIB/C++
3.07
|
Public Member Functions | |
void | Behavior () override |
behavior description More... | |
![]() | |
Process (Priority_t p=DEFAULT_PRIORITY) | |
Process constructor sets state to PREPARED. More... | |
virtual | ~Process () |
Process destructor Sets status to TERMINATED and removes process from queue/calendar/waituntil list. More... | |
virtual void | Output () const override |
print object to default output More... | |
virtual std::string | Name () const override |
name of object More... | |
virtual void | Activate (double t) override |
activate at time t (schedule) More... | |
virtual void | Passivate () override |
process deactivation (sleep) More... | |
virtual void | Wait (double dtime) |
wait for dtime interval More... | |
bool | _WaitUntil (bool test) |
wait for condition (slow!) More... | |
void | Interrupt () |
test of WaitUntil list, allow running others More... | |
virtual void | Terminate () override |
kill process More... | |
void | Seize (Facility &f, ServicePriority_t sp=0) |
seize facility More... | |
void | Release (Facility &f) |
release facility More... | |
void | Enter (Store &s, unsigned long ReqCap=1) |
acquire some capacity More... | |
void | Leave (Store &s, unsigned long ReqCap=1) |
return some capacity More... | |
virtual void | Into (Queue &q) |
insert process into queue More... | |
![]() | |
unsigned long | id () const |
Entity (Priority_t p=DEFAULT_PRIORITY) | |
constructor More... | |
virtual | ~Entity () |
destructor More... | |
operator Entity * () | |
double | ActivationTime () |
get activation time of entity - iff scheduled it is here, because Entity has no knowledge of calendar activation record structure More... | |
void | Activate () |
activate now More... | |
bool | Idle () |
entity activation is not scheduled in calendar More... | |
void | Cancel () |
end Behavior() and remove entity More... | |
virtual void | Out () override |
remove entity from queue More... | |
EventNotice * | GetEventNotice () |
![]() | |
Link () | |
virtual | ~Link () |
virtual void | Into (List *l) |
insert last More... | |
List * | Where () |
where is linked More... | |
virtual bool | isInQueue () |
present in queue More... | |
![]() | |
bool | TestAndSetFlag (bool new_value, unsigned n) |
internal method for flag manipulation is used for algebraic loop checking in continuous blocks More... | |
SimObject () | |
constructor More... | |
virtual | ~SimObject () |
virtual destructor More... | |
void * | operator new (size_t size) |
allocate object, set _flags More... | |
void | operator delete (void *ptr) |
deallocate object More... | |
void * | operator new[] (size_t size)=delete |
void | operator delete[] (void *ptr)=delete |
bool | isAllocated () const |
bool | HasName () const |
void | SetName (const std::string &name) |
assign the name More... | |
Additional Inherited Members | |
![]() | |
typedef EntityPriority_t | Priority_t |
![]() | |
enum | _Flags { _CLEAR_ALL_FLAGS = 0, _ALLOCATED_FLAG = 1<<0, _EVAL_FLAG = 1<<1, _HAS_NAME_FLAG = 1<<2 } |
![]() | |
Priority_t | Priority |
priority of the entity (scheduling,queues) More... | |
double | _RemainingTime |
unsigned long | _RequiredCapacity |
![]() | |
Link (Link *p, Link *s, List *h) | |
![]() | |
unsigned long | _Ident |
unique identification number of entity More... | |
double | _MarkTime |
union { | |
double _RemainingTime | |
unsigned long _RequiredCapacity | |
}; | |
ServicePriority_t | _SPrio |
priority of service in Facility More... | |
![]() | |
unsigned | _flags |
bool flags for internal use (TODO bitfield?) More... | |
![]() | |
static unsigned long | _Number = 0L |
current number of entities More... | |
|
inlineoverridevirtual |
behavior description
Implements simlib3::Process.
Definition at line 22 of file _test_.cc.
References F, t, and simlib3::Time.