public class IAGOBuildingBehavior extends IAGOCoreBehavior implements BehaviorPolicy
| Constructor and Description |
|---|
IAGOBuildingBehavior() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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 setUtils(AgentUtilsExtension utils)
IAGOCoreBehaviorsetUtils in class IAGOCoreBehaviorutils - the utils to addprotected 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 Offer getFinalOffer(History history)
IAGOCoreBehaviorgetFinalOffer 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 getFirstOffer(History history)
IAGOCoreBehaviorgetFirstOffer in class IAGOCoreBehaviorhistory - the history to useprotected int getAcceptMargin()
IAGOCoreBehaviorgetAcceptMargin in class IAGOCoreBehaviorprotected Offer getRejectOfferFollowup(History history)
IAGOCoreBehaviorgetRejectOfferFollowup in class IAGOCoreBehaviorhistory - the history to useprotected void updateAdverseEvents(int change)
IAGOCoreBehaviorupdateAdverseEvents in class IAGOCoreBehaviorchange - the amount to change by