Last change
on this file was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
890 bytes
|
Rev | Line | |
---|
[1] | 1 | package agents.anac.y2010.Southampton.analysis;
|
---|
| 2 |
|
---|
| 3 | public abstract class ContinuousEvaluationSection {
|
---|
| 4 |
|
---|
| 5 | protected double evalLowerBound;
|
---|
| 6 | protected double evalUpperBound;
|
---|
| 7 | protected double lowerBound;
|
---|
| 8 | protected double upperBound;
|
---|
| 9 |
|
---|
| 10 | public ContinuousEvaluationSection() {
|
---|
| 11 | super();
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | /**
|
---|
| 15 | * @param weight
|
---|
| 16 | * @return
|
---|
| 17 | */
|
---|
| 18 | public abstract double getNormal(double weight);
|
---|
| 19 |
|
---|
| 20 | /**
|
---|
| 21 | * @return
|
---|
| 22 | */
|
---|
| 23 | public double getEvalLowerBound() {
|
---|
| 24 | return this.evalLowerBound;
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | /**
|
---|
| 28 | * @return
|
---|
| 29 | */
|
---|
| 30 | public double getEvalUpperBound() {
|
---|
| 31 | return this.evalUpperBound;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | /**
|
---|
| 35 | * @return
|
---|
| 36 | */
|
---|
| 37 | public double getLowerBound() {
|
---|
| 38 | return this.lowerBound;
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | /**
|
---|
| 42 | * @return
|
---|
| 43 | */
|
---|
| 44 | public double getUpperBound() {
|
---|
| 45 | return this.upperBound;
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | /**
|
---|
| 49 | * @return
|
---|
| 50 | */
|
---|
| 51 | public double getTopPoint() {
|
---|
| 52 | if (this.evalLowerBound < this.evalUpperBound)
|
---|
| 53 | return upperBound;
|
---|
| 54 | else
|
---|
| 55 | return lowerBound;
|
---|
| 56 | }
|
---|
| 57 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.