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