public class RepeatedFavorMessage extends IAGOCoreMessage implements MessagePolicy
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
acceptResponse |
boolean |
isWithholding |
boolean |
lying |
int |
opponentBATNA |
protected java.lang.String[] |
proposal |
protected java.lang.String[] |
rejectResponse |
protected java.lang.String[] |
vhAccept |
protected java.lang.String[] |
vhReject |
protected java.lang.String[] |
vhWaiting |
codeMap| Constructor and Description |
|---|
RepeatedFavorMessage(boolean isWithholding,
boolean lying,
RepeatedFavorBehavior.LedgerBehavior lb)
Constructor for a positive message.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAcceptLang(History history,
GameSpec game)
Returns the language to use when the VH offer is accepted, given a history.
|
protected java.lang.String |
getContradictionResponse(java.lang.String drop) |
protected java.lang.String |
getEndOfTimeResponse() |
protected Event |
getFavorBehavior(History history,
GameSpec game,
Event e) |
boolean |
getLying(GameSpec game) |
java.lang.String |
getMessageResponse(History history,
GameSpec game)
Gives the message response when given a history.
|
java.lang.String |
getProposalLang(History history,
GameSpec game)
Returns the language to use when making a proposal, given a history.
|
java.lang.String |
getRejectLang(History history,
GameSpec game)
Returns the language to use when the VH offer is rejected, given a history.
|
protected java.lang.String |
getSemiFairResponse() |
Event |
getVerboseMessageResponse(History history,
GameSpec game,
Event ePrime)
Gives the message response to a particular event in a history in the form of an event
|
java.lang.String |
getVHAcceptLang(History history,
GameSpec game)
Returns the language to use when the Player offer is accepted, given a history.
|
java.lang.String |
getVHRejectLang(History history,
GameSpec game)
Returns the language to use when the Player offer is rejected, given a history.
|
java.lang.String |
getWaitingLang(History history,
GameSpec game) |
protected void |
setUtils(AgentUtilsExtension utils) |
void |
updateOrderings(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> orderings) |
getProposalLangChange, getProposalLangFirst, getProposalLangOneOffer, getProposalLangRej, getProposalLangRepeat, getVHEqualLang, prefToEnglishprotected final java.lang.String[] proposal
protected final java.lang.String[] acceptResponse
protected final java.lang.String[] rejectResponse
protected final java.lang.String[] vhReject
protected final java.lang.String[] vhAccept
protected final java.lang.String[] vhWaiting
public boolean isWithholding
public boolean lying
public int opponentBATNA
public RepeatedFavorMessage(boolean isWithholding,
boolean lying,
RepeatedFavorBehavior.LedgerBehavior lb)
isWithholding - a boolean representing whether an agent is withholding (true if yes, false if no)lying - a boolean representing whether an agent will tell a BATNA lielb - an enum representing how the agent talks about favorsprotected void setUtils(AgentUtilsExtension utils)
setUtils in class IAGOCoreMessagepublic void updateOrderings(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> orderings)
updateOrderings in class IAGOCoreMessagepublic java.lang.String getProposalLang(History history, GameSpec game)
MessagePolicygetProposalLang in interface MessagePolicypublic java.lang.String getAcceptLang(History history, GameSpec game)
MessagePolicygetAcceptLang in interface MessagePolicypublic java.lang.String getRejectLang(History history, GameSpec game)
MessagePolicygetRejectLang in interface MessagePolicypublic java.lang.String getVHAcceptLang(History history, GameSpec game)
MessagePolicygetVHAcceptLang in interface MessagePolicypublic java.lang.String getVHRejectLang(History history, GameSpec game)
MessagePolicygetVHRejectLang in interface MessagePolicypublic java.lang.String getWaitingLang(History history, GameSpec game)
getWaitingLang in class IAGOCoreMessagepublic boolean getLying(GameSpec game)
getLying in class IAGOCoreMessageprotected java.lang.String getEndOfTimeResponse()
getEndOfTimeResponse in class IAGOCoreMessageprotected java.lang.String getSemiFairResponse()
getSemiFairResponse in class IAGOCoreMessageprotected java.lang.String getContradictionResponse(java.lang.String drop)
getContradictionResponse in class IAGOCoreMessagepublic java.lang.String getMessageResponse(History history, GameSpec game)
MessagePolicygetMessageResponse in interface MessagePolicyprotected Event getFavorBehavior(History history, GameSpec game, Event e)
getFavorBehavior in class IAGOCoreMessagepublic Event getVerboseMessageResponse(History history, GameSpec game, Event ePrime)
MessagePolicygetVerboseMessageResponse in interface MessagePolicyePrime - the particular event to respond to