source: xssim/src/gridsim/gssim/resource/ComputingResource.java @ 104

Revision 104, 1.2 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package gridsim.gssim.resource;
2
3
4import eduni.simjava.Sim_event;
5import schedframe.resources.ResourceProvider;
6import gridsim.ResourceCalendar;
7import gridsim.ResourceCharacteristics;
8import gridsim.gssim.policy.AllocationPolicy;
9import gridsim.net.Link;
10
11/**
12 *
13 * @author Marcin Krystek
14 *
15 */
16public 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}
Note: See TracBrowser for help on using the repository browser.