class Pud : genNamedObj< Pud* >

Class that represents the design/type of a process unit

Inheritance:


Public Methods

int add( Pu* pPu )
Add a process unit to the PUD
void dump( ostream &os = cout )
Dumps information about the object to ostream os
static void dump_all( ostream &os = cout )
Iterates over all objects and calls dump
const char* getName()
Returns the name of the object
char* getPrst()
Returns a pointer to the process stage
int getPu( list<Pu*> &rlistPu )
Returns a list of all the PU that belong to this design
const char* getType()
Returns the type (hardware or software)
void identify( ostream &os = cout )
Prints a one-line summary about the object
bool isManaged()
Returns true if the process units of this type are managed
static void listAll( ostream &os = cout )
Iterates over all objects and calls identify
Pud(const char *name, const char *type, const char *prst_name, const char *comment = NULL )
Creator
void setManaged( bool mode )
Set the managed flag to true or false
int sub( Pu* pPu )
Removes a process unit from the PUD

Inherited from genNamedObj:

Public Methods

inline static X begin()
inline static X end()
static bool exists( const char *name )
static X get( const char *name )
int getLocation()
inline static int getNbElements()
static X getObject( const char *name )
static int getObjects( const char *name, list<X> &theList )
inline const char* getObjName()
inline static X next()
static void remove( const char *name )

Private Fields

static map < const char*, X, cstring_ordering_t > ::iterator m_It
static map < const char*, X, cstring_ordering_t > m_Map
char* m_Name

Documentation

Class that represents the design/type of a process unit. Examples are DCM_FE1, DCM_FE2, SEB, ATP, EVENTPOOL, DD_SERVER etc etc.
Note that the process stages are related to the process units through this object. The idea behind this is that a process stage controls process units of a given type (or types) and the run control has a bunch of process units of several types.
The process unit design as such is a static object, i.e. it doesn't have any state model or action associated with it.

Last modifications: Feb 1, 2000, CW

Pud(const char *name, const char *type, const char *prst_name, const char *comment = NULL )
Creator

static void listAll( ostream &os = cout )
Iterates over all objects and calls identify

static void dump_all( ostream &os = cout )
Iterates over all objects and calls dump

void identify( ostream &os = cout )
Prints a one-line summary about the object

void dump( ostream &os = cout )
Dumps information about the object to ostream os

const char* getName()
Returns the name of the object

const char* getType()
Returns the type (hardware or software)

char* getPrst()
Returns a pointer to the process stage. There is a 1:M relationship between PUD and PRST.

bool isManaged()
Returns true if the process units of this type are managed. Currently this is not in use (it is a piece of the past, but may be useful later on).

void setManaged( bool mode )
Set the managed flag to true or false

int add( Pu* pPu )
Add a process unit to the PUD

int sub( Pu* pPu )
Removes a process unit from the PUD

int getPu( list<Pu*> &rlistPu )
Returns a list of all the PU that belong to this design


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de