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:
553 bytes
|
Line | |
---|
1 | package bargainingchips.messaging.coordination;
|
---|
2 |
|
---|
3 | import bargainingchips.utilityfunctions.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 | */
|
---|
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.