SST/macro
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sstmac::hw::packet_flow_injection_buffer Class Reference

#include <packet_flow_buffer.h>

Inheritance diagram for sstmac::hw::packet_flow_injection_buffer:
Inheritance graph
Collaboration diagram for sstmac::hw::packet_flow_injection_buffer:
Collaboration graph

Public Member Functions

 packet_flow_injection_buffer (const timestamp &out_lat, packet_flow_bandwidth_arbitrator *arb, int packet_size)
 
int queue_length () const
 
void init_credits (int port, int num_credits)
 
bool space_to_send (int bytes) const
 
void handle_credit (packet_flow_credit *msg)
 
void do_handle_payload (packet_flow_payload *pkt)
 
std::string packet_flow_name () const
 
- Public Member Functions inherited from sstmac::hw::packet_flow_buffer
virtual ~packet_flow_buffer ()
 
virtual void set_output (int this_outport, int dst_inport, event_handler *output)
 
event_loc_id output_location () const
 
event_loc_id input_location () const
 
- Public Member Functions inherited from sstmac::hw::packet_flow_sender
virtual ~packet_flow_sender ()
 
void set_acker (event_handler *acker)
 
void handle_payload (packet_flow_payload *pkt)
 
void set_event_location (node_id nid)
 
void set_event_location (switch_id sid)
 
void set_stat_collector (packet_sent_stats *c)
 
std::string to_string () const
 
void set_update_vc (bool flag)
 
- Public Member Functions inherited from sstmac::hw::packet_flow_handler
 packet_flow_handler ()
 
virtual ~packet_flow_handler ()
 
virtual void handle (event *ev)
 
int thread_id () const
 
- Public Member Functions inherited from sstmac::event_subscheduler
 event_subscheduler ()
 
timestamp now () const
 get the current time More...
 
void schedule (timestamp t, event_handler *handler, event *ev)
 Add an event to the event queue, where msg will get delivered to handler at time t. More...
 
void schedule (timestamp t, event_queue_entry *ev)
 
void schedule_now (event_queue_entry *ev)
 
void schedule_now (event_handler *handler, event *ev)
 
void schedule_delay (timestamp delay, event_handler *handler, event *ev)
 
void schedule_delay (timestamp delay, event_queue_entry *ev)
 
void send_self_event (timestamp arrival, event *ev)
 
void send_delayed_self_event (timestamp delay, event *ev)
 
void send_now_self_event (event *ev)
 
void send_self_event_queue (timestamp arrival, event_queue_entry *ev)
 
void send_delayed_self_event_queue (timestamp delay, event_queue_entry *ev)
 
void send_now_self_event_queue (event_queue_entry *ev)
 
virtual void set_event_parent (event_scheduler *m)
 Set the eventmanager for this scheduler. More...
 
event_schedulerparent () const
 
- Public Member Functions inherited from sstmac::event_handler
virtual ~event_handler ()
 
event_loc_id event_location () const
 
virtual bool ipc_handler () const
 Whether an event handler is a "fake" handler that represents logical process boundary. More...
 
int thread_id () const
 
virtual void deadlock_check (event *ev)
 
virtual void deadlock_check ()
 

Protected Member Functions

 packet_flow_injection_buffer ()
 
- Protected Member Functions inherited from sstmac::hw::packet_flow_infinite_buffer
 packet_flow_infinite_buffer (const timestamp &send_lat, packet_flow_bandwidth_arbitrator *arb)
 
 packet_flow_infinite_buffer ()
 
virtual ~packet_flow_infinite_buffer ()
 
void set_input (int my_inport, int dst_outport, event_handler *input)
 
int num_initial_credits () const
 
- Protected Member Functions inherited from sstmac::hw::packet_flow_buffer
 packet_flow_buffer (const timestamp &send_lat, const timestamp &credit_lat, packet_flow_bandwidth_arbitrator *arb)
 
 packet_flow_buffer ()
 
std::string buffer_string (const char *name) const
 
- Protected Member Functions inherited from sstmac::hw::packet_flow_sender
 packet_flow_sender (const timestamp &send_lat, const timestamp &credit_lat)
 
 packet_flow_sender ()
 
void send_credit (const packet_flow_input &src, packet_flow_payload *payload, timestamp packet_tail_leaves)
 
void send (packet_flow_bandwidth_arbitrator *arb, packet_flow_payload *pkt, const packet_flow_input &src, const packet_flow_output &dest)
 
- Protected Member Functions inherited from sstmac::event_handler
 event_handler ()
 
void init_loc_id (event_loc_id id)
 
void init_thread_id (int id)
 

Protected Attributes

int packet_size_
 
long credits_
 
- Protected Attributes inherited from sstmac::hw::packet_flow_buffer
packet_flow_bandwidth_arbitratorarb_
 
packet_flow_input input_
 
packet_flow_output output_
 
long bytes_delayed_
 
- Protected Attributes inherited from sstmac::hw::packet_flow_sender
packet_sent_statsstat_collector_
 
event_handleracker_
 
timestamp send_lat_
 
timestamp credit_lat_
 
bool update_vc_
 
- Protected Attributes inherited from sstmac::event_subscheduler
event_schedulerparent_
 

Additional Inherited Members

- Static Public Attributes inherited from sstmac::event_handler
static const int null_lpid = -1
 
static const int null_threadid = -1
 
- Static Protected Attributes inherited from sstmac::hw::packet_flow_buffer
static const int my_outport = 0
 
static const int my_inport = 0
 

Detailed Description

Definition at line 210 of file packet_flow_buffer.h.

Constructor & Destructor Documentation

sstmac::hw::packet_flow_injection_buffer::packet_flow_injection_buffer ( const timestamp out_lat,
packet_flow_bandwidth_arbitrator arb,
int  packet_size 
)
sstmac::hw::packet_flow_injection_buffer::packet_flow_injection_buffer ( )
inlineprotected

Definition at line 246 of file packet_flow_buffer.h.

Member Function Documentation

void sstmac::hw::packet_flow_injection_buffer::do_handle_payload ( packet_flow_payload *  pkt)
virtual
void sstmac::hw::packet_flow_injection_buffer::handle_credit ( packet_flow_credit *  msg)
virtual
void sstmac::hw::packet_flow_injection_buffer::init_credits ( int  port,
int  num_credits 
)
virtual
std::string sstmac::hw::packet_flow_injection_buffer::packet_flow_name ( ) const
inlinevirtual

Implements sstmac::hw::packet_flow_sender.

Definition at line 237 of file packet_flow_buffer.h.

int sstmac::hw::packet_flow_injection_buffer::queue_length ( ) const
virtual

Reimplemented from sstmac::hw::packet_flow_buffer.

bool sstmac::hw::packet_flow_injection_buffer::space_to_send ( int  bytes) const
inline

Definition at line 226 of file packet_flow_buffer.h.

References sstmac::hw::packet_flow_sender::do_handle_payload(), and sstmac::hw::packet_flow_handler::handle_credit().

Here is the call graph for this function:

Member Data Documentation

long sstmac::hw::packet_flow_injection_buffer::credits_
protected

Definition at line 244 of file packet_flow_buffer.h.

int sstmac::hw::packet_flow_injection_buffer::packet_size_
protected

Definition at line 242 of file packet_flow_buffer.h.


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