Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.repastdemos.hypercycles
Class HyperModel

    java.lang.Object
      uchicago.src.sim.engine.SimModelImpl
          uchicago.src.repastdemos.hypercycles.HyperModel

All Implemented Interfaces:
  DescriptorContainer, SimEventProducer, SimModel

    public class HyperModel

extends SimModelImpl

An implementation of the simulation described in John Padgett's "The Emergence of Simple Ecologies of Skill: A Hypercycle Approach to Economic Organization" in _The Economy as an Evolving Complex System II_, Eds. Arthur, Durlauf, and Lane. SFI Studies in the Sciences of Complexity, Vol. XXVII, Addison-Wesley, 1997, pp. 199-221. Thanks to John Padgett for allowing us to include it here. jpadgett@midway.uchicago.edu Graphicaly the display shows cells activating each other, and displays existing hypercycles when stopped or paused.

Version:
  $Revision: 1.1 $ $Date: 2005/08/12 20:04:57 $
Author:
  Nick Collier and John Padgett

Field Summary

Fields inherited from class uchicago.src.sim.engine.SimModelImpl
`descriptors, modelManipulator`

Constructor Summary
`HyperModel()`

Method Summary
`void` | `begin()` Begins a simulation run.
`void` | `buildModel()`
`void` | `checkForHyperCycle()`
`void` | `clearLinks()`
`java.lang.String[]` | `getInitParam()` Gets the names of the initial model parameters to set.
`int` | `getMode()`
`java.lang.String` | `getName()` Gets the name of the model/simulation.
`int` | `getNType()`
`int` | `getNumberOfSkills()`
`Schedule` | `getSchedule()` Gets the Schedule created by the model.
`java.lang.String` | `getSkills()`
`boolean` | `isRecordCycleData()`
`boolean` | `isShowCycles()`
`static void` | `main(java.lang.String[] args)`
`void` | `setMode(int i)`
`void` | `setNType(int type)`
`void` | `setNumberOfSkills(int skills)`
`void` | `setRecordCycleData(boolean record)`
`void` | `setShowCycles(boolean show)`
`void` | `setSkills(java.lang.String someSkills)`
`void` | `setup()` Prepares a model for a new run, typically by deallocating objects or setting them to some reasonable default.

Methods inherited from class uchicago.src.sim.engine.SimModelImpl
`addPropertyListener, addSimEventListener, clearMediaProducers, clearPropertyListeners, fireBooleanPropertyEvent, fireEndSim, fireNumericPropertyEvent, fireObjectPropertyEvent, firePauseSim, fireSimEvent, fireStopSim, fireStringPropertyEvent, generateNewSeed, getController, getMediaProducers, getModelManipulator, getParameterDescriptors, getPropertiesValues, getRngSeed, getTickCount, pause, registerDisplaySurface, registerMediaProducer, removePropertyListener, removeSimEventListener, setController, setRngSeed, stop`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### HyperModel

    public HyperModel()

Method Detail

### setMode

    public void setMode(int i)

### getMode

    public int getMode()

### isShowCycles

    public boolean isShowCycles()

### setShowCycles

    public void setShowCycles(boolean show)

### isRecordCycleData

    public boolean isRecordCycleData()

### setRecordCycleData

    public void setRecordCycleData(boolean record)

### setNType

    public void setNType(int type)

### getNType

    public int getNType()

### setSkills

    public void setSkills(java.lang.String someSkills)

### getSkills

    public java.lang.String getSkills()

### getNumberOfSkills

    public int getNumberOfSkills()

### setNumberOfSkills

    public void setNumberOfSkills(int skills)

### checkForHyperCycle

    public void checkForHyperCycle()

### clearLinks

    public void clearLinks()

### buildModel

    public void buildModel()

### begin

    public void begin()

  Description copied from interface: `SimModel`
  Begins a simulation run. All initialization, building the model, diplay, etc. should take place here. This method is called whenever the start button (or the step button if the run has not yet begun) is clicked. If running in batch mode this is called to kick off a new simulation run.

### setup

    public void setup()

  Description copied from interface: `SimModel`
  Prepares a model for a new run, typically by deallocating objects or setting them to some reasonable default. Called whenever the setup button is clicked or if operating in batch mode whenever a single run has ended in preparation for the next. Also called when the model is first loaded.

### getInitParam

    public java.lang.String[] getInitParam()

  Description copied from interface: `SimModel`
  Gets the names of the initial model parameters to set. These names must have get and set methods supplied by the model. For example, for the parameter maxAge, the model must have getMaxAge and setMaxAge methods.

  Returns:
    a String[] of the initial parameter names

### getSchedule

    public Schedule getSchedule()

  Description copied from interface: `SimModel`
  Gets the Schedule created by the model.

  Returns:
    the schedule created by the model

### getName

    public java.lang.String getName()

  Description copied from interface: `SimModel`
  Gets the name of the model/simulation.

  Returns:
    the name of the model/simulation

### main

    public static void main(java.lang.String[] args)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD