Topology.hh (9594:219ad5fe8c04) Topology.hh (9799:5aed42e54180)
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;

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

63
64class Topology
65{
66 public:
67 Topology(uint32_t num_routers, std::vector<BasicExtLink *> ext_links,
68 std::vector<BasicIntLink *> int_links);
69
70 uint32_t numSwitches() const { return m_number_of_switches; }
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;

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

63
64class Topology
65{
66 public:
67 Topology(uint32_t num_routers, std::vector<BasicExtLink *> ext_links,
68 std::vector<BasicIntLink *> int_links);
69
70 uint32_t numSwitches() const { return m_number_of_switches; }
71 void createLinks(Network *net, bool isReconfiguration);
71 void createLinks(Network *net);
72 void print(std::ostream& out) const { out << "[Topology]"; }
73
74 protected:
75 void addLink(SwitchID src, SwitchID dest, BasicLink* link,
76 LinkDirection dir);
77 void makeLink(Network *net, SwitchID src, SwitchID dest,
72 void print(std::ostream& out) const { out << "[Topology]"; }
73
74 protected:
75 void addLink(SwitchID src, SwitchID dest, BasicLink* link,
76 LinkDirection dir);
77 void makeLink(Network *net, SwitchID src, SwitchID dest,
78 const NetDest& routing_table_entry,
79 bool isReconfiguration);
78 const NetDest& routing_table_entry);
80
81 NodeID m_nodes;
82 uint32_t m_number_of_switches;
83
84 std::vector<BasicExtLink*> m_ext_link_vector;
85 std::vector<BasicIntLink*> m_int_link_vector;
86
87 Matrix m_component_latencies;

--- 14 unchanged lines hidden ---
79
80 NodeID m_nodes;
81 uint32_t m_number_of_switches;
82
83 std::vector<BasicExtLink*> m_ext_link_vector;
84 std::vector<BasicIntLink*> m_int_link_vector;
85
86 Matrix m_component_latencies;

--- 14 unchanged lines hidden ---