Evolving Strategies for the Prisoner's Dilemma

Serialized Form


Package ie.errity.pd.graphics

Class ie.errity.pd.graphics.GraphPanel implements Serializable

Serialized Fields

length

int length

max

int max

data0

int[] data0

data1

int[] data1

data2

double[] data2

col0

java.awt.Color col0

col1

java.awt.Color col1

col2

java.awt.Color col2

Label0

java.lang.String Label0

Label1

java.lang.String Label1

Label2

java.lang.String Label2

Labelx

java.lang.String Labelx

lastHeight0

int lastHeight0

lastHeight1

int lastHeight1

lastHeight2

int lastHeight2

pos

int pos

count

int count

Class ie.errity.pd.graphics.InteractivePanel implements Serializable

Serialized Fields

actionPanel

javax.swing.JPanel actionPanel

historyPanel

javax.swing.JPanel historyPanel

scoresPanel

javax.swing.JPanel scoresPanel

playBtn

javax.swing.JButton playBtn

stopBtn

javax.swing.JButton stopBtn

cBtn

javax.swing.JButton cBtn

dBtn

javax.swing.JButton dBtn

viewBtn

javax.swing.JButton viewBtn

viewBtn2

javax.swing.JButton viewBtn2

prisList

javax.swing.JComboBox prisList

prisList2

javax.swing.JComboBox prisList2

group

javax.swing.ButtonGroup group

opponentScore

javax.swing.JLabel opponentScore

yourScore

javax.swing.JLabel yourScore

opponentMove

javax.swing.JLabel opponentMove

yourMove

javax.swing.JLabel yourMove

Opptxt

javax.swing.JLabel Opptxt

Opptxt2

javax.swing.JLabel Opptxt2

human

javax.swing.JRadioButton human

comp

javax.swing.JRadioButton comp

list1

javax.swing.JList list1

payoffPanel

PayOffPanel payoffPanel

mf

MenuFrame mf

opponent

Prisoner opponent

opponent2

Prisoner opponent2

rules

Rules rules

P1Score

int P1Score

P2Score

int P2Score

P1Total

int P1Total

P2Total

int P2Total

hist1

java.lang.String[] hist1

iteration

int iteration

itMax

int itMax

history

java.util.BitSet history

P2History

java.util.BitSet P2History

humanp

boolean humanp

stopped

boolean stopped

Class ie.errity.pd.graphics.MenuFrame implements Serializable

Serialized Fields

menuBar

javax.swing.JMenuBar menuBar

type

javax.swing.JMenu type

rulesMen

javax.swing.JMenu rulesMen

stratMen

javax.swing.JMenu stratMen

blank

javax.swing.JPanel blank

rbMenuItem

javax.swing.JRadioButtonMenuItem rbMenuItem

menuItem

javax.swing.JMenuItem menuItem

inter

InteractivePanel inter

tournament

TournamentPanel tournament

spatial

SpatialPanel spatial

pDlg

PrisonerDialog pDlg

rulesDlg

RulesDialog rulesDlg

savedPris

Prisoner[] savedPris

namePris

java.lang.String[] namePris

mem

int mem

Class ie.errity.pd.graphics.PayOffPanel implements Serializable

Serialized Fields

t

int t

r

int r

s

int s

p

int p

tLbl

java.lang.String tLbl

rLbl

java.lang.String rLbl

sLbl

java.lang.String sLbl

pLbl

java.lang.String pLbl

Class ie.errity.pd.graphics.PrisonerDialog implements Serializable

Serialized Fields

closeBtn

javax.swing.JButton closeBtn

viewBtn

javax.swing.JButton viewBtn

delBtn

javax.swing.JButton delBtn

prisDlg

javax.swing.JDialog prisDlg

prisList

javax.swing.JComboBox prisList

mframe

MenuFrame mframe

Class ie.errity.pd.graphics.RulesDialog implements Serializable

Serialized Fields

maxGenSp

javax.swing.JSpinner maxGenSp

numPlayersSp

javax.swing.JSpinner numPlayersSp

iterationsSp

javax.swing.JSpinner iterationsSp

mutateSp

javax.swing.JSpinner mutateSp

crossoverSp

javax.swing.JSpinner crossoverSp

temptationSp

javax.swing.JSpinner temptationSp

rewardSp

javax.swing.JSpinner rewardSp

suckerSp

javax.swing.JSpinner suckerSp

punishSp

javax.swing.JSpinner punishSp

maxGenLbl

javax.swing.JLabel maxGenLbl

numPlayersLbl

javax.swing.JLabel numPlayersLbl

mutateLbl

javax.swing.JLabel mutateLbl

crossoverLbl

javax.swing.JLabel crossoverLbl

iterationsLbl

javax.swing.JLabel iterationsLbl

temptationLbl

javax.swing.JLabel temptationLbl

rewardLbl

javax.swing.JLabel rewardLbl

suckerLbl

javax.swing.JLabel suckerLbl

punishLbl

javax.swing.JLabel punishLbl

defaultBtn

javax.swing.JButton defaultBtn

saveBtn

