SimpleNetwork.hh (8254:779d775abc11) SimpleNetwork.hh (8257:7226aebb77b4)
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;

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

65 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
66
67 bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
68 bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
69
70 int getNumNodes() {return m_nodes; }
71
72 // Methods used by Topology to setup the network
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;

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

65 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
66
67 bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
68 bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
69
70 int getNumNodes() {return m_nodes; }
71
72 // Methods used by Topology to setup the network
73 void makeOutLink(SwitchID src, NodeID dest,
74 const NetDest& routing_table_entry, int link_latency, int link_weight,
75 int bw_multiplier, bool isReconfiguration);
76 void makeInLink(SwitchID src, NodeID dest,
77 const NetDest& routing_table_entry, int link_latency,
78 int bw_multiplier, bool isReconfiguration);
79 void makeInternalLink(SwitchID src, NodeID dest,
80 const NetDest& routing_table_entry, int link_latency, int link_weight,
81 int bw_multiplier, bool isReconfiguration);
73 void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
74 LinkDirection direction,
75 const NetDest& routing_table_entry,
76 bool isReconfiguration);
77 void makeInLink(NodeID src, SwitchID dest, BasicLink* link,
78 LinkDirection direction,
79 const NetDest& routing_table_entry,
80 bool isReconfiguration);
81 void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
82 LinkDirection direction,
83 const NetDest& routing_table_entry,
84 bool isReconfiguration);
82
83 void print(std::ostream& out) const;
84
85 private:
86 void checkNetworkAllocation(NodeID id, bool ordered, int network_num);
87 void addLink(SwitchID src, SwitchID dest, int link_latency);
88 void makeLink(SwitchID src, SwitchID dest,
89 const NetDest& routing_table_entry, int link_latency);

--- 28 unchanged lines hidden ---
85
86 void print(std::ostream& out) const;
87
88 private:
89 void checkNetworkAllocation(NodeID id, bool ordered, int network_num);
90 void addLink(SwitchID src, SwitchID dest, int link_latency);
91 void makeLink(SwitchID src, SwitchID dest,
92 const NetDest& routing_table_entry, int link_latency);

--- 28 unchanged lines hidden ---