EMMA Coverage Report (generated Tue May 01 18:46:53 CEST 2007)
[all classes][dk.deepthought.sidious.explanation]

COVERAGE SUMMARY FOR SOURCE FILE [Explanation.java]

nameclass, %method, %block, %line, %
Explanation.java100% (1/1)67%  (2/3)81%  (25/31)80%  (4/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Explanation100% (1/1)67%  (2/3)81%  (25/31)80%  (4/5)
getEntries (): Collection 0%   (0/1)0%   (0/6)0%   (0/1)
Explanation (Collection): void 100% (1/1)100% (9/9)100% (3/3)
toString (): String 100% (1/1)100% (16/16)100% (1/1)

1package dk.deepthought.sidious.explanation;
2 
3import java.util.ArrayList;
4import java.util.Collection;
5 
6 
7import net.jcip.annotations.Immutable;
8 
9/**
10 * Value object for abstracting explanations from the pathfinding algorithm.
11 * 
12 * @author Deepthought
13 * 
14 */
15@Immutable
16public class Explanation {
17 
18        /**
19         * The entries of this.
20         */
21        private final Collection<ExplanationEntry> entries;
22 
23        /**
24         * Constructor.
25         * 
26         * @param entries
27         *            the entries
28         */
29        public Explanation(final Collection<ExplanationEntry> entries) {
30                this.entries = new ArrayList<ExplanationEntry>(entries);
31        }
32 
33        /**
34         * Gets a defensive copy of the entries of this.
35         * 
36         * @return the entries
37         */
38        public Collection<ExplanationEntry> getEntries() {
39                return new ArrayList<ExplanationEntry>(entries);
40        }
41 
42        /*
43         * (non-Javadoc)
44         * 
45         * @see java.lang.Object#toString()
46         */
47        @Override
48        public String toString() {
49                return getClass().getSimpleName() + "[entries=" + entries + "]";
50        }
51}

[all classes][dk.deepthought.sidious.explanation]
EMMA 2.0.5312 (C) Vladimir Roubtsov