Last change
on this file since 244 was 243, checked in by Faria Nassiri Mofakham, 5 years ago |
Agent class. Utility_Function interface defined. 8 sample utility functions created and all tested. Now, Bundle has getPrice() and Stack has getColor(). Still, aggregation in Bundle class is without iterators (iterators could not work out yet).
|
File size:
286 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * UtilityFunction interface
|
---|
3 | */
|
---|
4 | package negotiator.onetomany.players;
|
---|
5 |
|
---|
6 | import negotiator.onetomany.domain.Bundle;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * @author Faria Nassiri-Mofakham
|
---|
10 | *
|
---|
11 | */
|
---|
12 | public interface Utility_Function
|
---|
13 | {
|
---|
14 | public Double getUtility(Bundle b);
|
---|
15 | public String toString();
|
---|
16 | }
|
---|
17 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.