A C D E F G I J M N P R S T W

A

addColor(Color, String) - Method in class ptft.NamedColorArray
 

C

createCells(NamedColorArray) - Method in class ptft.JGrid
add cells to GUI
createCells(NamedColorArray, NamedColorArray) - Method in class ptft.JPtftCellularAutomata
Adds cells to the GUI.
createCursor(Component, String, Point, String) - Static method in class ptft.ImageToolkit
 
createImageIcon(Component, String) - Static method in class ptft.ImageToolkit
 

D

Direction - class ptft.Direction.
This final class with a private constructor is used instead of final statics to provide type safety.
drawCell(JPtftCell) - Method in class ptft.JPaintCellularAutomata
Depending on whether we're viewing strategies or ethnicities, changes the cell's strategy or ethnicity to m_activeStrategy or m_activeEthnicity.
drawLine(JPtftCell, JPtftCell) - Method in class ptft.JPaintCellularAutomata
Draws a line recursively connecting two cells

E

E - Static variable in class ptft.Direction
East

F

fillWithBucket(JPtftCell, int, int) - Method in class ptft.JPaintCellularAutomata
 
floodFill(JPtftCell, int, int, String) - Method in class ptft.JPaintCellularAutomata
Fills regions of color "old" with the new color "fill" starting at the given coordinates

G

getCell(int, int) - Method in class ptft.JGrid
 
getCell(Point) - Method in class ptft.JPaintCellularAutomata
Returns the cell located at the pixel coordinate p.
getColor() - Method in class ptft.NamedColor
 
getColor(int) - Method in class ptft.NamedColorArray
 
getColors() - Method in class ptft.NamedColorArray
 
getColumn() - Method in class ptft.JCell
 
getEthnicity() - Method in class ptft.JPtftCell
 
getFillColor() - Method in class ptft.JLegendLabel
 
getLeftColumn(int) - Method in class ptft.JGrid
 
getLength() - Method in class ptft.NamedColorArray
 
getListCellRendererComponent(JList, Object, int, boolean, boolean) - Method in class ptft.JPtftPanel.LegendListCellRenderer
 
getLowerRow(int) - Method in class ptft.JGrid
 
getName() - Method in class ptft.NamedColor
 
getName(int) - Method in class ptft.NamedColorArray
 
getNames() - Method in class ptft.NamedColorArray
 
getNeighbor(JCell, Direction) - Method in class ptft.JGrid
wrap-around grid: cells in the bottom row neighbor those in the top row, and cells in the right column neighbor those in the left column.
getOutlineColor() - Method in class ptft.JLegendLabel
 
getRandomNumber(int[]) - Method in class ptft.JCell
 
getRightColumn(int) - Method in class ptft.JGrid
 
getRow() - Method in class ptft.JCell
 
getStrategy() - Method in class ptft.JCell
 
getStrategy() - Method in class ptft.JPtftCell
 
getStrategy(JPtftCell) - Method in class ptft.JPtftCell
 
getTotalColumns() - Method in class ptft.JGrid
 
getTotalRows() - Method in class ptft.JGrid
 
getUpperRow(int) - Method in class ptft.JGrid
 
getWinningStrategy(JCell) - Method in class ptft.JCellularAutomata
 

I

ImageToolkit - class ptft.ImageToolkit.
 
init() - Method in class ptft.JPtftApplet
Initializes the applet ptft
innerPanel - Variable in class ptft.JGrid
 
integrate() - Method in class ptft.JPtftCellularAutomata
 
isPaintModeEnabled() - Method in class ptft.JPaintCellularAutomata
 
isPencil() - Method in class ptft.JPaintCellularAutomata
 
isRunning() - Method in class ptft.JCellularAutomata
 
isSegregated() - Method in class ptft.JPtftCellularAutomata
 
isStrategyDisplayed() - Method in class ptft.JPtftCell
 
