public class AutomatedAgentsCore.AutomatedAgentGenerateAgreement
extends java.lang.Object
Constructor and Description |
---|
AutomatedAgentsCore.AutomatedAgentGenerateAgreement() |
Modifier and Type | Method and Description |
---|---|
void |
calculateAgreement(AutomatedAgentType agentType,
int nCurrentTurn,
boolean bCalcForNextTurn)
Calculate agreement to send for the opponent for a given agent and a given turn
|
void |
calculateOfferAgainstOpponent(java.lang.String sOpponentType,
int nCurrentTurn,
boolean bCalcForNextTurn)
This is where the real logic is done to
calculate agreement to send for the opponent for a given agent and a given turn
|
double |
getNextTurnAgentAutomatedAgentUtilityValue() |
java.lang.String |
getNextTurnAutomatedAgentAgreement() |
double |
getNextTurnOpponentAutomatedAgentUtilityValue() |
int |
getNextTurnOpponentType() |
java.lang.String |
getSelectedAutomatedAgentAgreementStr() |
void |
setNextTurnOpponentType(int type) |
public AutomatedAgentsCore.AutomatedAgentGenerateAgreement()
public void calculateAgreement(AutomatedAgentType agentType, int nCurrentTurn, boolean bCalcForNextTurn)
agentType
- - the given agentnCurrentTurn
- - the current turnbCalcForNextTurn
- - whether to calculate based on values of the following turn
PRE-CONDITION: m_CurrentAgentType should be updated for the current turnpublic void calculateOfferAgainstOpponent(java.lang.String sOpponentType, int nCurrentTurn, boolean bCalcForNextTurn)
agentType
- - the given agentnCurrentTurn
- - the current turnbCalcForNextTurn
- - whether to calculate based on values of the following turn
PRE-CONDITION: m_CurrentAgentType should be updated for the current turnpublic java.lang.String getSelectedAutomatedAgentAgreementStr()
public double getNextTurnAgentAutomatedAgentUtilityValue()
public java.lang.String getNextTurnAutomatedAgentAgreement()
public double getNextTurnOpponentAutomatedAgentUtilityValue()
public int getNextTurnOpponentType()
public void setNextTurnOpponentType(int type)