EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
---|
[all classes][de.uka.ipd.sdq.scheduler.loaddistribution.constraints] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
MultipleResourceInstancesConstraint.java | 0% (0/1) | 0% (0/3) | 0% (0/14) | 0% (0/5) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class MultipleResourceInstancesConstraint | 0% (0/1) | 0% (0/3) | 0% (0/14) | 0% (0/5) |
MultipleResourceInstancesConstraint (Collection): void | 0% (0/1) | 0% (0/6) | 0% (0/3) | |
check (IResourceInstance): boolean | 0% (0/1) | 0% (0/5) | 0% (0/1) | |
getInstances (): Collection | 0% (0/1) | 0% (0/3) | 0% (0/1) |
1 | package de.uka.ipd.sdq.scheduler.loaddistribution.constraints; |
2 | |
3 | import java.util.Collection; |
4 | |
5 | import de.uka.ipd.sdq.scheduler.loaddistribution.IResourceInstanceConstraint; |
6 | import de.uka.ipd.sdq.scheduler.resources.IResourceInstance; |
7 | |
8 | public class MultipleResourceInstancesConstraint implements |
9 | IResourceInstanceConstraint { |
10 | |
11 | private Collection<IResourceInstance> instance_list; |
12 | |
13 | public MultipleResourceInstancesConstraint( |
14 | Collection<IResourceInstance> instance_list) { |
15 | this.instance_list = instance_list; |
16 | } |
17 | |
18 | public Collection<IResourceInstance> getInstances() { |
19 | return instance_list; |
20 | } |
21 | |
22 | public boolean check(IResourceInstance instance) { |
23 | return instance_list.contains(instance); |
24 | } |
25 | } |
[all classes][de.uka.ipd.sdq.scheduler.loaddistribution.constraints] |
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov |