Util
Class Parameters

java.lang.Object
  |
  +--Util.Parameters

public class Parameters
extends java.lang.Object

This class stores the parameters that are used at various places in the simulation. Most of them can be set both from the control panel and the command line. As they are well described in the manual, they won't be discussed here.

Copyright (c) 2004 Paul Vogt


Constructor Summary
Parameters()
           
 
Method Summary
 void closeFile()
           
 void closeLexFile()
           
 void closeLexIIFile()
           
 void flushFile()
           
 boolean getAdaptation()
           
 int getAgentType()
           
 int getAlphabetSize()
           
 double getCreationProb()
           
 java.lang.String getDir()
           
 double getEtaN()
           
 double getEtaS()
           
 boolean[] getFeatures()
           
 java.io.PrintWriter getFile()
           
 boolean getFixedColours()
           
 boolean getFixedCxtSize()
           
 int getFOA()
           
 boolean getForget()
           
 int getForgetRate()
           
 char getGameType()
           
 double getGGProbability()
           
 boolean getHolistic()
           
 boolean getILM()
           
 boolean getIncrementalForgetting()
           
 java.io.PrintWriter getLexFile()
           
 java.lang.String getLexFileName()
           
 java.io.PrintWriter getLexIIFile()
           
 java.lang.String getLexIIFileName()
           
 boolean getLogFile()
           
 java.lang.String getLogFileName()
           
 int getMaxAgents()
           
 int getMaxCxtSize()
           
 int getNAgents()
           
 boolean getNewGame()
           
 int getNIterations()
           
 int getNMeanings()
           
 int getNNoLearning()
           
 double getNoiseCxt()
           
 int getNRuns()
           
 int getNSymbols()
           
 double getOGProbability()
           
 double getPAdultHearer()
           
 double getPAdultSpeaker()
           
 int getPopGrowth()
           
 boolean getPrintGame()
           
 boolean getPrintLexicon()
           
 boolean getPrintScore()
           
 boolean getQuit()
           
 boolean getRun()
           
 boolean getSaveLexicon()
           
 boolean getShowLexicon()
           
 boolean getSpeakerToSpeaker()
           
 boolean getStep()
           
 int getStepSize()
           
 boolean getStop()
           
 boolean getTest()
           
 boolean getTestPopulation()
           
 char getUpdatePType()
           
 char getUpdateScore()
           
 boolean getVariation()
           
 boolean getVisible()
           
 boolean ilmIncremental()
           
 void killFile()
           
 void openFile(java.io.File file)
           
 void openFile(java.lang.String filename)
           
 void openLexFile(java.io.File file)
           
 void openLexFile(java.lang.String filename)
           
 void openLexIIFile(java.io.File file)
           
 void openLexIIFile(java.lang.String filename)
           
 void parseParameters(java.lang.String[] pArgs)
           
 void setAdaptation(boolean b)
           
 void setAgentType(int n)
           
 void setAlphabetSize(int n)
           
 void setCreationProb(double b)
           
 void setDir(java.lang.String d)
           
 void setEtaN(double d)
           
 void setEtaS(double d)
           
 void setFeatures(boolean[] b)
           
 void setFixedColours(boolean b)
           
 void setFixedCxtSize(boolean b)
           
 void setFOA(int l)
           
 void setForget(boolean b)
           
 void setForgetRate(int i)
           
 void setGameType(char c)
           
 void setGGProbability(double d)
           
 void setILM(boolean b)
           
 void setIlmIncremental(boolean b)
           
 void setIncrementalForgetting(boolean b)
           
 void setLogFile(boolean b)
           
 void setLogFileName(java.lang.String f)
           
 void setMaxAgents(int i)
           
 void setMaxCxtSize(int n)
           
 void setNAgents(int n)
           
 void setNewGame(boolean b)
           
 void setNIterations(int i)
           
 void setNMeanings(int n)
           
 void setNNoLearning(int n)
           
 void setNoiseCxt(double x)
           
 void setNRuns(int n)
           
 void setNSymbols(int n)
           
 void setOGProbability(double d)
           
 void setPAdultHearer(double d)
           
 void setPAdultSpeaker(double d)
           
 void setPopGrowth(int i)
           
 void setPrintGame(boolean b)
           
 void setPrintLexicon(boolean b)
           
 void setPrintScore(boolean b)
           
 void setQuit(boolean b)
           
 void setRun(boolean b)
           
 void setSaveLexicon(boolean b)
           
 void setShowLexicon(boolean b)
           
 void setSpeakerToSpeaker(boolean d)
           
 void setStep(boolean b)
           
 void setStepSize(int n)
           
 void setStop(boolean b)
           
 void setTestPopulation(boolean b)
           
 void setTrainingSet(int n)
           
 void setUpdatePType(char c)
           
 void setUpdateScore(char c)
           
 void setVariation(boolean b)
           
 int trainingSet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters

public Parameters()
Method Detail

parseParameters

public void parseParameters(java.lang.String[] pArgs)

getNAgents

public int getNAgents()

setNAgents

public void setNAgents(int n)

getNRuns

public int getNRuns()

setNRuns

public void setNRuns(int n)

getMaxCxtSize

public int getMaxCxtSize()

setMaxCxtSize

public void setMaxCxtSize(int n)

getNoiseCxt

public double getNoiseCxt()

setNoiseCxt

public void setNoiseCxt(double x)

getRun

public boolean getRun()

setRun

public void setRun(boolean b)

getNewGame

public boolean getNewGame()

setNewGame

public void setNewGame(boolean b)

getFixedCxtSize

