Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

simthlib::BitGenerator Class Reference

#include <bitgenerator.h>

Inheritance diagram for simthlib::BitGenerator:

Inheritance graph
[legend]
List of all members.

Public Types

enum  GenerationMode { RANDOM, ALL_ZERO, ALL_ONE }

Public Member Functions

 BitGenerator (int deviceID, simth::DeviceSystemIntf *system, const simth::PropertyList &pl)
virtual ~BitGenerator ()
virtual void updateInputLengths ()
virtual void updateOutputLengths ()
void fillBitSequence (simth::BitSeq *bits) const
void setBitseqLength (int newLength)
virtual void process ()
virtual void print (std::ostream &os) const

Static Public Member Functions

static void init (const std::string fileName, simth::Device **dev, simth::DeviceSystemIntf *sysPtr, int ID, const std::string &regionQualifier="")

Protected Member Functions

GenerationMode mode () const

Related Functions

(Note that these are not member functions.)

 propertylist_BitGenerator (not_a_function)

Detailed Description

This class simulates an information source which produces bit sequences. The length of the sequences is set by the constructor argument.


Member Enumeration Documentation

enum simthlib::BitGenerator::GenerationMode
 

Enumeration values:
RANDOM 
ALL_ZERO 
ALL_ONE 


Constructor & Destructor Documentation

simthlib::BitGenerator::BitGenerator int  deviceID,
simth::DeviceSystemIntf system,
const simth::PropertyList pl
 

Class constructor.

Parameters:
deviceID ID of this device
system Pointer to parent simulation system
pl Property list of this device

virtual simthlib::BitGenerator::~BitGenerator  )  [inline, virtual]
 

Class destructor.


Member Function Documentation

void simthlib::BitGenerator::fillBitSequence simth::BitSeq bits  )  const
 

Returns a bit sequence (the length of the sequences is determined by the private element length which is set by the constructor argument).

static void simthlib::BitGenerator::init const std::string  fileName,
simth::Device **  dev,
simth::DeviceSystemIntf sysPtr,
int  ID,
const std::string &  regionQualifier = ""
[static]
 

GenerationMode simthlib::BitGenerator::mode  )  const [inline, protected]
 

virtual void simthlib::BitGenerator::print std::ostream &  os  )  const [virtual]
 

Reimplemented from simth::Device.

virtual void simthlib::BitGenerator::process  )  [virtual]
 

Implements simth::Device.

void simthlib::BitGenerator::setBitseqLength int  newLength  )  [inline]
 

Changes the length of the generated bitsequences length.

virtual void simthlib::BitGenerator::updateInputLengths  )  [virtual]
 

Implements simth::Device.

virtual void simthlib::BitGenerator::updateOutputLengths  )  [virtual]
 

Implements simth::Device.


Friends And Related Function Documentation

propertylist_BitGenerator not_a_function   )  [related]
 

These are the properties of class BitGenerator . This list is auto-generated from the XML-Devicelist of this device by means of an XSLT transformation script.

Description of this device in the XML file: This class simulates an information source which produces bit sequences.

Note that this class also has the Properties of its base classes. The direct base class is simth::Device ; direct link to its propertylist should be propertylist_Device(). The list below usually includes the properties that have been inherited from the base classes; the properties which belong only to this class can be found at the end of this list.

bitseq_len
<int>, default "" -- The length of each generated bit sequence.

generation_mode
<enum>, default "random" -- Whether these bits should be random, or alternatively all ones or all zeros.

2 properties in this class.


Generated on Tue Aug 9 14:36:43 2005 for simtheticlib by  doxygen 1.4.1