1 | package de.uka.ipd.sdq.probespec.framework.probes.example; |
2 | |
3 | /** |
4 | * Represents an abstract active resource for demonstration purposes. |
5 | * <p> |
6 | * The state of a concrete example active resource can be manually controlled. |
7 | * |
8 | * @author pmerkle |
9 | * |
10 | */ |
11 | public abstract class ASimpleActiveResource { |
12 | |
13 | /** Amount of jobs */ |
14 | private int jobs; |
15 | |
16 | /** |
17 | * Returns the amount of currently assigned jobs. |
18 | * |
19 | * @return the currently assigned job count |
20 | */ |
21 | public int getJobs() { |
22 | return jobs; |
23 | } |
24 | |
25 | /** |
26 | * Sets the amount of currently assigned jobs. |
27 | * |
28 | * @param jobs |
29 | * the job count to be assigned |
30 | */ |
31 | public void setJobs(int jobs) { |
32 | this.jobs = jobs; |
33 | } |
34 | |
35 | } |