LinkDirection direction,
const NetDest& routing_table_entry) = 0;
- virtual void reset() = 0;
-
virtual void printStats(std::ostream& out) const = 0;
virtual void clearStats() = 0;
virtual void print(std::ostream& out) const = 0;
delete m_topology_ptr;
}
-void
-GarnetNetwork_d::reset()
-{
- for (int node = 0; node < m_nodes; node++) {
- for (int j = 0; j < m_virtual_networks; j++) {
- m_toNetQueues[node][j]->clear();
- m_fromNetQueues[node][j]->clear();
- }
- }
-}
-
/*
* This function creates a link from the Network Interface (NI)
* into the Network.
return m_vnet_type[vnet];
}
- void reset();
-
// Methods used by Topology to setup the network
void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
LinkDirection direction,
delete m_topology_ptr;
}
-void
-GarnetNetwork::reset()
-{
- for (int node = 0; node < m_nodes; node++) {
- for (int j = 0; j < m_virtual_networks; j++) {
- m_toNetQueues[node][j]->clear();
- m_fromNetQueues[node][j]->clear();
- }
- }
-}
-
void
GarnetNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
LinkDirection direction,
int getNumNodes(){ return m_nodes; }
- void reset();
-
void printLinkStats(std::ostream& out) const;
void printPowerStats(std::ostream& out) const;
void print(std::ostream& out) const;
m_topology_ptr->createLinks(this);
}
-void
-SimpleNetwork::reset()
-{
- for (int node = 0; node < m_nodes; node++) {
- for (int j = 0; j < m_virtual_networks; j++) {
- m_toNetQueues[node][j]->clear();
- m_fromNetQueues[node][j]->clear();
- }
- }
-
- for(int i = 0; i < m_switches.size(); i++){
- m_switches[i]->clearBuffers();
- }
-}
-
SimpleNetwork::~SimpleNetwork()
{
for (int i = 0; i < m_nodes; i++) {
void printStats(std::ostream& out) const;
void clearStats();
- void reset();
// returns the queue requested for the given component
MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);