1 | package gridsim.gssim.resource; |
---|
2 | |
---|
3 | |
---|
4 | import eduni.simjava.Sim_event; |
---|
5 | import schedframe.resources.ResourceProvider; |
---|
6 | import gridsim.ResourceCalendar; |
---|
7 | import gridsim.ResourceCharacteristics; |
---|
8 | import gridsim.gssim.policy.AllocationPolicy; |
---|
9 | import gridsim.net.Link; |
---|
10 | |
---|
11 | /** |
---|
12 | * |
---|
13 | * @author Marcin Krystek |
---|
14 | * |
---|
15 | */ |
---|
16 | public class ComputingResource extends AbstractComputingResource { |
---|
17 | |
---|
18 | protected AllocationPolicy policy; |
---|
19 | |
---|
20 | public ComputingResource(ResourceProvider provider, double baud_rate, |
---|
21 | ResourceCharacteristics resource, ResourceCalendar calendar, |
---|
22 | AllocationPolicy policy) throws Exception{ |
---|
23 | super(provider, baud_rate, resource, calendar, policy); |
---|
24 | this.policy = policy; |
---|
25 | } |
---|
26 | |
---|
27 | public ComputingResource(ResourceProvider provider, Link link, |
---|
28 | ResourceCharacteristics resource, ResourceCalendar calendar, |
---|
29 | AllocationPolicy policy) throws Exception{ |
---|
30 | super(provider, link, resource, calendar, policy); |
---|
31 | this.policy = policy; |
---|
32 | } |
---|
33 | |
---|
34 | public AllocationPolicy getAllocationPolicy() { |
---|
35 | return this.policy; |
---|
36 | } |
---|
37 | |
---|
38 | @Override |
---|
39 | public void processRequest(Sim_event ev) { |
---|
40 | // TODO Auto-generated method stub |
---|
41 | |
---|
42 | } |
---|
43 | |
---|
44 | @Override |
---|
45 | public void send(int entityID, double delay, int gridSimTag, Object data) { |
---|
46 | // TODO Auto-generated method stub |
---|
47 | |
---|
48 | } |
---|
49 | |
---|
50 | |
---|
51 | } |
---|