Last change
on this file was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
612 bytes
|
Line | |
---|
1 | package negotiator.boaframework.offeringstrategy.anac2010.IAMhaggler2010;
|
---|
2 |
|
---|
3 | import java.util.ArrayList;
|
---|
4 |
|
---|
5 | public class ContinuousEvaluationFunction<T extends ContinuousEvaluationSection> {
|
---|
6 |
|
---|
7 | protected double weight;
|
---|
8 | protected ArrayList<T> sections;
|
---|
9 |
|
---|
10 | public ContinuousEvaluationFunction(ArrayList<T> sections, double weight) {
|
---|
11 | this.sections = sections;
|
---|
12 | this.weight = weight;
|
---|
13 | }
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * @return
|
---|
17 | */
|
---|
18 | public int getSectionCount() {
|
---|
19 | return sections.size();
|
---|
20 | }
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * @param sectionNo
|
---|
24 | * @return
|
---|
25 | */
|
---|
26 | public ContinuousEvaluationSection getSection(int sectionNo) {
|
---|
27 | return sections.get(sectionNo);
|
---|
28 | }
|
---|
29 |
|
---|
30 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.