EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.scheduler.loaddistribution.constraints]

COVERAGE SUMMARY FOR SOURCE FILE [MultipleResourceInstancesConstraint.java]

nameclass, %method, %block, %line, %
MultipleResourceInstancesConstraint.java0%   (0/1)0%   (0/3)0%   (0/14)0%   (0/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MultipleResourceInstancesConstraint0%   (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)

1package de.uka.ipd.sdq.scheduler.loaddistribution.constraints;
2 
3import java.util.Collection;
4 
5import de.uka.ipd.sdq.scheduler.loaddistribution.IResourceInstanceConstraint;
6import de.uka.ipd.sdq.scheduler.resources.IResourceInstance;
7 
8public 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