public class IAGOCompetitiveBehavior extends IAGOCoreBehavior implements BehaviorPolicy
| Constructor and Description |
|---|
IAGOCompetitiveBehavior() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptOffer(Offer o)
Determines whether the agent should accept an offer based on the joint value using perceived user preferences
|
protected int |
getAcceptMargin()
Gets the amount of points that the agent requires to be ahead of its opponent before accepting.
|
protected Offer |
getAcceptOfferFollowup(History history)
Gets the offer that comes after the agent's adversary accepts an offer.
|
protected Offer |
getAllocated()
Retrieves the internal representation of what offers are considered "firm" currently.
|
protected Offer |
getConceded()
Retrieves the internal representation of what the agent is maintaining as its heuristic currently.
|
protected Offer |
getFinalOffer(History history)
Gets the offer that comes when you're nearly out of time.
|
protected Offer |
getFirstOffer(History history)
Gets that is proposed immediately once the game starts.
|
Offer |
getNextOffer(History history)
Generates the next offer the VH will make, given a history.
|
protected Offer |
getRejectOfferFollowup(History history)
Gets that is proposed after the agent's adversary rejects an offer.
|
protected Offer |
getTimingOffer(History history)
Gets the offer that comes when you've been idle.
|
protected void |
resetConcessionCurve()
When the opponent sends a new BATNA value, the VH starts a new concession curve from the "top" of the graph.
|
protected void |
setUtils(AgentUtilsExtension utils)
Helper for adding an AgentUtilsExtension.
|
protected void |
updateAdverseEvents(int change)
Allows you to change the adverse Events counter, which weakens the agent's margin
|
protected void |
updateAllocated(Offer update)
Update the internal representation of what offers are considered "firm" currently.
|
getAgentBeliefprotected void updateAllocated(Offer update)
IAGOCoreBehaviorupdateAllocated in class IAGOCoreBehaviorupdate - the total summed offer to saveprotected Offer getAllocated()
IAGOCoreBehaviorgetAllocated in class IAGOCoreBehaviorprotected Offer getConceded()
IAGOCoreBehaviorgetConceded in class IAGOCoreBehaviorprotected void setUtils(AgentUtilsExtension utils)
IAGOCoreBehaviorsetUtils in class IAGOCoreBehaviorutils - the utils to addprotected Offer getFirstOffer(History history)
IAGOCoreBehaviorgetFirstOffer in class IAGOCoreBehaviorhistory - the history to usepublic Offer getNextOffer(History history)
BehaviorPolicygetNextOffer in interface BehaviorPolicyprotected Offer getTimingOffer(History history)
IAGOCoreBehaviorgetTimingOffer in class IAGOCoreBehaviorhistory - the history to useprotected Offer getAcceptOfferFollowup(History history)
IAGOCoreBehaviorgetAcceptOfferFollowup in class IAGOCoreBehaviorhistory - the history to useprotected Offer getRejectOfferFollowup(History history)
IAGOCoreBehaviorgetRejectOfferFollowup in class IAGOCoreBehaviorhistory - the history to useprotected Offer getFinalOffer(History history)
IAGOCoreBehaviorgetFinalOffer in class IAGOCoreBehaviorhistory - the history to useprotected int getAcceptMargin()
IAGOCoreBehaviorgetAcceptMargin in class IAGOCoreBehaviorprotected boolean acceptOffer(Offer o)
o - an offer to evaluateprotected void resetConcessionCurve()
protected void updateAdverseEvents(int change)
IAGOCoreBehaviorupdateAdverseEvents in class IAGOCoreBehaviorchange - the amount to change by