public boolean getFixedCxtSize()

setFixedCxtSize

public void setFixedCxtSize(boolean b)

getLogFile

public boolean getLogFile()

setLogFile

public void setLogFile(boolean b)

getPrintLexicon

public boolean getPrintLexicon()

setPrintLexicon

public void setPrintLexicon(boolean b)

getLogFileName

public java.lang.String getLogFileName()

setLogFileName

public void setLogFileName(java.lang.String f)

getLexFileName

public java.lang.String getLexFileName()

getLexIIFileName

public java.lang.String getLexIIFileName()

openFile

public void openFile(java.io.File file)
              throws java.io.IOException
java.io.IOException

openFile

public void openFile(java.lang.String filename)
              throws java.io.IOException
java.io.IOException

closeFile

public void closeFile()

killFile

public void killFile()

flushFile

public void flushFile()

openLexFile

public void openLexFile(java.io.File file)
                 throws java.io.IOException
java.io.IOException

openLexFile

public void openLexFile(java.lang.String filename)
                 throws java.io.IOException
java.io.IOException

getLexFile

public java.io.PrintWriter getLexFile()

closeLexFile

public void closeLexFile()

getFile

public java.io.PrintWriter getFile()

getStop

public boolean getStop()

setStop

public void setStop(boolean b)

getQuit

public boolean getQuit()

setQuit

public void setQuit(boolean b)

setShowLexicon

public void setShowLexicon(boolean b)

getShowLexicon

public boolean getShowLexicon()

getVisible

public boolean getVisible()

getCreationProb

public double getCreationProb()

setCreationProb

public void setCreationProb(double b)

getFeatures

public boolean[] getFeatures()

setFeatures

public void setFeatures(boolean[] b)

setILM

public void setILM(boolean b)

getILM

public boolean getILM()

setNIterations

public void setNIterations(int i)

getNIterations

public int getNIterations()

getGameType

public char getGameType()

setGameType

public void setGameType(char c)

setForget

public void setForget(boolean b)

getForget

public boolean getForget()

setForgetRate

public void setForgetRate(int i)

getForgetRate

public int getForgetRate()

setIncrementalForgetting

public void setIncrementalForgetting(boolean b)

getIncrementalForgetting

public boolean getIncrementalForgetting()

setIlmIncremental

public void setIlmIncremental(boolean b)

ilmIncremental

public boolean ilmIncremental()

setPopGrowth

public void setPopGrowth(int i)

getPopGrowth

public int getPopGrowth()

setMaxAgents

public void setMaxAgents(int i)

getMaxAgents

public int getMaxAgents()

setVariation

public void setVariation(boolean b)

getVariation

public boolean getVariation()

setOGProbability

public void setOGProbability(double d)

getOGProbability

public double getOGProbability()

setGGProbability

public void setGGProbability(double d)

getGGProbability

public double getGGProbability()

setSpeakerToSpeaker

public void setSpeakerToSpeaker(boolean d)

getSpeakerToSpeaker

public boolean getSpeakerToSpeaker()

setPAdultSpeaker

public void setPAdultSpeaker(double d)

getPAdultSpeaker

public double getPAdultSpeaker()

setPAdultHearer

public void setPAdultHearer(double d)

getPAdultHearer

public double getPAdultHearer()

setEtaN

public void setEtaN(double d)

getEtaN

public double getEtaN()

setEtaS

public void setEtaS(double d)

getEtaS

public double getEtaS()

getAdaptation

public boolean getAdaptation()

setAdaptation

public void setAdaptation(boolean b)

getSaveLexicon

public boolean getSaveLexicon()

setSaveLexicon

public void setSaveLexicon(boolean b)

openLexIIFile

public void openLexIIFile(java.io.File file)
                   throws java.io.IOException
java.io.IOException

openLexIIFile

public void openLexIIFile(java.lang.String filename)
                   throws java.io.IOException
java.io.IOException

getLexIIFile

public java.io.PrintWriter getLexIIFile()

closeLexIIFile

public void closeLexIIFile()

setUpdatePType

public void setUpdatePType(char c)

getUpdatePType

public char getUpdatePType()

setUpdateScore

public void setUpdateScore(char c)

getUpdateScore

public char getUpdateScore()

setFixedColours

public void setFixedColours(boolean b)

getFixedColours

public boolean getFixedColours()

setAgentType

public void setAgentType(int n)

getAgentType

public int getAgentType()

getHolistic

public boolean getHolistic()

getNNoLearning

public int getNNoLearning()

setNNoLearning

public void setNNoLearning(int n)

getTest

public boolean getTest()

getStep

public boolean getStep()

setStep

public void setStep(boolean b)

setFOA

public void setFOA(int l)

getFOA

public int getFOA()

getNMeanings

public int getNMeanings()

setNMeanings

public void setNMeanings(int n)

getNSymbols

public int getNSymbols()

setNSymbols

public void setNSymbols(int n)

setStepSize

public void setStepSize(int n)

getStepSize

public int getStepSize()

getPrintGame

public boolean getPrintGame()

setPrintGame

public void setPrintGame(boolean b)

getPrintScore

public boolean getPrintScore()

setPrintScore

public void setPrintScore(boolean b)

getDir

public java.lang.String getDir()

setDir

public void setDir(java.lang.String d)

setTestPopulation

public void setTestPopulation(boolean b)

getTestPopulation

public boolean getTestPopulation()

trainingSet

public int trainingSet()

setTrainingSet

public void setTrainingSet(int n)

setAlphabetSize

public void setAlphabetSize(int n)

getAlphabetSize

public int getAlphabetSize()