ruby: network: removes reset functionality

This commit is contained in:
Nilay Vaish 2013-09-06 16:21:30 -05:00
parent e7bd70e079
commit 0280997fbf
7 changed files with 0 additions and 44 deletions

View file

@ -88,8 +88,6 @@ class Network : public ClockedObject
LinkDirection direction, LinkDirection direction,
const NetDest& routing_table_entry) = 0; const NetDest& routing_table_entry) = 0;
virtual void reset() = 0;
virtual void printStats(std::ostream& out) const = 0; virtual void printStats(std::ostream& out) const = 0;
virtual void clearStats() = 0; virtual void clearStats() = 0;
virtual void print(std::ostream& out) const = 0; virtual void print(std::ostream& out) const = 0;

View file

@ -128,17 +128,6 @@ GarnetNetwork_d::~GarnetNetwork_d()
delete m_topology_ptr; 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) * This function creates a link from the Network Interface (NI)
* into the Network. * into the Network.

View file

@ -74,8 +74,6 @@ class GarnetNetwork_d : public BaseGarnetNetwork
return m_vnet_type[vnet]; return m_vnet_type[vnet];
} }
void reset();
// Methods used by Topology to setup the network // Methods used by Topology to setup the network
void makeOutLink(SwitchID src, NodeID dest, BasicLink* link, void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
LinkDirection direction, LinkDirection direction,

View file

@ -97,17 +97,6 @@ GarnetNetwork::~GarnetNetwork()
delete m_topology_ptr; 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 void
GarnetNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link, GarnetNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
LinkDirection direction, LinkDirection direction,

View file

@ -61,8 +61,6 @@ class GarnetNetwork : public BaseGarnetNetwork
int getNumNodes(){ return m_nodes; } int getNumNodes(){ return m_nodes; }
void reset();
void printLinkStats(std::ostream& out) const; void printLinkStats(std::ostream& out) const;
void printPowerStats(std::ostream& out) const; void printPowerStats(std::ostream& out) const;
void print(std::ostream& out) const; void print(std::ostream& out) const;

View file

@ -99,21 +99,6 @@ SimpleNetwork::init()
m_topology_ptr->createLinks(this); 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() SimpleNetwork::~SimpleNetwork()
{ {
for (int i = 0; i < m_nodes; i++) { for (int i = 0; i < m_nodes; i++) {

View file

@ -58,7 +58,6 @@ class SimpleNetwork : public Network
void printStats(std::ostream& out) const; void printStats(std::ostream& out) const;
void clearStats(); void clearStats();
void reset();
// returns the queue requested for the given component // returns the queue requested for the given component
MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type); MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);