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, prefToEnglish
protected 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 IAGOCoreMessage
public void updateOrderings(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> orderings)
updateOrderings
in class IAGOCoreMessage
public java.lang.String getProposalLang(History history, GameSpec game)
MessagePolicy
getProposalLang
in interface MessagePolicy
public java.lang.String getAcceptLang(History history, GameSpec game)
MessagePolicy
getAcceptLang
in interface MessagePolicy
public java.lang.String getRejectLang(History history, GameSpec game)
MessagePolicy
getRejectLang
in interface MessagePolicy
public java.lang.String getVHAcceptLang(History history, GameSpec game)
MessagePolicy
getVHAcceptLang
in interface MessagePolicy
public java.lang.String getVHRejectLang(History history, GameSpec game)
MessagePolicy
getVHRejectLang
in interface MessagePolicy
public java.lang.String getWaitingLang(History history, GameSpec game)
getWaitingLang
in class IAGOCoreMessage
public boolean getLying(GameSpec game)
getLying
in class IAGOCoreMessage
protected java.lang.String getEndOfTimeResponse()
getEndOfTimeResponse
in class IAGOCoreMessage
protected java.lang.String getSemiFairResponse()
getSemiFairResponse
in class IAGOCoreMessage
protected java.lang.String getContradictionResponse(java.lang.String drop)
getContradictionResponse
in class IAGOCoreMessage
public java.lang.String getMessageResponse(History history, GameSpec game)
MessagePolicy
getMessageResponse
in interface MessagePolicy
protected Event getFavorBehavior(History history, GameSpec game, Event e)
getFavorBehavior
in class IAGOCoreMessage
public Event getVerboseMessageResponse(History history, GameSpec game, Event ePrime)
MessagePolicy
getVerboseMessageResponse
in interface MessagePolicy
ePrime
- the particular event to respond to