Last change
on this file since 52 was 52, checked in by ruud, 14 months ago |
Fixed small issues in domaineditor.
|
File size:
666 bytes
|
Line | |
---|
1 | package geniusweb.exampleparties.boulware;
|
---|
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 Boulware extends TimeDependentParty {
|
---|
11 |
|
---|
12 | public Boulware() {
|
---|
13 | super();
|
---|
14 | }
|
---|
15 |
|
---|
16 | public Boulware(Reporter reporter) {
|
---|
17 | super(reporter);
|
---|
18 | }
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | public String getDescription() {
|
---|
22 | return "Boulware: reluctant to concede. Parameters minPower (default 1) "
|
---|
23 | + "and maxPower (default infinity) are used when voting";
|
---|
24 | }
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public double getE() {
|
---|
28 | return 0.2;
|
---|
29 | }
|
---|
30 |
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.