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

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

51
52 int getBufferSize() { return m_buffer_size; }
53 int getEndpointBandwidth() { return m_endpoint_bandwidth; }
54 bool getAdaptiveRouting() {return m_adaptive_routing; }
55
56 void collateStats();
57 void regStats();
58
59 // sets the queue requested
60 void setToNetQueue(NodeID id, bool ordered, int network_num,
61 std::string vnet_type, MessageBuffer *b);
62 void setFromNetQueue(NodeID id, bool ordered, int network_num,
63 std::string vnet_type, MessageBuffer *b);
64
65 bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
66 bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
67
68 // Methods used by Topology to setup the network
69 void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
70 LinkDirection direction,
71 const NetDest& routing_table_entry);

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

86 void addLink(SwitchID src, SwitchID dest, int link_latency);
87 void makeLink(SwitchID src, SwitchID dest,
88 const NetDest& routing_table_entry, int link_latency);
89 void makeTopology();
90
91 // Private copy constructor and assignment operator
92 SimpleNetwork(const SimpleNetwork& obj);
93 SimpleNetwork& operator=(const SimpleNetwork& obj);
94
95 std::vector<Switch*> m_switches;
96 std::vector<MessageBuffer*> m_buffers_to_free;
97 std::vector<Switch*> m_endpoint_switches;
98
99 int m_buffer_size;
100 int m_endpoint_bandwidth;
101 bool m_adaptive_routing;
102

--- 14 unchanged lines hidden ---