Last change
on this file since 330 was 316, checked in by Tim Baarslag, 5 years ago |
new packages complete
|
File size:
538 bytes
|
Rev | Line | |
---|
[316] | 1 | package bargainingchips.players;
|
---|
[315] | 2 |
|
---|
[316] | 3 | import bargainingchips.utilityfunctions.UtilityFunction;
|
---|
[315] | 4 |
|
---|
| 5 | /**
|
---|
| 6 | * A message from the Coordinator to the buying subnegotiators; specifying e.g. their utility function.
|
---|
| 7 | *
|
---|
| 8 | * Should be immutable.
|
---|
| 9 | */
|
---|
| 10 | public 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.