Sampa::PeriodicTrafficGenerator Class Reference

#include <periodic_traffic_generator.h>

Inheritance diagram for Sampa::PeriodicTrafficGenerator:

Sampa::Module Sampa::InitiatorResponseInterface Sampa::ContainerObject Sampa::Object

List of all members.

Public Member Functions

 PeriodicTrafficGenerator (const Name &)
void bind_clock (Clock *)
void bind_target (Target *)
Initiatorget_initiator ()
bool recieve_response (const Response &)
 SAMPA_PERSISTENT (Module)
const char * get_name () const
const char * get_full_name () const
 name can be ([^. ]+.)*[^. ]+
Objectget_parent () const
 return object containing this one
Objectget_sibling () const
 return next object with same parent or NULL if none
Objectget_first_child () const
 return first child object or NULL if none
int is_debug () const

Protected Types

enum  Severity { S_INFO, S_WARNING, S_ERROR, S_FATAL }

Protected Member Functions

void complete_restart ()
bool check_binding ()
void set_next_trigger (EventListenerSingle &)
ProcessBase__get_process_by_name (const std::string &name)
void debug (const char *,...)
void error (Severity severity, const char *,...)

Private Member Functions

 SAMPA_MODULE (PeriodicTrafficGenerator)
void produce ()
void consume ()
void read ()
void write ()

Private Attributes

Clockp_clock
Initiator p_initiator
IntParameter m_fifo_capacity
IntParameter m_burst_size
Address m_req_address
BoolParameter m_read
Time m_period
int m_burst
int m_fifo_size
int m_threshold
int m_num_outstanding_response
int m_max_fifo_size
int m_min_fifo_size
EventListener e_accepted
ClockedEventSingle e_read_threshold
ClockedEventSingle e_write_threshold
EventSingle e_read
EventSingle e_write
IntParameter m_word_size
AddressGenerator m_address_generator
Request m_request


Detailed Description

Definition at line 26 of file periodic_traffic_generator.h.


Member Enumeration Documentation

enum Sampa::Object::Severity [protected, inherited]

Enumerator:
S_INFO 
S_WARNING 
S_ERROR 
S_FATAL 

Definition at line 48 of file object.h.


Constructor & Destructor Documentation

Sampa::PeriodicTrafficGenerator::PeriodicTrafficGenerator ( const Name  ) 


Member Function Documentation

Sampa::PeriodicTrafficGenerator::SAMPA_MODULE ( PeriodicTrafficGenerator   )  [private]

void Sampa::PeriodicTrafficGenerator::bind_clock ( Clock  ) 

void Sampa::PeriodicTrafficGenerator::bind_target ( Target  ) 

Initiator* Sampa::PeriodicTrafficGenerator::get_initiator (  )  [inline]

Definition at line 32 of file periodic_traffic_generator.h.

References p_initiator.

bool Sampa::PeriodicTrafficGenerator::recieve_response ( const Response  )  [virtual]

Implements Sampa::InitiatorResponseInterface.

void Sampa::PeriodicTrafficGenerator::complete_restart (  )  [protected, virtual]

is called to finalize restart. On restart, one shall update pointers, or reopen ressources (files, ...).

Most of pointers are restored by the thanks to the post++ library provided that the CLASSINFO() was correctly set.

However, some pointers are not relocated by the library. These are for example the method pointers used for the processes. Take a look at

See also:
Module::restart_process, to see how this is handled

Reimplemented from Sampa::Object.

bool Sampa::PeriodicTrafficGenerator::check_binding (  )  [protected]

void Sampa::PeriodicTrafficGenerator::produce (  )  [private]

void Sampa::PeriodicTrafficGenerator::consume (  )  [private]

void Sampa::PeriodicTrafficGenerator::read (  )  [private]

void Sampa::PeriodicTrafficGenerator::write (  )  [private]

void Sampa::Module::set_next_trigger ( EventListenerSingle  )  [protected, inherited]

ProcessBase* Sampa::Module::__get_process_by_name ( const std::string &  name  )  [protected, inherited]