isStrategyDisplayed() - Method in class ptft.JPtftCellularAutomata
 

J

JCell - class ptft.JCell.
A square cell whose color corresponds to a strategy field.
JCell(int, int, NamedColorArray) - Constructor for class ptft.JCell
Creates a new cell with a random strategy.
JCellularAutomata - class ptft.JCellularAutomata.
A graph paper grid populated with JCell objects which play localized cellular automata games.
JCellularAutomata() - Constructor for class ptft.JCellularAutomata
Creates a cellular automata grid with the following default prisoner's dilemma payoff matrix:
C D
 C  (3,3) (0,5)
 D  (5,0) (1,1)
JGrid - class ptft.JGrid.
A graph paper grid populated with JCell objects.
JGrid() - Constructor for class ptft.JGrid
Creates new form JGrid
JGrid(int, int) - Constructor for class ptft.JGrid
Creates new form JGrid
JGridButton - class ptft.JGridButton.
 
JGridButton() - Constructor for class ptft.JGridButton
Creates new form JGridButton
JLegendLabel - class ptft.JLegendLabel.
 
JLegendLabel() - Constructor for class ptft.JLegendLabel
Creates new form JPtftLabel
JLegendLabel(Color) - Constructor for class ptft.JLegendLabel
 
JLegendLabel(Color, Color) - Constructor for class ptft.JLegendLabel
 
JPaintCellularAutomata - class ptft.JPaintCellularAutomata.
Adds the functionality of a simple paint program so that the user can paint cells a different strategy or ethnicity color.
JPaintCellularAutomata() - Constructor for class ptft.JPaintCellularAutomata
Creates new form JCellularAutomataPaint
JPtftApplet - class ptft.JPtftApplet.
The PTFT applet.
JPtftApplet() - Constructor for class ptft.JPtftApplet
 
JPtftCell - class ptft.JPtftCell.
A square cell which can paint itself using one of two different fields: m_strategy inherited from JCell, and m_ethnicity.
JPtftCell(int, int, NamedColorArray, NamedColorArray) - Constructor for class ptft.JPtftCell
Creates a new cell.
JPtftCellularAutomata - class ptft.JPtftCellularAutomata.
A graph paper grid populated with JCell objects which play localized cellular automata games.
JPtftCellularAutomata() - Constructor for class ptft.JPtftCellularAutomata
Creates new form JPtftCellularAutomata
JPtftPanel - class ptft.JPtftPanel.
A JPanel that houses the cellular automata grid and the GUI.
JPtftPanel() - Constructor for class ptft.JPtftPanel
Creates new form JPtftPanel
JPtftPanel.LegendListCellRenderer - class ptft.JPtftPanel.LegendListCellRenderer.
 
JPtftPanel.LegendListCellRenderer() - Constructor for class ptft.JPtftPanel.LegendListCellRenderer
 

M

m_activeEthnicity - Variable in class ptft.JPaintCellularAutomata
 
m_activeStrategy - Variable in class ptft.JPaintCellularAutomata
 
m_bucketCursor - Variable in class ptft.JPaintCellularAutomata
 
m_bucketIcon - Variable in class ptft.JPtftPanel
 
m_cellPadding - Variable in class ptft.JGrid
 
m_cellWidth - Variable in class ptft.JGrid
 
m_column - Variable in class ptft.JCell
 
m_columns - Variable in class ptft.JGrid
 
m_currentIndex - Variable in class ptft.NamedColorArray
 
m_ethnicColors - Variable in class ptft.JPtftCell
 
m_ethnicColors - Variable in class ptft.JPtftCellularAutomata
 
m_ethnicities - Variable in class ptft.JPtftPanel
 
m_ethnicity - Variable in class ptft.JPtftCell
 
m_fillColor - Variable in class ptft.JLegendLabel
 
m_grid - Variable in class ptft.JGrid
 
m_gridIcon - Variable in class ptft.JPtftPanel
 
m_isFlooded - Variable in class ptft.JPaintCellularAutomata
 
m_isMouseButtonPressed - Variable in class ptft.JPaintCellularAutomata
 
m_isPaintModeEnabled - Variable in class ptft.JPaintCellularAutomata
 
m_isPencil - Variable in class ptft.JPaintCellularAutomata
 
m_isSegregated - Variable in class ptft.JPtftCellularAutomata
 
m_isStrategyDisplayed - Variable in class ptft.JPtftCell
 
m_isStrategyDisplayed - Variable in class ptft.JPtftCellularAutomata
 
m_lastDrawnCell - Variable in class ptft.JPaintCellularAutomata
 
m_namedColorArray - Variable in class ptft.NamedColorArray
 
m_outlineColor - Variable in class ptft.JLegendLabel
 
m_pauseIcon - Variable in class ptft.JPtftPanel
 
m_payoffs - Variable in class ptft.JCellularAutomata
 
m_pencilCursor - Variable in class ptft.JPaintCellularAutomata
 
m_pencilIcon - Variable in class ptft.JPtftPanel
 
m_playIcon - Variable in class ptft.JPtftPanel
 
m_row - Variable in class ptft.JCell
 
m_rows - Variable in class ptft.JGrid
 
m_score - Variable in class ptft.JCell
 
m_sleepDelay - Variable in class ptft.JCellularAutomata
 
m_strategies - Variable in class ptft.JGrid
 
m_strategies - Variable in class ptft.JPtftPanel
 
m_strategy - Variable in class ptft.JCell
 
m_strategyColors - Variable in class ptft.JCell
 
m_strategyColors - Variable in class ptft.JPtftCellularAutomata
 
m_thread - Variable in class ptft.JCellularAutomata
 
m_width - Variable in class ptft.JCell
 
mouseClicked(MouseEvent) - Method in class ptft.JPaintCellularAutomata
 
mouseDragged(MouseEvent) - Method in class ptft.JPaintCellularAutomata
 
mouseEntered(MouseEvent) - Method in class ptft.JPaintCellularAutomata
 
mouseExited(MouseEvent) - Method in class ptft.JPaintCellularAutomata
 
mouseMoved(MouseEvent) - Method in class ptft.JPaintCellularAutomata
 
mousePressed(MouseEvent) - Method in class ptft.JPaintCellularAutomata
 
mouseReleased(MouseEvent) - Method in class ptft.JPaintCellularAutomata
 

N

N - Static variable in class ptft.Direction
North
NE - Static variable in class ptft.Direction
North-East
NW - Static variable in class ptft.Direction
North-West
NamedColor - class ptft.NamedColor.
 
NamedColor(Color, String) - Constructor for class ptft.NamedColor
Creates a new instance of NamedColor
NamedColorArray - class ptft.NamedColorArray.
 
NamedColorArray(int) - Constructor for class ptft.NamedColorArray
Creates a new instance of dtft
next(Direction) - Static method in class ptft.Direction
Enumerates directions.
next() - Method in class ptft.JPtftPanel
 

P

paint(Graphics) - Method in class ptft.JGridButton
 
paintComponent(Graphics) - Method in class ptft.JCell
 
paintComponent(Graphics) - Method in class ptft.JGrid
 
paintComponent(Graphics) - Method in class ptft.JLegendLabel
 
paintComponent(Graphics) - Method in class ptft.JPtftCell
 
pause() - Method in class ptft.JCellularAutomata
 
pause() - Method in class ptft.JPtftPanel
 
playCell(int, int) - Method in class ptft.JCellularAutomata
have a cell play all of its neighbors
playNeighbor(int, int, Direction) - Method in class ptft.JCellularAutomata
 
playNeighbor(int, int, Direction) - Method in class ptft.JPtftCellularAutomata
 
