1 | package de.uka.ipd.sdq.simucomframework.resources; |
2 | |
3 | import de.uka.ipd.sdq.scheduler.ISchedulableProcess; |
4 | import de.uka.ipd.sdq.scheduler.SchedulerModel; |
5 | import de.uka.ipd.sdq.scheduler.entities.SchedulerEntity; |
6 | |
7 | public class SimpleWaitingProcess extends SchedulerEntity { |
8 | |
9 | private ISchedulableProcess sched_process; |
10 | private int num_requested; |
11 | |
12 | public SimpleWaitingProcess(SchedulerModel model, ISchedulableProcess sched_process, int num_requested) { |
13 | super(model, "SimpleWaitingProcess"); |
14 | this.sched_process = sched_process; |
15 | this.num_requested = num_requested; |
16 | } |
17 | |
18 | public ISchedulableProcess getProcess() { |
19 | return sched_process; |
20 | } |
21 | |
22 | public int getNumRequested() { |
23 | return num_requested; |
24 | } |
25 | } |