SIMLIB/C++  3.07
Public Member Functions | List of all members
TestProcess Class Reference
Inheritance diagram for TestProcess:
Inheritance graph
[legend]
Collaboration diagram for TestProcess:
Collaboration graph
[legend]

Public Member Functions

void Behavior () override
 behavior description More...
 
- Public Member Functions inherited from simlib3::Process
 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...
 
- Public Member Functions inherited from simlib3::Entity
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...
 
EventNoticeGetEventNotice ()
 
- Public Member Functions inherited from simlib3::SimObject
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

- Public Types inherited from simlib3::Entity
typedef EntityPriority_t Priority_t
 
- Public Types inherited from simlib3::SimObject
enum  _Flags { _CLEAR_ALL_FLAGS = 0, _ALLOCATED_FLAG = 1<<0, _EVAL_FLAG = 1<<1, _HAS_NAME_FLAG = 1<<2 }
 
- Public Attributes inherited from simlib3::Entity
Priority_t Priority
 priority of the entity (scheduling,queues) More...
 
double _RemainingTime
 
unsigned long _RequiredCapacity
 
- Protected Attributes inherited from simlib3::Entity
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...
 
- Protected Attributes inherited from simlib3::SimObject
unsigned _flags
 bool flags for internal use (TODO bitfield?) More...
 
- Static Protected Attributes inherited from simlib3::Entity
static unsigned long _Number = 0L
 current number of entities More...
 

Detailed Description

Examples:
_test_.cc.

Definition at line 20 of file _test_.cc.

Member Function Documentation

◆ Behavior()

void TestProcess::Behavior ( )
inlineoverridevirtual

behavior description

Implements simlib3::Process.

Definition at line 22 of file _test_.cc.

References F, t, and simlib3::Time.


The documentation for this class was generated from the following file: