package agents.nastyagent; import java.util.List; import genius.core.AgentID; import genius.core.actions.Action; import genius.core.actions.Offer; /** * returns a deliberately miscrafted bid that contains an integer value where a * discrete is expected, or the other way round. The idea is that the opponent * may call getUtility on it and then cause a class cast exception. * * @author W.Pasman 2nov15 * */ public class NullBid extends NastyAgent { @Override public Action chooseAction(List> possibleActions) { return new Offer((AgentID) null, null); } }