File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/main/java/adaa/analytics/rules/logic/representation Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ codeQuality {
27
27
}
28
28
29
29
sourceCompatibility = 1.8
30
- version = ' 1.7.4 '
30
+ version = ' 1.7.5 '
31
31
32
32
33
33
jar {
Original file line number Diff line number Diff line change @@ -138,13 +138,17 @@ public class Knowledge implements Serializable {
138
138
139
139
/** Gets {@link #preferredConditionsPerRule}. */
140
140
public int getPreferredConditionsPerRule () { return preferredConditionsPerRule ; }
141
- /** Sets {@link #preferredConditionsPerRule}. */
142
- public void setPreferredConditionsPerRule (int preferredConditionsPerRule ) { this .preferredConditionsPerRule = preferredConditionsPerRule ; }
141
+ /** Sets {@link #preferredConditionsPerRule}. The value of 0 is translated to the infinity.*/
142
+ public void setPreferredConditionsPerRule (int v ) {
143
+ this .preferredConditionsPerRule = (v == 0 ) ? Integer .MAX_VALUE : v ;
144
+ }
143
145
144
146
/** Gets {@link #preferredAttributesPerRule}. */
145
147
public int getPreferredAttributesPerRule () { return preferredAttributesPerRule ; }
146
- /** Sets {@link #preferredAttributesPerRule}. */
147
- public void setPreferredAttributesPerRule (int preferredAttributesPerRule ) { this .preferredAttributesPerRule = preferredAttributesPerRule ; }
148
+ /** Sets {@link #preferredAttributesPerRule}. The value of 0 is translated to the infinity.*/
149
+ public void setPreferredAttributesPerRule (int v ) {
150
+ this .preferredAttributesPerRule = (v == 0 ) ? Integer .MAX_VALUE : v ;
151
+ }
148
152
149
153
/**
150
154
* Initializes knowledge from collections of initial rules, preferred/forbidden conditions and attributes.
You can’t perform that action at this time.
0 commit comments