1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.qedeq.kernel.bo.logic.model; |
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
@author |
22 |
|
|
|
|
| 41.2% |
Uncovered Elements: 10 (17) |
Complexity: 7 |
Complexity Density: 0.7 |
|
23 |
|
public abstract class Function { |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
private final int minimum; |
28 |
|
|
29 |
|
|
30 |
|
private final int maximum; |
31 |
|
|
32 |
|
|
33 |
|
private final String display; |
34 |
|
|
35 |
|
|
36 |
|
private final String description; |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
0
|
static Function createConstant(final Entity entity) {... |
39 |
0
|
return new Function(0, 90, "->" + entity, "contant " + entity.getDescription()) { |
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
348
|
public Entity map(final Entity[] entities) {... |
41 |
348
|
return entity; |
42 |
|
} |
43 |
|
}; |
44 |
|
} |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
@param |
50 |
|
@param |
51 |
|
@param |
52 |
|
@param |
53 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
54 |
826
|
public Function(final int minimum, final int maximum, final String display,... |
55 |
|
final String description) { |
56 |
826
|
this.minimum = minimum; |
57 |
826
|
this.maximum = maximum; |
58 |
826
|
this.display = display; |
59 |
826
|
this.description = description; |
60 |
|
} |
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
@return |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0
|
public int getMinimumArgumentNumber() {... |
68 |
0
|
return minimum; |
69 |
|
} |
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
@return |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0
|
public int getMaximumArgumentNumber() {... |
77 |
0
|
return maximum; |
78 |
|
} |
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
@return |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
0
|
public String toString() {... |
86 |
0
|
return display; |
87 |
|
} |
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
@return |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0
|
public String getDescription() {... |
95 |
0
|
return description; |
96 |
|
} |
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
@param |
102 |
|
@return |
103 |
|
|
104 |
|
public abstract Entity map(Entity[] entities); |
105 |
|
|
106 |
|
} |