Deleted Added
sdiff udiff text old ( 6294:b42cea5e1625 ) new ( 6372:f1a41ea3bbab )
full compact
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 87 unchanged lines hidden (view full) ---

96 // m_topology_ptr = new Topology(this, m_nodes);
97 m_topology_ptr->makeTopology();
98 int number_of_switches = m_topology_ptr->numSwitches();
99 for (int i=0; i<number_of_switches; i++) {
100 m_switch_ptr_vector.insertAtBottom(new Switch(i, this));
101 }
102 m_topology_ptr->createLinks(false); // false because this isn't a reconfiguration
103}
104
105void SimpleNetwork::reset()
106{
107 for (int node = 0; node < m_nodes; node++) {
108 for (int j = 0; j < m_virtual_networks; j++) {
109 m_toNetQueues[node][j]->clear();
110 m_fromNetQueues[node][j]->clear();
111 }
112 }

--- 151 unchanged lines hidden ---