Topology.cc (9560:322472967603) Topology.cc (9593:9441ca79f3c8)
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;

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

56bool link_is_shortest_path_to_node(SwitchID src, SwitchID next,
57 SwitchID final, const Matrix& weights, const Matrix& dist);
58NetDest shortest_path_to_node(SwitchID src, SwitchID next,
59 const Matrix& weights, const Matrix& dist);
60
61Topology::Topology(const Params *p)
62 : SimObject(p)
63{
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;

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

56bool link_is_shortest_path_to_node(SwitchID src, SwitchID next,
57 SwitchID final, const Matrix& weights, const Matrix& dist);
58NetDest shortest_path_to_node(SwitchID src, SwitchID next,
59 const Matrix& weights, const Matrix& dist);
60
61Topology::Topology(const Params *p)
62 : SimObject(p)
63{
64 m_number_of_switches = p->routers.size();
64 m_number_of_switches = p->num_routers;
65
66 // initialize component latencies record
67 m_component_latencies.resize(0);
68 m_component_inter_switches.resize(0);
69
70 // Total nodes/controllers in network
71 // Must make sure this is called after the State Machine constructors
72 m_nodes = MachineType_base_number(MachineType_NUM);

--- 291 unchanged lines hidden ---
65
66 // initialize component latencies record
67 m_component_latencies.resize(0);
68 m_component_inter_switches.resize(0);
69
70 // Total nodes/controllers in network
71 // Must make sure this is called after the State Machine constructors
72 m_nodes = MachineType_base_number(MachineType_NUM);

--- 291 unchanged lines hidden ---