Last change
on this file since 263 was 263, checked in by Faria Nassiri Mofakham, 5 years ago |
Offer class updated; Message enum created; parapoloid tried in GUI; some small changes in some previous classes (Bundle, stack,.. ); UF_Silly renamed to UF_Crazy; started to add role to UF classes...
|
File size:
535 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * UtilityFunctionSilly class
|
---|
3 | */
|
---|
4 | package onetomany.bargainingchipsgame.players.utilityfunction;
|
---|
5 |
|
---|
6 | import onetomany.bargainingchipsgame.Bundle;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * This silly utility function evaluates any bundle as 0.0
|
---|
10 | *
|
---|
11 | *
|
---|
12 | * @author Faria Nassiri-Mofakham
|
---|
13 | *
|
---|
14 | */
|
---|
15 | public class UF_Crazy implements Utility_Function {
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public Double getUtility(Bundle b) {
|
---|
19 | // TODO Auto-generated method stub
|
---|
20 | return 0.0;
|
---|
21 | }
|
---|
22 |
|
---|
23 | @Override
|
---|
24 | public String toString()
|
---|
25 | {
|
---|
26 | return this.getClass().getSimpleName();
|
---|
27 | }
|
---|
28 |
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.