public abstract class GameSpec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Properties |
properties |
Constructor and Description |
---|
GameSpec() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
buildMenu()
This builds the menu according the JSP rules.
|
protected void |
enablePrivilege()
This enables privileged information for this instance of the class.
|
java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> |
getAdvancedOpponentPoints()
Returns a mapping of issues to points for the opponent VH.
|
java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> |
getAdvancedPoints(int ID)
Returns a mapping of issues to points for the player matching the input ID.
|
java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> |
getAdvancedUserPoints()
Returns a mapping of issues to points for the user or the user's VH.
|
int |
getBATNA(int ID)
Returns the caller's BATNA (determined by the player's ID as input)
|
java.lang.String |
getEndgameMessage()
Provides a description for the system endgame message.
|
abstract java.lang.String[] |
getIssueNames()
Returns an array, of length equal to the number of issues, of the natural language names of the issues in singular form
|
abstract java.lang.String[] |
getIssuePluralNames()
Returns an array, of length equal to the number of issues, of the natural language names of the issues in plural form
|
abstract int[] |
getIssueQuants()
Returns an array, of length equal to the number of issues, that describes how many items are involved in each issue of the multi-issue-bargaining task
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getMenu()
Returns a mapping of menu titles to a secondary mapping of sub menus.
|
double |
getMultiplier()
Returns the multiplier for delays in agent responses.
|
java.lang.String |
getNewgameMessage()
Provides a description for the system newgame message.
|
abstract int |
getNumIssues()
Returns a single integer describing how many issues are involved in the multi-issue-bargaining task.
|
int |
getOpponentBATNA()
Returns the opponent VH's BATNA
|
int |
getOverflowSize()
Deprecated.
|
int |
getPlayerBATNA()
Returns the user's BATNA Should return null if access to this information is denied.
|
Preference |
getPreference(int issue1,
int issue2,
int ID)
Returns a preference relationship between input items for a specified player
|
java.lang.String |
getRedirectLink()
This function will automatically provide a link to the redirect link (e.g.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getSimpleOpponentPoints()
Returns a mapping of issue names to point values for the opponent VH.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getSimplePoints(int ID)
Returns a mapping of issue names to point values for the player matching the input ID.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getSimpleUserPoints()
Returns a mapping of issue names to point values for the user or the user's VH.
|
abstract java.lang.String |
getStudyName()
This returns the user-readable name of the study, which helps to collate results for analysis.
|
java.lang.String |
getSurvey()
This returns the URL for the between-game survey
|
abstract java.lang.String |
getTargetEmail()
Gets the target email for sending data to.
|
int |
getTotalTime()
Returns the total time of the negotiation, in seconds.
|
boolean |
isAdvancedPoints()
Returns true if the advanced point scheme is being used, rather than the simple scheme
|
boolean |
isMultiAgent()
Returns whether or not the negotiation is agent-agent or human-agent.
|
boolean |
isUserBlind()
Returns whether the agent can view the user payoffs or not.
|
protected void |
setAdvancedOpponentPoints(java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> points)
Used to set the advanced Opponent points.
|
protected void |
setAdvancedUserPoints(java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> points)
Used to set the advanced User points.
|
protected void |
setIndexMenu(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> index)
Used to set the root menu.
|
void |
setMultiAgent(boolean isMultiAgent)
Sets whether or not the negotiation is multi-agent.
|
protected void |
setOpponentBATNA(int batna)
Used to set the opponent VH's BATNA.
|
protected void |
setSimpleOpponentPoints(java.util.Map<java.lang.String,java.lang.Integer> points)
Used to set the simple Opponent points.
|
protected void |
setSimpleUserPoints(java.util.Map<java.lang.String,java.lang.Integer> points)
Used to set the simple User points.
|
protected void |
setUserBATNA(int batna)
Used to set the User's BATNA.
|
boolean |
showNegotiationTimer()
if this method returns true, then the negotiation time remaining will be displayed.
|
boolean |
showOpponentScore()
Returns whether the user can view the opponent's payoffs or not.
|
boolean |
showOpponentScoreOnEnd()
If this method returns true, then the agent score will be shown to the player after the negotiation has ended.
|
public final java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> getAdvancedOpponentPoints()
public final java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> getAdvancedUserPoints() throws java.lang.SecurityException
java.lang.SecurityException
public final java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> getAdvancedPoints(int ID)
public final java.util.Map<java.lang.String,java.lang.Integer> getSimpleOpponentPoints()
public final java.util.Map<java.lang.String,java.lang.Integer> getSimpleUserPoints() throws java.lang.SecurityException
java.lang.SecurityException
public final java.util.Map<java.lang.String,java.lang.Integer> getSimplePoints(int ID)
public final int getOpponentBATNA()
public final int getPlayerBATNA() throws java.lang.SecurityException
java.lang.SecurityException
public final int getBATNA(int ID)
ID
- the ID of the method's callerpublic boolean isMultiAgent()
public void setMultiAgent(boolean isMultiAgent)
isMultiAgent
- true if agent0 is not null. false if agent0 is null.public double getMultiplier()
public final java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getMenu()
public Preference getPreference(int issue1, int issue2, int ID)
issue1
- issue2
- ID
- the ID of the user whose preference will be returnedpublic abstract int getNumIssues()
public abstract int[] getIssueQuants()
public abstract java.lang.String[] getIssuePluralNames()
public abstract java.lang.String[] getIssueNames()
public boolean isAdvancedPoints()
public int getTotalTime()
public boolean isUserBlind()
public boolean showOpponentScore()
public abstract java.lang.String getTargetEmail()
public java.lang.String getEndgameMessage()
public java.lang.String getNewgameMessage()
public boolean showOpponentScoreOnEnd()
public boolean showNegotiationTimer()
public java.lang.String getRedirectLink()
@Deprecated public int getOverflowSize()
public abstract java.lang.String getStudyName()
public java.lang.String getSurvey()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> buildMenu()
protected final void enablePrivilege()
protected final void setOpponentBATNA(int batna)
batna
- The numerical value of the BATNAprotected final void setUserBATNA(int batna)
batna
- The numerical value of the BATNAprotected final void setSimpleUserPoints(java.util.Map<java.lang.String,java.lang.Integer> points)
points
- protected final void setSimpleOpponentPoints(java.util.Map<java.lang.String,java.lang.Integer> points)
points
- protected final void setAdvancedUserPoints(java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> points)
points
- protected final void setAdvancedOpponentPoints(java.util.Map<java.util.LinkedList<java.lang.Integer>,java.lang.Integer> points)
points
- protected final void setIndexMenu(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> index)
points
-