|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.repeatedgames.rgsolve.utilities.gamecompiler.GameCodeData
public class GameCodeData
A class that defines the bare-bones of a Game
extension via the source code that it would involve. This class
is used in the dynamic compilation and loading of games
in rgsolve.
Field Summary | |
---|---|
(package private) java.lang.String |
constructor
code block for the body of the constructor falling the call to super |
(package private) double |
delta
discount factor |
static java.lang.String |
extension
the extension of this file type for serialization |
(package private) java.lang.String |
fields
code block defining additional fields of this Game subclass |
(package private) java.lang.String |
gameNotes
any description of or notes on this game |
(package private) int |
m1
number of actions to player 2 |
(package private) int |
m2
number of actions to player 2 |
(package private) java.lang.String |
name
the name of this game |
(package private) java.lang.String |
payoff1
code block defining the payoffs to player 1 in the method @Override payoff1(int,int) |
(package private) java.lang.String |
payoff2
code block defining the payoffs to player 2 in the method @Override payoff2(int,int) |
private static long |
serialVersionUID
Serialization ID |
Constructor Summary | |
---|---|
GameCodeData(int m1,
int m2,
double delta,
java.lang.String fields,
java.lang.String constructor,
java.lang.String payoff1,
java.lang.String payoff2,
java.lang.String gameNotes,
java.lang.String name)
Constructor that initializes fields |
Method Summary | |
---|---|
GameCodeData |
clone()
A deep copy |
java.lang.String |
getClassString()
Returns the full source code of the game defined by this object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static final java.lang.String extension
int m1
int m2
double delta
java.lang.String constructor
super
java.lang.String fields
Game
subclass
java.lang.String payoff1
@Override payoff1(int,int)
java.lang.String payoff2
@Override payoff2(int,int)
java.lang.String gameNotes
java.lang.String name
Constructor Detail |
---|
public GameCodeData(int m1, int m2, double delta, java.lang.String fields, java.lang.String constructor, java.lang.String payoff1, java.lang.String payoff2, java.lang.String gameNotes, java.lang.String name)
m1
- m2
- delta
- fields
- constructor
- payoff1
- payoff2
- gameNotes
- name
- Method Detail |
---|
public java.lang.String getClassString()
public GameCodeData clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |