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.
|
getAgentBelief
protected void setUtils(AgentUtilsExtension utils)
IAGOCoreBehavior
setUtils
in class IAGOCoreBehavior
utils
- the utils to addprotected void updateAllocated(Offer update)
IAGOCoreBehavior
updateAllocated
in class IAGOCoreBehavior
update
- the total summed offer to saveprotected Offer getAllocated()
IAGOCoreBehavior
getAllocated
in class IAGOCoreBehavior
protected Offer getConceded()
IAGOCoreBehavior
getConceded
in class IAGOCoreBehavior
protected Offer getFinalOffer(History history)
IAGOCoreBehavior
getFinalOffer
in class IAGOCoreBehavior
history
- the history to usepublic Offer getNextOffer(History history)
BehaviorPolicy
getNextOffer
in interface BehaviorPolicy
protected Offer getTimingOffer(History history)
IAGOCoreBehavior
getTimingOffer
in class IAGOCoreBehavior
history
- the history to useprotected Offer getAcceptOfferFollowup(History history)
IAGOCoreBehavior
getAcceptOfferFollowup
in class IAGOCoreBehavior
history
- the history to useprotected Offer getFirstOffer(History history)
IAGOCoreBehavior
getFirstOffer
in class IAGOCoreBehavior
history
- the history to useprotected int getAcceptMargin()
IAGOCoreBehavior
getAcceptMargin
in class IAGOCoreBehavior
protected Offer getRejectOfferFollowup(History history)
IAGOCoreBehavior
getRejectOfferFollowup
in class IAGOCoreBehavior
history
- the history to useprotected void updateAdverseEvents(int change)
IAGOCoreBehavior
updateAdverseEvents
in class IAGOCoreBehavior
change
- the amount to change by