Last change
on this file since 343 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:
436 bytes
|
Line | |
---|
1 | package bargainingchips.actions;
|
---|
2 |
|
---|
3 | import bargainingchips.Bundle;
|
---|
4 | /**
|
---|
5 | * Acknowledges the accept of the opponent (final).
|
---|
6 | */
|
---|
7 | public class FinalAccept extends Offer
|
---|
8 | {
|
---|
9 | public FinalAccept(Offer agreement)
|
---|
10 | {
|
---|
11 | super(agreement.getBundle(), OfferType.FINALACCEPT);
|
---|
12 | }
|
---|
13 |
|
---|
14 | public Bundle getAgreement()
|
---|
15 | {
|
---|
16 | return getBundle();
|
---|
17 | }
|
---|
18 |
|
---|
19 | @Override
|
---|
20 | public String toString()
|
---|
21 | {
|
---|
22 | return "FinalAccept: " + getBundle();
|
---|
23 | }
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.