| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.qedeq.kernel.dto.module; |
| 17 |
|
|
| 18 |
|
import org.qedeq.base.utility.EqualsUtility; |
| 19 |
|
import org.qedeq.kernel.base.module.Axiom; |
| 20 |
|
import org.qedeq.kernel.base.module.FunctionDefinition; |
| 21 |
|
import org.qedeq.kernel.base.module.LatexList; |
| 22 |
|
import org.qedeq.kernel.base.module.PredicateDefinition; |
| 23 |
|
import org.qedeq.kernel.base.module.Proposition; |
| 24 |
|
import org.qedeq.kernel.base.module.Rule; |
| 25 |
|
import org.qedeq.kernel.base.module.Term; |
| 26 |
|
import org.qedeq.kernel.base.module.VariableList; |
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
@version |
| 34 |
|
@author |
| 35 |
|
|
|
|
|
| 87.7% |
Uncovered Elements: 8 (65) |
Complexity: 22 |
Complexity Density: 0.73 |
|
| 36 |
|
public class FunctionDefinitionVo implements FunctionDefinition { |
| 37 |
|
|
| 38 |
|
|
| 39 |
|
private String argumentNumber; |
| 40 |
|
|
| 41 |
|
|
| 42 |
|
private String name; |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
private String latexPattern; |
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
private VariableList variableList; |
| 52 |
|
|
| 53 |
|
|
| 54 |
|
private Term term; |
| 55 |
|
|
| 56 |
|
|
| 57 |
|
private LatexList description; |
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 62 |
311
|
public FunctionDefinitionVo() {... |
| 63 |
|
|
| 64 |
|
} |
| 65 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 66 |
0
|
public Axiom getAxiom() {... |
| 67 |
0
|
return null; |
| 68 |
|
} |
| 69 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 70 |
0
|
public PredicateDefinition getPredicateDefinition() {... |
| 71 |
0
|
return null; |
| 72 |
|
} |
| 73 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 74 |
2020
|
public FunctionDefinition getFunctionDefinition() {... |
| 75 |
2020
|
return this; |
| 76 |
|
} |
| 77 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 78 |
0
|
public Proposition getProposition() {... |
| 79 |
0
|
return null; |
| 80 |
|
} |
| 81 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 82 |
0
|
public Rule getRule() {... |
| 83 |
0
|
return null; |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
|
| 87 |
|
|
| 88 |
|
|
| 89 |
|
@param |
| 90 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 91 |
268
|
public final void setArgumentNumber(final String argumentNumber) {... |
| 92 |
268
|
this.argumentNumber = argumentNumber; |
| 93 |
|
} |
| 94 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 95 |
932
|
public final String getArgumentNumber() {... |
| 96 |
932
|
return argumentNumber; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
|
| 100 |
|
@link |
| 101 |
|
|
| 102 |
|
|
| 103 |
|
@param |
| 104 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 105 |
268
|
public void setName(final String name) {... |
| 106 |
268
|
this.name = name; |
| 107 |
|
} |
| 108 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 109 |
880
|
public String getName() {... |
| 110 |
880
|
return name; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
@param |
| 119 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 120 |
268
|
public final void setLatexPattern(final String latexPattern) {... |
| 121 |
268
|
this.latexPattern = latexPattern; |
| 122 |
|
} |
| 123 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 124 |
1696
|
public final String getLatexPattern() {... |
| 125 |
1696
|
return latexPattern; |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
@param |
| 133 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 134 |
223
|
public final void setVariableList(final VariableListVo variables) {... |
| 135 |
223
|
this.variableList = variables; |
| 136 |
|
} |
| 137 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 138 |
5315
|
public final VariableList getVariableList() {... |
| 139 |
5315
|
return variableList; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
| 145 |
|
@param |
| 146 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 147 |
268
|
public final void setTerm(final TermVo term) {... |
| 148 |
268
|
this.term = term; |
| 149 |
|
} |
| 150 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 151 |
6582
|
public final Term getTerm() {... |
| 152 |
6582
|
return term; |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
@param |
| 159 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 160 |
16
|
public final void setDescription(final LatexListVo description) {... |
| 161 |
16
|
this.description = description; |
| 162 |
|
} |
| 163 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 164 |
971
|
public LatexList getDescription() {... |
| 165 |
971
|
return description; |
| 166 |
|
} |
| 167 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 168 |
81
|
public boolean equals(final Object obj) {... |
| 169 |
81
|
if (!(obj instanceof FunctionDefinition)) { |
| 170 |
8
|
return false; |
| 171 |
|
} |
| 172 |
73
|
final FunctionDefinition other = (FunctionDefinition) obj; |
| 173 |
73
|
return EqualsUtility.equals(getArgumentNumber(), other.getArgumentNumber()) |
| 174 |
|
&& EqualsUtility.equals(getName(), other.getName()) |
| 175 |
|
&& EqualsUtility.equals(getLatexPattern(), other.getLatexPattern()) |
| 176 |
|
&& EqualsUtility.equals(getVariableList(), other.getVariableList()) |
| 177 |
|
&& EqualsUtility.equals(getTerm(), other.getTerm()) |
| 178 |
|
&& EqualsUtility.equals(getDescription(), other.getDescription()); |
| 179 |
|
} |
| 180 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 1 |
Complexity Density: 1 |
|
| 181 |
92
|
public int hashCode() {... |
| 182 |
92
|
return (getArgumentNumber() != null ? getArgumentNumber().hashCode() : 0) |
| 183 |
92
|
^ (getName() != null ? 1 ^ getName().hashCode() : 0) |
| 184 |
92
|
^ (getLatexPattern() != null ? 2 ^ getLatexPattern().hashCode() : 0) |
| 185 |
92
|
^ (getVariableList() != null ? 3 ^ getVariableList().hashCode() : 0) |
| 186 |
92
|
^ (getTerm() != null ? 4 ^ getTerm().hashCode() : 0) |
| 187 |
92
|
^ (getDescription() != null ? 5 ^ getDescription().hashCode() : 0); |
| 188 |
|
} |
| 189 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 1 |
Complexity Density: 0.12 |
|
| 190 |
58
|
public String toString() {... |
| 191 |
58
|
final StringBuffer buffer = new StringBuffer(); |
| 192 |
58
|
buffer.append("Function Definition arguments=" + getArgumentNumber() + "\n"); |
| 193 |
58
|
buffer.append("\tname=" + getName() + "\n"); |
| 194 |
58
|
buffer.append("\tpattern=" + getLatexPattern() + "\n"); |
| 195 |
58
|
buffer.append("\tvariables=" + getVariableList() + "\n"); |
| 196 |
58
|
buffer.append("\tformula/term:\n" + getTerm() + "\n"); |
| 197 |
58
|
buffer.append("\tdescription:\n" + getDescription() + "\n"); |
| 198 |
58
|
return buffer.toString(); |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
} |