source: src/main/java/bargainingchips/players/CoordinationMessage.java@ 338

Last change on this file since 338 was 316, checked in by Tim Baarslag, 5 years ago

new packages complete

File size: 538 bytes
Line 
1package bargainingchips.players;
2
3import bargainingchips.utilityfunctions.UtilityFunction;
4
5/**
6 * A message from the Coordinator to the buying subnegotiators; specifying e.g. their utility function.
7 *
8 * Should be immutable.
9 */
10public class CoordinationMessage
11{
12 private final UtilityFunction f;
13
14 public CoordinationMessage(UtilityFunction f)
15 {
16 this.f = f;
17 }
18
19 @Override
20 public String toString()
21 {
22 return f.toString();
23 }
24
25 public UtilityFunction getUtilityFunction()
26 {
27 return f;
28 }
29}
Note: See TracBrowser for help on using the repository browser.