source: src/main/java/genius/core/utility/Constraint.java

Last change on this file was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 496 bytes
Line 
1package genius.core.utility;
2
3import genius.core.Bid;
4
5/**
6 * Specifies an area that has a utility.
7 */
8public class Constraint {
9
10 protected double weight = 1.0;
11
12 // The following method will be overridden by super classes (classes
13 // extending "Constraint" e.g. InclusiveHyperRectangle)
14
15 public double getUtility(Bid bid) {
16 return 0.0;
17 }
18
19 protected double getWeight() {
20 return weight;
21 }
22
23 protected void setWeight(double weight) {
24 this.weight = weight;
25 }
26}
Note: See TracBrowser for help on using the repository browser.