Network.hh (11064:386a5200e298) Network.hh (11113:5a2e1b1b5c43)
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;

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

67 virtual void init();
68
69 static uint32_t getNumberOfVirtualNetworks() { return m_virtual_networks; }
70 int getNumNodes() const { return m_nodes; }
71
72 static uint32_t MessageSizeType_to_int(MessageSizeType size_type);
73
74 // returns the queue requested for the given component
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;

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

67 virtual void init();
68
69 static uint32_t getNumberOfVirtualNetworks() { return m_virtual_networks; }
70 int getNumNodes() const { return m_nodes; }
71
72 static uint32_t MessageSizeType_to_int(MessageSizeType size_type);
73
74 // returns the queue requested for the given component
75 virtual void setToNetQueue(NodeID id, bool ordered, int netNumber,
76 std::string vnet_type, MessageBuffer *b) = 0;
75 void setToNetQueue(NodeID id, bool ordered, int netNumber,
76 std::string vnet_type, MessageBuffer *b);
77 virtual void setFromNetQueue(NodeID id, bool ordered, int netNumber,
77 virtual void setFromNetQueue(NodeID id, bool ordered, int netNumber,
78 std::string vnet_type, MessageBuffer *b) = 0;
78 std::string vnet_type, MessageBuffer *b);
79
79
80 virtual void checkNetworkAllocation(NodeID id, bool ordered,
81 int network_num, std::string vnet_type);
82
80 virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
81 LinkDirection direction,
82 const NetDest& routing_table_entry) = 0;
83 virtual void makeInLink(NodeID src, SwitchID dest, BasicLink* link,
84 LinkDirection direction,
85 const NetDest& routing_table_entry) = 0;
86 virtual void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
87 LinkDirection direction,

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

102
103 protected:
104 // Private copy constructor and assignment operator
105 Network(const Network& obj);
106 Network& operator=(const Network& obj);
107
108 uint32_t m_nodes;
109 static uint32_t m_virtual_networks;
83 virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
84 LinkDirection direction,
85 const NetDest& routing_table_entry) = 0;
86 virtual void makeInLink(NodeID src, SwitchID dest, BasicLink* link,
87 LinkDirection direction,
88 const NetDest& routing_table_entry) = 0;
89 virtual void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
90 LinkDirection direction,

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

105
106 protected:
107 // Private copy constructor and assignment operator
108 Network(const Network& obj);
109 Network& operator=(const Network& obj);
110
111 uint32_t m_nodes;
112 static uint32_t m_virtual_networks;
113 std::vector<std::string> m_vnet_type_names;
110 Topology* m_topology_ptr;
111 static uint32_t m_control_msg_size;
112 static uint32_t m_data_msg_size;
113
114 // vector of queues from the components
115 std::vector<std::vector<MessageBuffer*> > m_toNetQueues;
116 std::vector<std::vector<MessageBuffer*> > m_fromNetQueues;
117 std::vector<bool> m_ordered;

--- 30 unchanged lines hidden ---
114 Topology* m_topology_ptr;
115 static uint32_t m_control_msg_size;
116 static uint32_t m_data_msg_size;
117
118 // vector of queues from the components
119 std::vector<std::vector<MessageBuffer*> > m_toNetQueues;
120 std::vector<std::vector<MessageBuffer*> > m_fromNetQueues;
121 std::vector<bool> m_ordered;

--- 30 unchanged lines hidden ---