source: src/main/java/onetomany/bargainingchipsgame/players/CoordinationMessage.java@ 314

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

CoordinationMessage

File size: 573 bytes
Line 
1package onetomany.bargainingchipsgame.players;
2
3import onetomany.bargainingchipsgame.players.utilityfunction.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.