-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutingpolicy.h
More file actions
37 lines (30 loc) · 817 Bytes
/
routingpolicy.h
File metadata and controls
37 lines (30 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* routingpolicy.h
* PhoenixSim
*
* Created by Johnnie Chan on 6/23/11.
* Copyright 2011 Johnnie Chan. All rights reserved.
*
*/
#ifndef __ROUTINGPOLICY_H__
#define __ROUTINGPOLICY_H__
#include <string>
#include <vector>
#include "electronicmessage.h"
namespace PhoenixSim
{
class RoutingParameters
{
public:
int routerId;
};
class RoutingPolicy
{
public:
virtual void SetRoutingParameters(RoutingParameters *p_parameters) = 0;
virtual std::pair<int, int> Route(ElectronicMessage* currentMessage, int inputPort, int inputVirtualChannel, const std::vector<int> &routerCredits) = 0;
//virtual bool CheckCredits(ElectronicMessage* currentMessage, int inputPort, int outputPort, int inputVirtualChannel, int outputVirtualChannel);
private:
};
}
#endif // __ROUTINGPOLICY_H__