source: src/test/java/agents/nastyagent/NullBid.java@ 126

Last change on this file since 126 was 1, checked in by Wouter Pasman, 6 years ago

Initial import : Genius 9.0.0

File size: 596 bytes
Line 
1package agents.nastyagent;
2
3import java.util.List;
4
5import genius.core.AgentID;
6import genius.core.actions.Action;
7import 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 */
17public 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.