Network.hh (8260:f113f73dd494) Network.hh (8308:79cf09f5a234)
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;

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

66
67 virtual void init();
68
69 int getNumberOfVirtualNetworks() { return m_virtual_networks; }
70 int MessageSizeType_to_int(MessageSizeType size_type);
71
72 // returns the queue requested for the given component
73 virtual MessageBuffer* getToNetQueue(NodeID id, bool ordered,
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;

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

66
67 virtual void init();
68
69 int getNumberOfVirtualNetworks() { return m_virtual_networks; }
70 int MessageSizeType_to_int(MessageSizeType size_type);
71
72 // returns the queue requested for the given component
73 virtual MessageBuffer* getToNetQueue(NodeID id, bool ordered,
74 int netNumber) = 0;
74 int netNumber, std::string vnet_type) = 0;
75 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered,
75 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered,
76 int netNumber) = 0;
76 int netNumber, std::string vnet_type) = 0;
77 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
78 virtual int getNumNodes() {return 1;}
79
80 virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
81 LinkDirection direction,
82 const NetDest& routing_table_entry,
83 bool isReconfiguration) = 0;
84 virtual void makeInLink(NodeID src, SwitchID dest, BasicLink* link,

--- 38 unchanged lines hidden ---
77 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
78 virtual int getNumNodes() {return 1;}
79
80 virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
81 LinkDirection direction,
82 const NetDest& routing_table_entry,
83 bool isReconfiguration) = 0;
84 virtual void makeInLink(NodeID src, SwitchID dest, BasicLink* link,

--- 38 unchanged lines hidden ---