SST/macro
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
sstmac::hw::connectable Class Referenceabstract

#include <connection.h>

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

Classes

struct  config
 

Public Types

enum  config_type_t {
  RedundantConnection =0, WeightedConnection =1, FixedBandwidthConnection =2, FixedConnection =3,
  BasicConnection =4
}
 
enum  connection_type_t { output, input }
 

Public Member Functions

virtual std::string to_string () const =0
 
virtual void connect (int src_outport, int dst_inport, connection_type_t ty, connectable *mod, config *cfg)=0
 connect More...
 

Static Public Member Functions

static const char * str (connection_type_t ty)
 

Static Public Attributes

static const int any_port = -1
 

Detailed Description

Definition at line 15 of file connection.h.

Member Enumeration Documentation

Enumerator
RedundantConnection 

The connection has extra redundant links

WeightedConnection 

The connection is weighted. Weighting applies to bandwidths and buffer sizes

FixedBandwidthConnection 

The connection has a fixed bandwidth

FixedConnection 

The connection has a fixex bandwidth and latency

BasicConnection 

The connection has no special properties Use only the defauly properties

Definition at line 23 of file connection.h.

Enumerator
output 
input 

Definition at line 45 of file connection.h.

Member Function Documentation

virtual void sstmac::hw::connectable::connect ( int  src_outport,
int  dst_inport,
connection_type_t  ty,
connectable mod,
config cfg 
)
pure virtual

connect

Parameters
src_outportThe outgoing port at the source
dst_inportThe incoming port at the destination
tyWhether we are configuring the input or output direction
modThe device currently being connected
cfgA struct with various special configuration options

Implemented in sstmac::hw::packet_flow_netlink, sstmac::hw::node, sstmac::hw::packet_flow_nic, and sstmac::hw::simple_nic.

Referenced by str().

static const char* sstmac::hw::connectable::str ( connection_type_t  ty)
inlinestatic

Definition at line 52 of file connection.h.

References connect(), connect_str_case, input, output, and sstmac::hw::connectable::config::ty.

Here is the call graph for this function:

virtual std::string sstmac::hw::connectable::to_string ( ) const
pure virtual

Member Data Documentation

const int sstmac::hw::connectable::any_port = -1
static

Definition at line 21 of file connection.h.


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