uchicago.src.repastdemos.enn
Class EnnGame

java.lang.Object
  extended by uchicago.src.sim.games.Game
      extended by uchicago.src.repastdemos.enn.EnnGame

public class EnnGame
extends Game

A partial implementation of Randal Picker's Endogenous Neighborhood * game as described in his as yet unpublished "Endogenous Neighborhoods and Norms." This simulation extends prior work by Randal Picker. See "Simple Games in a Complex World: A Generative Approach to the Adoption of Norms", 64 University of Chicago Law Review 1225 (1997). Thanks to Randal Picker * for allowing us to include this with Repast. * * Randall Picker's game from Endogneous Neighborhoods and Norms. Here * an agent plays the each of its neighbors in a 5x5 grid centered on the * agent. * *

Version:
$Revision: 1.1 $ $Date: 2005/08/12 20:04:51 $
Author:
Nick Collier and Randal Picker

Constructor Summary
EnnGame()
           
 
Method Summary
 void play(GameAgent player, java.util.List neighbors)
          Plays the game.
 
Methods inherited from class uchicago.src.sim.games.Game
getP1Payoff, getP2Payoff, setPayoffs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnnGame

public EnnGame()
Method Detail

play

public void play(GameAgent player,
                 java.util.List neighbors)
Plays the game. The specified agent plays each of its neighbors (the * members of the specified List) and its payoff is set accordingly.

Parameters:
player - the agent who plays its neighboring agents and whose payoff is recalculated.
neighbors - the neighbors of the playing agent