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.parties.AbstractNegotiationParty; import genius.core.parties.NegotiationInfo; /** * 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 RandomCounterOfferNegotiationParty extends AbstractNegotiationParty { private Bid lastOffer; /** * Initializes a new instance of the * {@link negotiator.parties.RandomCounterOfferNegotiationParty} class. * * @param utilitySpace * The utility space used by this class * @param deadlines * The deadlines for this session * @param timeline * The time line (if time deadline) for this session, can be null * @param randomSeed * The seed that should be used for all randomization (to be * reproducible) */ @Override public void init(NegotiationInfo info) { super.init(info); } /** * 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