SIMLIB/C++  3.07
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
simlib3::aCondition Class Referenceabstract

abstract base class for all state-condition blocks State event in combined model is executed at the time when the condition changes its boolean value More...

#include <simlib.h>

Inheritance diagram for simlib3::aCondition:
Inheritance graph
[legend]
Collaboration diagram for simlib3::aCondition:
Collaboration graph
[legend]

Public Member Functions

 aCondition ()
 
 ~aCondition ()
 
- 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
 
virtual std::string Name () const
 get object name More...
 
bool HasName () const
 
void SetName (const std::string &name)
 assign the name More...
 
virtual void Output () const
 print object to default output More...
 

Static Public Member Functions

static void InitAll ()
 
static void SetAll ()
 
static void TestAll ()
 
static void AllActions ()
 
static bool isAny ()
 

Private Member Functions

void operator= (const aCondition &)=delete
 
 aCondition (const aCondition &)=delete
 
virtual void Init ()=0
 initialize More...
 
virtual void SetNewStatus ()=0
 update More...
 
virtual bool Test ()=0
 test of the condition More...
 
virtual void Action ()=0
 state event description More...
 

Private Attributes

aConditionNext
 

Static Private Attributes

static aConditionFirst = 0
 

Additional Inherited Members

- 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 }
 
- Protected Attributes inherited from simlib3::SimObject
unsigned _flags
 bool flags for internal use (TODO bitfield?) More...
 

Detailed Description

abstract base class for all state-condition blocks State event in combined model is executed at the time when the condition changes its boolean value

Definition at line 1484 of file simlib.h.

Constructor & Destructor Documentation

◆ aCondition() [1/2]

simlib3::aCondition::aCondition ( const aCondition )
privatedelete

◆ aCondition() [2/2]

simlib3::aCondition::aCondition ( )

Definition at line 36 of file cond.cc.

References First.

◆ ~aCondition()

simlib3::aCondition::~aCondition ( )

Definition at line 42 of file cond.cc.

References First, and Next.

Member Function Documentation

◆ Action()

virtual void simlib3::aCondition::Action ( )
privatepure virtual

state event description

◆ AllActions()

void simlib3::aCondition::AllActions ( )
static

Change???? ### !!!!

Definition at line 130 of file cond.cc.

References Next.

Referenced by simlib3::SIMLIB_DoConditions().

◆ Init()

virtual void simlib3::aCondition::Init ( )
privatepure virtual

initialize

Implemented in simlib3::Condition.

◆ InitAll()

void simlib3::aCondition::InitAll ( )
static

Definition at line 56 of file cond.cc.

References First, and Next.

Referenced by simlib3::SIMLIB_ContinueInit().

◆ isAny()

bool simlib3::aCondition::isAny ( void  )
static

Definition at line 70 of file cond.cc.

References First.

Referenced by simlib3::SIMLIB_ContinueInit().

◆ operator=()

void simlib3::aCondition::operator= ( const aCondition )
privatedelete

◆ SetAll()

void simlib3::aCondition::SetAll ( )
static

Definition at line 65 of file cond.cc.

References First, and Next.

Referenced by simlib3::SIMLIB_ContinueInit(), and simlib3::SIMLIB_DoConditions().

◆ SetNewStatus()

virtual void simlib3::aCondition::SetNewStatus ( )
privatepure virtual

update

Implemented in simlib3::Condition.

◆ Test()

virtual bool simlib3::aCondition::Test ( )
privatepure virtual

test of the condition

Implemented in simlib3::ConditionDown, simlib3::ConditionUp, and simlib3::Condition.

◆ TestAll()

void simlib3::aCondition::TestAll ( )
static

Member Data Documentation

◆ First

aCondition * simlib3::aCondition::First = 0
staticprivate

Definition at line 1485 of file simlib.h.

Referenced by aCondition(), InitAll(), isAny(), SetAll(), and ~aCondition().

◆ Next

aCondition* simlib3::aCondition::Next
private

Definition at line 1486 of file simlib.h.

Referenced by AllActions(), InitAll(), SetAll(), TestAll(), and ~aCondition().


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