Last change
on this file since 39 was 39, checked in by bart, 3 years ago |
Geniusweb 2.0.3. MOPAC protocol translated to Python. Small fixes.
|
File size:
661 bytes
|
Rev | Line | |
---|
[39] | 1 | package geniusweb.exampleparties.linear;
|
---|
| 2 |
|
---|
| 3 | import geniusweb.exampleparties.timedependentparty.TimeDependentParty;
|
---|
| 4 | import tudelft.utilities.logging.Reporter;
|
---|
| 5 |
|
---|
| 6 | /**
|
---|
| 7 | * A simple party that places random bids and accepts when it receives an offer
|
---|
| 8 | * with sufficient utility.
|
---|
| 9 | */
|
---|
| 10 | public class Linear extends TimeDependentParty {
|
---|
| 11 |
|
---|
| 12 | public Linear() {
|
---|
| 13 | super();
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | public Linear(Reporter reporter) {
|
---|
| 17 | super(reporter);
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | @Override
|
---|
| 21 | public String getDescription() {
|
---|
| 22 | return "Linear: concedes linearly with time. "
|
---|
| 23 | + "Parameters minPower (default 1) and maxPower (default infinity) are used when voting";
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | @Override
|
---|
| 27 | public double getE() {
|
---|
| 28 | return 1;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.