Rev | Line | |
---|
[278] | 1 | package onetomany.bargainingchipsgame.players;
|
---|
[303] | 2 |
|
---|
| 3 | import onetomany.bargainingchipsgame.Bundle;
|
---|
| 4 |
|
---|
[278] | 5 | /**
|
---|
| 6 | * A message from the buying agents to the Coordinator
|
---|
[303] | 7 | * Should be immutable
|
---|
[278] | 8 | */
|
---|
[312] | 9 | public class StatusMessage
|
---|
[278] | 10 | {
|
---|
[313] | 11 | private final StatusMessageType type;
|
---|
[303] | 12 | private final Bundle agreement;
|
---|
| 13 |
|
---|
[313] | 14 | public StatusMessage(Bundle agreement, StatusMessageType type)
|
---|
[303] | 15 | {
|
---|
| 16 | this.agreement = agreement;
|
---|
| 17 | this.type = type;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | public Bundle getAgreement()
|
---|
| 21 | {
|
---|
| 22 | return agreement;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
[313] | 25 | public StatusMessageType getType()
|
---|
[303] | 26 | {
|
---|
| 27 | return type;
|
---|
| 28 | }
|
---|
[278] | 29 |
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.