package negotiator.parties; import java.util.List; import genius.core.AgentID; import genius.core.Bid; import genius.core.actions.Accept; import genius.core.actions.Action; import genius.core.actions.Offer; import genius.core.actions.OfferForVoting; import genius.core.actions.Reject; import genius.core.parties.AbstractNegotiationParty; /** * Basic voting implementation: this agent accepts and rejects offers with a 50% * chance. *
* The class was created as part of a series of agents used to understand the * api better * * @author David Festen */ public class RandomFiftyFiftyNegotiationParty extends AbstractNegotiationParty { private Bid lastBid; /** * If placing offers: do random offer if voting: accept/reject with a 50% * chance on both * * @param possibleActions * List of all actions possible. * @return The chosen action */ @Override public Action chooseAction(List