Sampa::Module::SAMPA_PERSISTENT ( Module   )  [inherited]

const char* Sampa::Object::get_name (  )  const [inherited]

returns the local name

const char* Sampa::Object::get_full_name (  )  const [inherited]

name can be ([^. ]+.)*[^. ]+

Object* Sampa::Object::get_parent (  )  const [inherited]

return object containing this one

Object* Sampa::Object::get_sibling (  )  const [inherited]

return next object with same parent or NULL if none

Object* Sampa::Object::get_first_child (  )  const [inherited]

return first child object or NULL if none

int Sampa::Object::is_debug (  )  const [inline, inherited]

Definition at line 44 of file object.h.

void Sampa::Object::debug ( const char *  ,
  ... 
) [protected, inherited]

void Sampa::Object::error ( Severity  severity,
const char *  ,
  ... 
) [protected, inherited]


Member Data Documentation

Clock* Sampa::PeriodicTrafficGenerator::p_clock [private]

Definition at line 43 of file periodic_traffic_generator.h.

Initiator Sampa::PeriodicTrafficGenerator::p_initiator [private]

Definition at line 44 of file periodic_traffic_generator.h.

Referenced by get_initiator().

IntParameter Sampa::PeriodicTrafficGenerator::m_fifo_capacity [private]

Definition at line 45 of file periodic_traffic_generator.h.

IntParameter Sampa::PeriodicTrafficGenerator::m_burst_size [private]

Definition at line 46 of file periodic_traffic_generator.h.

Address Sampa::PeriodicTrafficGenerator::m_req_address [private]

Definition at line 47 of file periodic_traffic_generator.h.

BoolParameter Sampa::PeriodicTrafficGenerator::m_read [private]

Definition at line 48 of file periodic_traffic_generator.h.

Time Sampa::PeriodicTrafficGenerator::m_period [private]

Definition at line 49 of file periodic_traffic_generator.h.

int Sampa::PeriodicTrafficGenerator::m_burst [private]

Definition at line 50 of file periodic_traffic_generator.h.

int Sampa::PeriodicTrafficGenerator::m_fifo_size [private]

Definition at line 51 of file periodic_traffic_generator.h.

int Sampa::PeriodicTrafficGenerator::m_threshold [private]

Definition at line 52 of file periodic_traffic_generator.h.

int Sampa::PeriodicTrafficGenerator::m_num_outstanding_response [private]

Definition at line 53 of file periodic_traffic_generator.h.

int Sampa::PeriodicTrafficGenerator::m_max_fifo_size [private]

Definition at line 54 of file periodic_traffic_generator.h.

int Sampa::PeriodicTrafficGenerator::m_min_fifo_size [private]

Definition at line 55 of file periodic_traffic_generator.h.

EventListener Sampa::PeriodicTrafficGenerator::e_accepted [private]

Definition at line 56 of file periodic_traffic_generator.h.

ClockedEventSingle Sampa::PeriodicTrafficGenerator::e_read_threshold [private]

Definition at line 57 of file periodic_traffic_generator.h.

ClockedEventSingle Sampa::PeriodicTrafficGenerator::e_write_threshold [private]

Definition at line 58 of file periodic_traffic_generator.h.

EventSingle Sampa::PeriodicTrafficGenerator::e_read [private]

Definition at line 59 of file periodic_traffic_generator.h.

EventSingle Sampa::PeriodicTrafficGenerator::e_write [private]

Definition at line 60 of file periodic_traffic_generator.h.

IntParameter Sampa::PeriodicTrafficGenerator::m_word_size [private]

Definition at line 61 of file periodic_traffic_generator.h.

AddressGenerator Sampa::PeriodicTrafficGenerator::m_address_generator [private]

Definition at line 62 of file periodic_traffic_generator.h.

Request Sampa::PeriodicTrafficGenerator::m_request [private]

Definition at line 63 of file periodic_traffic_generator.h.


The documentation for this class was generated from the following file:
Generated on Sat Feb 16 16:23:18 2008 for Sampa by  doxygen 1.5.3