Skip to content

Package: SoftwareWrapper

SoftwareWrapper

nameinstructionbranchcomplexitylinemethod
SoftwareWrapper(RouterSoftware)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
accept(TreeElementVisitor)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getConfiguration()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
toString()
M: 17 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package gui.wrapperobjects;
2:
3: import model.RouterSoftware;
4:
5: /**
6: * Wrapper class for RouterSoftware.
7: */
8: public class SoftwareWrapper implements TreeElement {
9:         /**
10:          * The RouterSoftware to wrap.
11:          */
12:         private final RouterSoftware rs;
13:
14:         /**
15:          * The SoftwareWrapper constructor.
16:          *
17:          * @param rs
18:          * The RouterSoftware to wrap.
19:          */
20:         public SoftwareWrapper(final RouterSoftware rs) {
21:                 this.rs = rs;
22:         }
23:
24:         /**
25:          * @return the configuration.
26:          */
27:         public RouterSoftware getConfiguration() {
28:                 return this.rs;
29:         }
30:
31:         @Override
32:         public String toString() {
33:                 return this.rs.getVersion() + " [" + this.rs.getPath() + "]";
34:         }
35:
36:         @Override
37:         public void accept(final TreeElementVisitor vis) {
38:                 vis.visit(this);
39:         }
40: }