jhplot
Class HCellular
- java.lang.Object
-
- jhplot.HCellular
-
public class HCellular extends java.lang.Object
A two-dimensional cellular automata toolkit.
-
-
Constructor Summary
Constructors Constructor and Description HCellular()
Build a Cellular automata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static double
convertDoubleParameter(java.lang.String string, double defaultValue)
Converts a String parameter into a double parameter.static int
convertIntParameter(java.lang.String string, int defaultValue)
Converts a String parameter into an integer parameter.void
doc()
Show documentationint
getBatchNumber()
Returns the batch numbercambria.CAConfig
getCAConfig()
Returns used CA space.int
getCellSize()
Returns the cell size in dotdouble
getCrossoverRate()
Returns the crossover rateint
getDeltaTime()
Returns Delta timeint
getEliteSize()
Returns the populationSizedouble
getGoalOfHs()
Returns the crossover ratejava.lang.String
getInitString()
Return initialization stringint
getMaxIter()
Returns the maximum generation number for GA evolutionsdouble
getMutationRate()
Returns the mutation rateint
getPopulationSize()
Returns the populationSizejava.lang.String
getRule()
Get current rule.java.util.ArrayList<java.lang.String>
getRules()
Get all available rulesjava.lang.String
getRunNumber()
Returns the run numberint
getTMax()
Returns used t_maxstatic boolean
getTorus(java.lang.String Torus)
java.lang.String
getUserModeString()
void
setCellSize(int i)
Set cell sizevoid
setDefault()
Set default parametersvoid
setDetltaTime(int i)
Set set delta timevoid
setInitFile(java.lang.String RuleFile)
Set initialization filevoid
setInitString(java.lang.String RuleString)
Set initialization string for the rulevoid
setNonGraphicItems()
Creates a CARule and a CAConfig.void
setPopulationSize(int i)
Set population sizeboolean
setRule(java.lang.String rule)
Set rule.void
visible()
Set visible frame
-
-
-
Method Detail
-
getRules
public java.util.ArrayList<java.lang.String> getRules()
Get all available rules- Returns:
- rule list
-
getRule
public java.lang.String getRule()
Get current rule.- Returns:
-
visible
public void visible()
Set visible frame
-
setInitString
public void setInitString(java.lang.String RuleString)
Set initialization string for the rule- Parameters:
RuleString
- initialization string
-
getInitString
public java.lang.String getInitString()
Return initialization string
-
doc
public void doc()
Show documentation
-
setInitFile
public void setInitFile(java.lang.String RuleFile)
Set initialization file- Parameters:
RuleFile
- input file for initialization
-
setRule
public boolean setRule(java.lang.String rule)
Set rule.- Parameters:
rule
-- Returns:
- false if rule does not exists
-
getCAConfig
public cambria.CAConfig getCAConfig()
Returns used CA space.
-
setNonGraphicItems
public void setNonGraphicItems()
Creates a CARule and a CAConfig.
-
getTorus
public static boolean getTorus(java.lang.String Torus)
-
setDefault
public void setDefault()
Set default parameters
-
getUserModeString
public java.lang.String getUserModeString()
-
getDeltaTime
public int getDeltaTime()
Returns Delta time
-
setDetltaTime
public void setDetltaTime(int i)
Set set delta time- Parameters:
i
-
-
getCellSize
public int getCellSize()
Returns the cell size in dot
-
setCellSize
public void setCellSize(int i)
Set cell size- Parameters:
i
-
-
getTMax
public int getTMax()
Returns used t_max
-
getBatchNumber
public int getBatchNumber()
Returns the batch number
-
getRunNumber
public java.lang.String getRunNumber()
Returns the run number
-
getPopulationSize
public int getPopulationSize()
Returns the populationSize
-
setPopulationSize
public void setPopulationSize(int i)
Set population size- Parameters:
i
-
-
getEliteSize
public int getEliteSize()
Returns the populationSize
-
getMutationRate
public double getMutationRate()
Returns the mutation rate
-
getCrossoverRate
public double getCrossoverRate()
Returns the crossover rate
-
getMaxIter
public int getMaxIter()
Returns the maximum generation number for GA evolutions
-
getGoalOfHs
public double getGoalOfHs()
Returns the crossover rate
-
convertIntParameter
public static int convertIntParameter(java.lang.String string, int defaultValue)
Converts a String parameter into an integer parameter.
-
convertDoubleParameter
public static double convertDoubleParameter(java.lang.String string, double defaultValue)
Converts a String parameter into a double parameter.
-
-
DMelt 3.0 © DataMelt by jWork.ORG