|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.repeatedgames.rgsolve.games.Game
edu.princeton.repeatedgames.rgsolve.utilities.gamecompiler.TempGameHolder
public abstract class TempGameHolder
An abstract class defining a temporary game held in memory.
A temporary game will involve a dynamically written/compiled/
loaded class that exists on the classpath *only* for
the current runtime session and disappears afterwards.
Hence the need for the GameCodeData
object
to serialize this Game
subclass
Field Summary | |
---|---|
(package private) GameCodeData |
gmcodeData
Stores the code data used to generate the source for this game |
Fields inherited from class edu.princeton.repeatedgames.rgsolve.games.Game |
---|
description, extension |
Constructor Summary | |
---|---|
TempGameHolder(int m1,
int m2,
double delta,
java.lang.String desc)
Default constructor that must be called by temporary games that extend this class |
Method Summary | |
---|---|
GameCodeData |
getGameCodeData()
Accessor for this object's GameCodeData |
void |
setDiscount(double delta)
Initializes the discount rate delta |
void |
setGameCodeData(GameCodeData gmcodeData)
Sets the GameCodeData associated with this Game |
Methods inherited from class edu.princeton.repeatedgames.rgsolve.games.Game |
---|
actionUsable, copyUsableActions, delta, m, m1, m2, payoff, payoff, payoff1, payoff2, setActionUsable, setDescription, usableActionsDefined |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
GameCodeData gmcodeData
Constructor Detail |
---|
public TempGameHolder(int m1, int m2, double delta, java.lang.String desc)
m1
- num actions player 1m2
- num actions player 2delta
- discountdesc
- game notesMethod Detail |
---|
public void setGameCodeData(GameCodeData gmcodeData)
GameCodeData
associated with this Game
gmcodeData
- public GameCodeData getGameCodeData()
GameCodeData
GameCodeData
public void setDiscount(double delta)
Game
delta
setDiscount
in class Game
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |