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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameters
public Parameters()
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()