source: exampleparties/linear/src/main/java/geniusweb/exampleparties/linear/Linear.java@ 26

Last change on this file since 26 was 26, checked in by bart, 4 years ago

Voting requests now contain Offers. Fixed windows whitespace issue. Partiesserver now supports up to 8 parties simultaneously.

File size: 661 bytes
Line 
1package geniusweb.exampleparties.linear;
2
3import geniusweb.exampleparties.timedependentparty.TimeDependentParty;
4import 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 */
10public 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.