javax.swing.JButton saveBtn

restoreBtn

javax.swing.JButton restoreBtn

rulesDlg

javax.swing.JDialog rulesDlg

gen

int gen

plyrs

int plyrs

itr

int itr

t

int t

r

int r

s

int s

p

int p

m

double m

c

double c

mf

MenuFrame mf

Class ie.errity.pd.graphics.SaveDialog implements Serializable

Serialized Fields

closeBtn

javax.swing.JButton closeBtn

saveBtn

javax.swing.JButton saveBtn

sDlg

javax.swing.JDialog sDlg

txtBox

javax.swing.JTextField txtBox

name

java.lang.String name

Class ie.errity.pd.graphics.SpatialPanel implements Serializable

Serialized Fields

maxLbl

javax.swing.JLabel maxLbl

minLbl

javax.swing.JLabel minLbl

avgLbl

javax.swing.JLabel avgLbl

actionPanel

javax.swing.JPanel actionPanel

displayPanel

javax.swing.JPanel displayPanel

subPanel

javax.swing.JPanel subPanel

typePanel

javax.swing.JPanel typePanel

buttonPanel

javax.swing.JPanel buttonPanel

radioPanel

javax.swing.JPanel radioPanel

statsPanel

javax.swing.JPanel statsPanel

startBtn

javax.swing.JButton startBtn

stopBtn

javax.swing.JButton stopBtn

fitBtn

javax.swing.JButton fitBtn

weakBtn

javax.swing.JButton weakBtn

ga

javax.swing.JRadioButton ga

ea

javax.swing.JRadioButton ea

fitDlg

StrategyDialog fitDlg

weakDlg

StrategyDialog weakDlg

graphPanel

GraphPanel graphPanel

rules

Rules rules

grid

Spatial grid

worker

SwingWorker worker

stopped

boolean stopped

max

int max

min

int min

total

int total

avg

double avg

GA

boolean GA

prisTypes

double[] prisTypes

type0

javax.swing.JLabel type0

type1

javax.swing.JLabel type1

type2

javax.swing.JLabel type2

type3

javax.swing.JLabel type3

type4

javax.swing.JLabel type4

type5

javax.swing.JLabel type5

type6

javax.swing.JLabel type6

type7

javax.swing.JLabel type7

color

java.lang.String[] color

typeNames

java.lang.String[] typeNames

mFrame

MenuFrame mFrame

Class ie.errity.pd.graphics.StrategyDialog implements Serializable

Serialized Fields

stratLbl

javax.swing.JLabel stratLbl

closeBtn

javax.swing.JButton closeBtn

stratDlg

javax.swing.JDialog stratDlg

saveBtn

javax.swing.JButton saveBtn

strat

java.lang.String strat

pris

Prisoner pris

Class ie.errity.pd.graphics.TournamentPanel implements Serializable

Serialized Fields

actionPanel

javax.swing.JPanel actionPanel

displayPanel

javax.swing.JPanel displayPanel

subPanel

javax.swing.JPanel subPanel

typePanel

javax.swing.JPanel typePanel

buttonPanel

javax.swing.JPanel buttonPanel

radioPanel

javax.swing.JPanel radioPanel

statsPanel

javax.swing.JPanel statsPanel

maxLbl

javax.swing.JLabel maxLbl

minLbl

javax.swing.JLabel minLbl

avgLbl

javax.swing.JLabel avgLbl

startBtn

javax.swing.JButton startBtn

stopBtn

javax.swing.JButton stopBtn

fitBtn

javax.swing.JButton fitBtn

weakBtn

javax.swing.JButton weakBtn

fitDlg

StrategyDialog fitDlg

weakDlg

StrategyDialog weakDlg

graphPanel

GraphPanel graphPanel

worker

SwingWorker worker

rules

Rules rules

stopped

boolean stopped

max

int max

min

int min

total

int total

avg

double avg

b1

Breeder b1

prisTypes

double[] prisTypes

type0

javax.swing.JLabel type0

type1

javax.swing.JLabel type1

type2

javax.swing.JLabel type2

type3

javax.swing.JLabel type3

type4

javax.swing.JLabel type4

type5

javax.swing.JLabel type5

type6

javax.swing.JLabel type6

type7

javax.swing.JLabel type7

color

java.lang.String[] color

typeNames

java.lang.String[] typeNames

mFrame

MenuFrame mFrame


Package ie.errity.pd.genetic

Class ie.errity.pd.genetic.Breeder implements Serializable

Serialized Fields

curPopulation

Prisoner[] curPopulation

scaledScores

int[] scaledScores

mutateP

double mutateP

crossP

double crossP

popSize

int popSize

rand

java.util.Random rand

lastparent

int lastparent

Class ie.errity.pd.genetic.Spatial implements Serializable

Serialized Fields

world

Prisoner[][] world

scores

int[][] scores

scaledScores

int[][] scaledScores

matches

java.util.Hashtable matches

rules

Rules rules

X

int X

Y

int Y

rand

java.util.Random rand

lastP

int[] lastP


Andrew Errity [99086921]