Last change
on this file since 162 was 1, checked in by Wouter Pasman, 7 years ago |
Initial import : Genius 9.0.0
|
File size:
596 bytes
|
Rev | Line | |
---|
[1] | 1 | package agents.nastyagent;
|
---|
| 2 |
|
---|
| 3 | import java.util.List;
|
---|
| 4 |
|
---|
| 5 | import genius.core.AgentID;
|
---|
| 6 | import genius.core.actions.Action;
|
---|
| 7 | import genius.core.actions.Offer;
|
---|
| 8 |
|
---|
| 9 | /**
|
---|
| 10 | * returns a deliberately miscrafted bid that contains an integer value where a
|
---|
| 11 | * discrete is expected, or the other way round. The idea is that the opponent
|
---|
| 12 | * may call getUtility on it and then cause a class cast exception.
|
---|
| 13 | *
|
---|
| 14 | * @author W.Pasman 2nov15
|
---|
| 15 | *
|
---|
| 16 | */
|
---|
| 17 | public class NullBid extends NastyAgent {
|
---|
| 18 | @Override
|
---|
| 19 | public Action chooseAction(List<Class<? extends Action>> possibleActions) {
|
---|
| 20 | return new Offer((AgentID) null, null);
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.