playRound() - Method in class ptft.JCellularAutomata
calls playRound with repaint = true
playRound(boolean) - Method in class ptft.JCellularAutomata
Evolves the cellular automata one gerenation by having each cell play 200 games against each of its eight neighboring cells.
ptft - package ptft
 

R

restart() - Method in class ptft.JCellularAutomata
 
restart() - Method in class ptft.JPtftCellularAutomata
 
restart() - Method in class ptft.JPtftPanel
 
run() - Method in class ptft.JCellularAutomata
 

S

S - Static variable in class ptft.Direction
South
SE - Static variable in class ptft.Direction
South-East
SW - Static variable in class ptft.Direction
South-West
sameColor(JPtftCell, int) - Method in class ptft.JPaintCellularAutomata
 
segregate() - Method in class ptft.JPtftCellularAutomata
 
segregate() - Method in class ptft.JPtftPanel
 
setActiveEthnicity(int) - Method in class ptft.JPaintCellularAutomata
User-painting will be done with this ethnicity color
setActiveStrategy(int) - Method in class ptft.JPaintCellularAutomata
User-painting will be done with this strategy color
setBackground(Color) - Method in class ptft.JGrid
 
setBorderColor(Color) - Method in class ptft.JGrid
 
setCell(JPtftCell, int) - Method in class ptft.JPaintCellularAutomata
 
setColor(Color) - Method in class ptft.NamedColor
 
setEthnicity(int) - Method in class ptft.JPtftCell
 
setFillColor(Color) - Method in class ptft.JLegendLabel
 
setGridButtonColor() - Method in class ptft.JPtftPanel
 
setGridColor(Color) - Method in class ptft.JGrid
 
setGridColor(Color) - Method in class ptft.JGridButton
 
setGridColor1(Color) - Method in class ptft.JGridButton
 
setGridColor2(Color) - Method in class ptft.JGridButton
 
setGridColor3(Color) - Method in class ptft.JGridButton
 
setGridColor4(Color) - Method in class ptft.JGridButton
 
setLayout(LayoutManager) - Method in class ptft.JGrid
Captures attempts to change the layout manager and ignores them
setName(String) - Method in class ptft.NamedColor
 
setOutlineColor(Color) - Method in class ptft.JLegendLabel
 
setPaintMode(boolean, boolean) - Method in class ptft.JPaintCellularAutomata
enables paint mode
setPaintMode(boolean) - Method in class ptft.JPtftPanel
 
setPaintMode(boolean, boolean) - Method in class ptft.JPtftPanel
 
setPayoffs(int, int, int, int) - Method in class ptft.JCellularAutomata
Set the payoffs for any symmetrical 2x2 payoff matrix.
setRandomEthnicities() - Method in class ptft.JPtftCellularAutomata
 
setRandomEthnicities(int[]) - Method in class ptft.JPtftCellularAutomata
 
setRandomEthnicity() - Method in class ptft.JPtftCell
 
setRandomEthnicity(int[]) - Method in class ptft.JPtftCell
Pre-condition: any ethnicities[i] must be less than the total number of ethnicities.
setRandomMode() - Method in class ptft.JPtftPanel
 
setRandomStrategies() - Method in class ptft.JGrid
 
setRandomStrategies(int[]) - Method in class ptft.JGrid
 
setRandomStrategy() - Method in class ptft.JCell
 
setRandomStrategy(int[]) - Method in class ptft.JCell
Pre-condition: any strategies[i] must be less than the total number of strategies.
setSleepDelay(int) - Method in class ptft.JCellularAutomata
 
setStrategy(int) - Method in class ptft.JCell
 
start() - Method in class ptft.JCellularAutomata
 
start() - Method in class ptft.JPtftPanel
 

T

toggleViews() - Method in class ptft.JPtftCell
 
toggleViews() - Method in class ptft.JPtftCellularAutomata
 
toggleViews() - Method in class ptft.JPtftPanel
 

W

W - Static variable in class ptft.Direction
West

A C D E F G I J M N P R S T W