Last change
on this file since 341 was 340, checked in by Tim Baarslag, 5 years ago |
Change BilateralProtocol loop to avoid busy wait; note that this fixes only a part of the busy wait problem.
Package structure now in line with latest Acumex discussions.
Pinpointed error avoidance in Agent.
|
File size:
537 bytes
|
Line | |
---|
1 | package bargainingchips.messaging.status;
|
---|
2 |
|
---|
3 | import bargainingchips.Bundle;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * A message from the buying agents to the Coordinator
|
---|
7 | * Should be immutable
|
---|
8 | */
|
---|
9 | public class StatusMessage
|
---|
10 | {
|
---|
11 | private final StatusMessageType type;
|
---|
12 | private final Bundle agreement;
|
---|
13 |
|
---|
14 | public StatusMessage(Bundle agreement, StatusMessageType type)
|
---|
15 | {
|
---|
16 | this.agreement = agreement;
|
---|
17 | this.type = type;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public Bundle getAgreement()
|
---|
21 | {
|
---|
22 | return agreement;
|
---|
23 | }
|
---|
24 |
|
---|
25 | public StatusMessageType getType()
|
---|
26 | {
|
---|
27 | return type;
|
---|
28 | }
|
---|
29 |
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.