Last change
on this file was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
362 bytes
|
Rev | Line | |
---|
[1] | 1 | package agents.anac.y2010.Southampton.utils;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | /**
|
---|
| 5 | * @author Colin Williams
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 | public class WeightHypothesis extends Hypothesis {
|
---|
| 9 |
|
---|
| 10 | double weight;
|
---|
| 11 |
|
---|
| 12 | public void setWeight(double weight) {
|
---|
| 13 | this.weight = weight;
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | public double getWeight() {
|
---|
| 17 | return this.weight;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | public String toString() {
|
---|
| 21 | return String.format("%1.2f", this.weight) + ";";
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.