From 8189116ea4b5db4675e31dfd04a5687d55e29262 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Tue, 6 May 2014 14:29:37 +0100 Subject: Added javadocs, made minor changes to the comments --- doc/allclasses-frame.html | 135 ++++ doc/allclasses-noframe.html | 135 ++++ doc/constant-values.html | 333 +++++++++ doc/deprecated-list.html | 124 ++++ doc/help-doc.html | 229 ++++++ doc/index-files/index-1.html | 168 +++++ doc/index-files/index-10.html | 173 +++++ doc/index-files/index-11.html | 151 ++++ doc/index-files/index-12.html | 197 +++++ doc/index-files/index-13.html | 161 ++++ doc/index-files/index-14.html | 144 ++++ doc/index-files/index-15.html | 269 +++++++ doc/index-files/index-16.html | 340 +++++++++ doc/index-files/index-17.html | 428 +++++++++++ doc/index-files/index-18.html | 359 +++++++++ doc/index-files/index-19.html | 186 +++++ doc/index-files/index-2.html | 166 +++++ doc/index-files/index-20.html | 187 +++++ doc/index-files/index-21.html | 133 ++++ doc/index-files/index-22.html | 131 ++++ doc/index-files/index-3.html | 233 ++++++ doc/index-files/index-4.html | 262 +++++++ doc/index-files/index-5.html | 158 ++++ doc/index-files/index-6.html | 172 +++++ doc/index-files/index-7.html | 566 ++++++++++++++ doc/index-files/index-8.html | 155 ++++ doc/index-files/index-9.html | 206 ++++++ doc/index.html | 74 ++ doc/jcgp/JCGP.html | 704 ++++++++++++++++++ .../function/DigitalCircuitFunctions.And.html | 329 +++++++++ .../function/DigitalCircuitFunctions.AndNotA.html | 329 +++++++++ .../function/DigitalCircuitFunctions.AndNotB.html | 329 +++++++++ .../DigitalCircuitFunctions.ConstantOne.html | 329 +++++++++ .../DigitalCircuitFunctions.ConstantZero.html | 329 +++++++++ .../function/DigitalCircuitFunctions.Mux1.html | 330 +++++++++ .../function/DigitalCircuitFunctions.Mux2.html | 330 +++++++++ .../function/DigitalCircuitFunctions.Mux3.html | 330 +++++++++ .../function/DigitalCircuitFunctions.Mux4.html | 330 +++++++++ .../function/DigitalCircuitFunctions.Nand.html | 329 +++++++++ .../function/DigitalCircuitFunctions.Nor.html | 329 +++++++++ .../function/DigitalCircuitFunctions.NotA.html | 329 +++++++++ .../function/DigitalCircuitFunctions.NotB.html | 329 +++++++++ .../function/DigitalCircuitFunctions.Or.html | 329 +++++++++ .../function/DigitalCircuitFunctions.OrNotA.html | 329 +++++++++ .../function/DigitalCircuitFunctions.OrNotB.html | 329 +++++++++ .../function/DigitalCircuitFunctions.WireA.html | 329 +++++++++ .../function/DigitalCircuitFunctions.WireB.html | 329 +++++++++ .../function/DigitalCircuitFunctions.Xnor.html | 329 +++++++++ .../function/DigitalCircuitFunctions.Xor.html | 329 +++++++++ .../backend/function/DigitalCircuitFunctions.html | 398 ++++++++++ doc/jcgp/backend/function/Function.html | 310 ++++++++ doc/jcgp/backend/function/FunctionSet.html | 452 ++++++++++++ .../SymbolicRegressionFunctions.Absolute.html | 333 +++++++++ .../SymbolicRegressionFunctions.Addition.html | 329 +++++++++ .../SymbolicRegressionFunctions.Cosine.html | 333 +++++++++ .../SymbolicRegressionFunctions.CosineAB.html | 333 +++++++++ .../SymbolicRegressionFunctions.Division.html | 330 +++++++++ .../SymbolicRegressionFunctions.Exponential.html | 333 +++++++++ ...mbolicRegressionFunctions.HyperbolicCosine.html | 333 +++++++++ ...SymbolicRegressionFunctions.HyperbolicSine.html | 333 +++++++++ ...bolicRegressionFunctions.HyperbolicTangent.html | 333 +++++++++ .../SymbolicRegressionFunctions.Hypotenuse.html | 334 +++++++++ .../SymbolicRegressionFunctions.LogBaseTen.html | 335 +++++++++ ...SymbolicRegressionFunctions.Multiplication.html | 329 +++++++++ .../SymbolicRegressionFunctions.NaturalLog.html | 335 +++++++++ .../SymbolicRegressionFunctions.Power.html | 333 +++++++++ .../SymbolicRegressionFunctions.Reciprocal.html | 330 +++++++++ .../function/SymbolicRegressionFunctions.Sine.html | 333 +++++++++ .../SymbolicRegressionFunctions.SineAB.html | 333 +++++++++ .../SymbolicRegressionFunctions.SquareRoot.html | 334 +++++++++ .../SymbolicRegressionFunctions.Subtraction.html | 329 +++++++++ .../SymbolicRegressionFunctions.Tangent.html | 335 +++++++++ .../function/SymbolicRegressionFunctions.html | 439 +++++++++++ ...avellingSalesmanFunctions.AbsoluteCosineAB.html | 334 +++++++++ ...esmanFunctions.AbsoluteHyperbolicTangentAB.html | 334 +++++++++ ...TravellingSalesmanFunctions.AbsoluteSineAB.html | 334 +++++++++ ...ravellingSalesmanFunctions.BoundedDivision.html | 330 +++++++++ .../function/TravellingSalesmanFunctions.Cube.html | 329 +++++++++ ...TravellingSalesmanFunctions.Multiplication.html | 329 +++++++++ ...TravellingSalesmanFunctions.ScaledAddition.html | 330 +++++++++ ...vellingSalesmanFunctions.ScaledExponential.html | 334 +++++++++ ...avellingSalesmanFunctions.ScaledHypotenuse.html | 334 +++++++++ .../TravellingSalesmanFunctions.Square.html | 330 +++++++++ .../TravellingSalesmanFunctions.SquareRoot.html | 334 +++++++++ ...ingSalesmanFunctions.SquaredMultiplication.html | 329 +++++++++ ...lingSalesmanFunctions.SymmetricSubtraction.html | 330 +++++++++ .../function/TravellingSalesmanFunctions.html | 357 +++++++++ doc/jcgp/backend/function/UnsignedInteger.html | 364 +++++++++ .../class-use/DigitalCircuitFunctions.And.html | 124 ++++ .../class-use/DigitalCircuitFunctions.AndNotA.html | 124 ++++ .../class-use/DigitalCircuitFunctions.AndNotB.html | 124 ++++ .../DigitalCircuitFunctions.ConstantOne.html | 124 ++++ .../DigitalCircuitFunctions.ConstantZero.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Mux1.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Mux2.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Mux3.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Mux4.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Nand.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Nor.html | 124 ++++ .../class-use/DigitalCircuitFunctions.NotA.html | 124 ++++ .../class-use/DigitalCircuitFunctions.NotB.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Or.html | 124 ++++ .../class-use/DigitalCircuitFunctions.OrNotA.html | 124 ++++ .../class-use/DigitalCircuitFunctions.OrNotB.html | 124 ++++ .../class-use/DigitalCircuitFunctions.WireA.html | 124 ++++ .../class-use/DigitalCircuitFunctions.WireB.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Xnor.html | 124 ++++ .../class-use/DigitalCircuitFunctions.Xor.html | 124 ++++ .../class-use/DigitalCircuitFunctions.html | 124 ++++ doc/jcgp/backend/function/class-use/Function.html | 633 ++++++++++++++++ .../backend/function/class-use/FunctionSet.html | 302 ++++++++ .../SymbolicRegressionFunctions.Absolute.html | 124 ++++ .../SymbolicRegressionFunctions.Addition.html | 124 ++++ .../SymbolicRegressionFunctions.Cosine.html | 124 ++++ .../SymbolicRegressionFunctions.CosineAB.html | 124 ++++ .../SymbolicRegressionFunctions.Division.html | 124 ++++ .../SymbolicRegressionFunctions.Exponential.html | 124 ++++ ...mbolicRegressionFunctions.HyperbolicCosine.html | 124 ++++ ...SymbolicRegressionFunctions.HyperbolicSine.html | 124 ++++ ...bolicRegressionFunctions.HyperbolicTangent.html | 124 ++++ .../SymbolicRegressionFunctions.Hypotenuse.html | 124 ++++ .../SymbolicRegressionFunctions.LogBaseTen.html | 124 ++++ ...SymbolicRegressionFunctions.Multiplication.html | 124 ++++ .../SymbolicRegressionFunctions.NaturalLog.html | 124 ++++ .../SymbolicRegressionFunctions.Power.html | 124 ++++ .../SymbolicRegressionFunctions.Reciprocal.html | 124 ++++ .../SymbolicRegressionFunctions.Sine.html | 124 ++++ .../SymbolicRegressionFunctions.SineAB.html | 124 ++++ .../SymbolicRegressionFunctions.SquareRoot.html | 124 ++++ .../SymbolicRegressionFunctions.Subtraction.html | 124 ++++ .../SymbolicRegressionFunctions.Tangent.html | 124 ++++ .../class-use/SymbolicRegressionFunctions.html | 124 ++++ ...avellingSalesmanFunctions.AbsoluteCosineAB.html | 124 ++++ ...esmanFunctions.AbsoluteHyperbolicTangentAB.html | 124 ++++ ...TravellingSalesmanFunctions.AbsoluteSineAB.html | 124 ++++ ...ravellingSalesmanFunctions.BoundedDivision.html | 124 ++++ .../TravellingSalesmanFunctions.Cube.html | 124 ++++ ...TravellingSalesmanFunctions.Multiplication.html | 124 ++++ ...TravellingSalesmanFunctions.ScaledAddition.html | 124 ++++ ...vellingSalesmanFunctions.ScaledExponential.html | 124 ++++ ...avellingSalesmanFunctions.ScaledHypotenuse.html | 124 ++++ .../TravellingSalesmanFunctions.Square.html | 124 ++++ .../TravellingSalesmanFunctions.SquareRoot.html | 124 ++++ ...ingSalesmanFunctions.SquaredMultiplication.html | 124 ++++ ...lingSalesmanFunctions.SymmetricSubtraction.html | 124 ++++ .../class-use/TravellingSalesmanFunctions.html | 124 ++++ .../function/class-use/UnsignedInteger.html | 263 +++++++ doc/jcgp/backend/function/package-frame.html | 78 ++ doc/jcgp/backend/function/package-summary.html | 502 +++++++++++++ doc/jcgp/backend/function/package-tree.html | 201 +++++ doc/jcgp/backend/function/package-use.html | 289 ++++++++ doc/jcgp/backend/modules/Module.html | 288 ++++++++ doc/jcgp/backend/modules/class-use/Module.html | 292 ++++++++ .../backend/modules/es/EvolutionaryStrategy.html | 290 ++++++++ doc/jcgp/backend/modules/es/MuPlusLambda.html | 330 +++++++++ .../backend/modules/es/TournamentSelection.html | 333 +++++++++ .../modules/es/class-use/EvolutionaryStrategy.html | 213 ++++++ .../backend/modules/es/class-use/MuPlusLambda.html | 124 ++++ .../modules/es/class-use/TournamentSelection.html | 124 ++++ doc/jcgp/backend/modules/es/package-frame.html | 22 + doc/jcgp/backend/modules/es/package-summary.html | 162 ++++ doc/jcgp/backend/modules/es/package-tree.html | 146 ++++ doc/jcgp/backend/modules/es/package-use.html | 180 +++++ .../backend/modules/mutator/FixedPointMutator.html | 284 +++++++ doc/jcgp/backend/modules/mutator/Mutator.html | 281 +++++++ .../modules/mutator/PercentPointMutator.html | 285 +++++++ doc/jcgp/backend/modules/mutator/PointMutator.html | 281 +++++++ .../modules/mutator/ProbabilisticMutator.html | 319 ++++++++ .../mutator/class-use/FixedPointMutator.html | 124 ++++ .../backend/modules/mutator/class-use/Mutator.html | 269 +++++++ .../mutator/class-use/PercentPointMutator.html | 124 ++++ .../modules/mutator/class-use/PointMutator.html | 179 +++++ .../mutator/class-use/ProbabilisticMutator.html | 124 ++++ .../backend/modules/mutator/package-frame.html | 24 + .../backend/modules/mutator/package-summary.html | 182 +++++ doc/jcgp/backend/modules/mutator/package-tree.html | 151 ++++ doc/jcgp/backend/modules/mutator/package-use.html | 210 ++++++ doc/jcgp/backend/modules/package-frame.html | 20 + doc/jcgp/backend/modules/package-summary.html | 144 ++++ doc/jcgp/backend/modules/package-tree.html | 137 ++++ doc/jcgp/backend/modules/package-use.html | 201 +++++ doc/jcgp/backend/modules/problem/BestFitness.html | 341 +++++++++ .../modules/problem/DigitalCircuitProblem.html | 455 ++++++++++++ doc/jcgp/backend/modules/problem/Problem.html | 508 +++++++++++++ .../modules/problem/SymbolicRegressionProblem.html | 468 ++++++++++++ .../modules/problem/TestCaseProblem.TestCase.html | 358 +++++++++ .../backend/modules/problem/TestCaseProblem.html | 427 +++++++++++ .../modules/problem/TravellingSalesmanProblem.html | 433 +++++++++++ .../modules/problem/class-use/BestFitness.html | 212 ++++++ .../problem/class-use/DigitalCircuitProblem.html | 124 ++++ .../backend/modules/problem/class-use/Problem.html | 217 ++++++ .../class-use/SymbolicRegressionProblem.html | 124 ++++ .../class-use/TestCaseProblem.TestCase.html | 249 +++++++ .../modules/problem/class-use/TestCaseProblem.html | 227 ++++++ .../class-use/TravellingSalesmanProblem.html | 124 ++++ .../backend/modules/problem/package-frame.html | 28 + .../backend/modules/problem/package-summary.html | 188 +++++ doc/jcgp/backend/modules/problem/package-tree.html | 163 ++++ doc/jcgp/backend/modules/problem/package-use.html | 305 ++++++++ doc/jcgp/backend/parameters/BooleanParameter.html | 394 ++++++++++ doc/jcgp/backend/parameters/DoubleParameter.html | 394 ++++++++++ doc/jcgp/backend/parameters/IntegerParameter.html | 394 ++++++++++ doc/jcgp/backend/parameters/Parameter.html | 466 ++++++++++++ doc/jcgp/backend/parameters/ParameterStatus.html | 432 +++++++++++ .../parameters/class-use/BooleanParameter.html | 167 +++++ .../parameters/class-use/DoubleParameter.html | 167 +++++ .../parameters/class-use/IntegerParameter.html | 237 ++++++ .../backend/parameters/class-use/Parameter.html | 267 +++++++ .../parameters/class-use/ParameterStatus.html | 177 +++++ .../parameters/monitors/BooleanMonitor.html | 368 +++++++++ .../backend/parameters/monitors/DoubleMonitor.html | 368 +++++++++ .../parameters/monitors/IntegerMonitor.html | 368 +++++++++ .../monitors/class-use/BooleanMonitor.html | 124 ++++ .../monitors/class-use/DoubleMonitor.html | 124 ++++ .../monitors/class-use/IntegerMonitor.html | 124 ++++ .../backend/parameters/monitors/package-frame.html | 22 + .../parameters/monitors/package-summary.html | 159 ++++ .../backend/parameters/monitors/package-tree.html | 155 ++++ .../backend/parameters/monitors/package-use.html | 124 ++++ doc/jcgp/backend/parameters/package-frame.html | 27 + doc/jcgp/backend/parameters/package-summary.html | 179 +++++ doc/jcgp/backend/parameters/package-tree.html | 155 ++++ doc/jcgp/backend/parameters/package-use.html | 263 +++++++ doc/jcgp/backend/parsers/ChromosomeParser.html | 324 ++++++++ doc/jcgp/backend/parsers/FunctionParser.html | 301 ++++++++ doc/jcgp/backend/parsers/ParameterParser.html | 294 ++++++++ doc/jcgp/backend/parsers/TestCaseParser.html | 296 ++++++++ .../parsers/class-use/ChromosomeParser.html | 124 ++++ .../backend/parsers/class-use/FunctionParser.html | 124 ++++ .../backend/parsers/class-use/ParameterParser.html | 124 ++++ .../backend/parsers/class-use/TestCaseParser.html | 124 ++++ doc/jcgp/backend/parsers/package-frame.html | 23 + doc/jcgp/backend/parsers/package-summary.html | 166 +++++ doc/jcgp/backend/parsers/package-tree.html | 140 ++++ doc/jcgp/backend/parsers/package-use.html | 124 ++++ doc/jcgp/backend/population/Chromosome.html | 742 +++++++++++++++++++ doc/jcgp/backend/population/Connection.html | 249 +++++++ doc/jcgp/backend/population/Gene.html | 241 ++++++ doc/jcgp/backend/population/Input.html | 361 +++++++++ doc/jcgp/backend/population/MutableElement.html | 306 ++++++++ doc/jcgp/backend/population/Node.html | 544 ++++++++++++++ doc/jcgp/backend/population/Output.html | 447 +++++++++++ doc/jcgp/backend/population/Population.html | 411 +++++++++++ .../backend/population/class-use/Chromosome.html | 340 +++++++++ .../backend/population/class-use/Connection.html | 301 ++++++++ doc/jcgp/backend/population/class-use/Gene.html | 194 +++++ doc/jcgp/backend/population/class-use/Input.html | 187 +++++ .../population/class-use/MutableElement.html | 228 ++++++ doc/jcgp/backend/population/class-use/Node.html | 244 ++++++ doc/jcgp/backend/population/class-use/Output.html | 202 +++++ .../backend/population/class-use/Population.html | 265 +++++++ doc/jcgp/backend/population/package-frame.html | 29 + doc/jcgp/backend/population/package-summary.html | 196 +++++ doc/jcgp/backend/population/package-tree.html | 146 ++++ doc/jcgp/backend/population/package-use.html | 338 +++++++++ doc/jcgp/backend/resources/Console.html | 286 +++++++ .../backend/resources/ModifiableResources.html | 819 +++++++++++++++++++++ doc/jcgp/backend/resources/Resources.html | 804 ++++++++++++++++++++ doc/jcgp/backend/resources/class-use/Console.html | 214 ++++++ .../resources/class-use/ModifiableResources.html | 234 ++++++ .../backend/resources/class-use/Resources.html | 379 ++++++++++ doc/jcgp/backend/resources/package-frame.html | 25 + doc/jcgp/backend/resources/package-summary.html | 167 +++++ doc/jcgp/backend/resources/package-tree.html | 145 ++++ doc/jcgp/backend/resources/package-use.html | 326 ++++++++ doc/jcgp/backend/statistics/RunEntry.html | 354 +++++++++ doc/jcgp/backend/statistics/StatisticsLogger.html | 562 ++++++++++++++ .../backend/statistics/class-use/RunEntry.html | 124 ++++ .../statistics/class-use/StatisticsLogger.html | 124 ++++ doc/jcgp/backend/statistics/package-frame.html | 21 + doc/jcgp/backend/statistics/package-summary.html | 150 ++++ doc/jcgp/backend/statistics/package-tree.html | 138 ++++ doc/jcgp/backend/statistics/package-use.html | 124 ++++ doc/jcgp/class-use/JCGP.html | 164 +++++ doc/jcgp/gui/GUI.html | 707 ++++++++++++++++++ doc/jcgp/gui/class-use/GUI.html | 222 ++++++ doc/jcgp/gui/console/GUIConsole.html | 458 ++++++++++++ doc/jcgp/gui/console/class-use/GUIConsole.html | 124 ++++ doc/jcgp/gui/console/package-frame.html | 20 + doc/jcgp/gui/console/package-summary.html | 144 ++++ doc/jcgp/gui/console/package-tree.html | 157 ++++ doc/jcgp/gui/console/package-use.html | 124 ++++ doc/jcgp/gui/dragresize/HorizontalDragResize.html | 253 +++++++ doc/jcgp/gui/dragresize/VerticalDragResize.html | 253 +++++++ .../dragresize/class-use/HorizontalDragResize.html | 124 ++++ .../dragresize/class-use/VerticalDragResize.html | 124 ++++ doc/jcgp/gui/dragresize/package-frame.html | 21 + doc/jcgp/gui/dragresize/package-summary.html | 152 ++++ doc/jcgp/gui/dragresize/package-tree.html | 138 ++++ doc/jcgp/gui/dragresize/package-use.html | 124 ++++ doc/jcgp/gui/package-frame.html | 20 + doc/jcgp/gui/package-summary.html | 144 ++++ doc/jcgp/gui/package-tree.html | 141 ++++ doc/jcgp/gui/package-use.html | 201 +++++ doc/jcgp/gui/population/ChromosomePane.html | 488 ++++++++++++ doc/jcgp/gui/population/FunctionSelector.html | 408 ++++++++++ doc/jcgp/gui/population/GUIGene.GUIGeneState.html | 429 +++++++++++ doc/jcgp/gui/population/GUIGene.html | 634 ++++++++++++++++ doc/jcgp/gui/population/GUIInput.html | 566 ++++++++++++++ doc/jcgp/gui/population/GUINode.html | 614 +++++++++++++++ doc/jcgp/gui/population/GUIOutput.html | 591 +++++++++++++++ doc/jcgp/gui/population/PopulationPane.html | 513 +++++++++++++ .../gui/population/class-use/ChromosomePane.html | 175 +++++ .../gui/population/class-use/FunctionSelector.html | 124 ++++ .../population/class-use/GUIGene.GUIGeneState.html | 220 ++++++ doc/jcgp/gui/population/class-use/GUIGene.html | 197 +++++ doc/jcgp/gui/population/class-use/GUIInput.html | 124 ++++ doc/jcgp/gui/population/class-use/GUINode.html | 188 +++++ doc/jcgp/gui/population/class-use/GUIOutput.html | 124 ++++ .../gui/population/class-use/PopulationPane.html | 164 +++++ doc/jcgp/gui/population/package-frame.html | 30 + doc/jcgp/gui/population/package-summary.html | 181 +++++ doc/jcgp/gui/population/package-tree.html | 194 +++++ doc/jcgp/gui/population/package-use.html | 188 +++++ doc/jcgp/gui/settings/SettingsPane.html | 495 +++++++++++++ doc/jcgp/gui/settings/class-use/SettingsPane.html | 167 +++++ doc/jcgp/gui/settings/package-frame.html | 20 + doc/jcgp/gui/settings/package-summary.html | 142 ++++ doc/jcgp/gui/settings/package-tree.html | 157 ++++ doc/jcgp/gui/settings/package-use.html | 157 ++++ .../settings/parameters/GUIBooleanParameter.html | 392 ++++++++++ .../settings/parameters/GUIDoubleParameter.html | 392 ++++++++++ .../settings/parameters/GUIIntegerParameter.html | 392 ++++++++++ doc/jcgp/gui/settings/parameters/GUIParameter.html | 575 +++++++++++++++ .../parameters/class-use/GUIBooleanParameter.html | 124 ++++ .../parameters/class-use/GUIDoubleParameter.html | 124 ++++ .../parameters/class-use/GUIIntegerParameter.html | 124 ++++ .../parameters/class-use/GUIParameter.html | 197 +++++ .../gui/settings/parameters/package-frame.html | 23 + .../gui/settings/parameters/package-summary.html | 165 +++++ doc/jcgp/gui/settings/parameters/package-tree.html | 163 ++++ doc/jcgp/gui/settings/parameters/package-use.html | 159 ++++ doc/jcgp/gui/settings/testcase/TestCaseTable.html | 343 +++++++++ .../settings/testcase/class-use/TestCaseTable.html | 164 +++++ doc/jcgp/gui/settings/testcase/package-frame.html | 20 + .../gui/settings/testcase/package-summary.html | 144 ++++ doc/jcgp/gui/settings/testcase/package-tree.html | 145 ++++ doc/jcgp/gui/settings/testcase/package-use.html | 159 ++++ doc/jcgp/package-frame.html | 20 + doc/jcgp/package-summary.html | 144 ++++ doc/jcgp/package-tree.html | 137 ++++ doc/jcgp/package-use.html | 159 ++++ doc/overview-frame.html | 39 + doc/overview-summary.html | 207 ++++++ doc/overview-tree.html | 386 ++++++++++ doc/package-list | 19 + doc/script.js | 30 + doc/stylesheet.css | 574 +++++++++++++++ src/jcgp/JCGP.java | 53 +- .../backend/function/DigitalCircuitFunctions.java | 6 +- .../function/SymbolicRegressionFunctions.java | 8 +- .../function/TravellingSalesmanFunctions.java | 11 +- src/jcgp/backend/modules/Module.java | 22 + .../backend/modules/es/EvolutionaryStrategy.java | 13 +- src/jcgp/backend/modules/es/MuPlusLambda.java | 43 +- .../backend/modules/es/TournamentSelection.java | 33 +- .../backend/modules/mutator/FixedPointMutator.java | 2 +- src/jcgp/backend/modules/mutator/Mutator.java | 12 +- .../modules/mutator/PercentPointMutator.java | 4 +- src/jcgp/backend/modules/mutator/PointMutator.java | 31 +- .../modules/mutator/ProbabilisticMutator.java | 37 +- .../modules/problem/DigitalCircuitProblem.java | 52 +- src/jcgp/backend/modules/problem/Problem.java | 57 +- .../modules/problem/SymbolicRegressionProblem.java | 46 +- .../backend/modules/problem/TestCaseProblem.java | 14 +- .../modules/problem/TravellingSalesmanProblem.java | 56 -- src/jcgp/backend/parameters/BooleanParameter.java | 1 + src/jcgp/backend/parameters/DoubleParameter.java | 1 + src/jcgp/backend/parameters/IntegerParameter.java | 1 + src/jcgp/backend/parameters/Parameter.java | 2 +- src/jcgp/backend/parameters/ParameterStatus.java | 1 + src/jcgp/backend/parsers/ChromosomeParser.java | 3 +- src/jcgp/backend/population/Chromosome.java | 7 +- src/jcgp/backend/population/MutableElement.java | 2 +- src/jcgp/backend/population/Population.java | 64 +- .../backend/resources/ModifiableResources.java | 8 + src/jcgp/backend/resources/Resources.java | 14 +- src/jcgp/backend/tests/PopulationTests.java | 4 +- src/jcgp/gui/GUI.java | 4 + src/jcgp/gui/console/GUIConsole.java | 21 +- src/jcgp/gui/dragresize/HorizontalDragResize.java | 51 +- src/jcgp/gui/dragresize/VerticalDragResize.java | 46 +- src/jcgp/gui/population/ChromosomePane.java | 41 +- src/jcgp/gui/population/GUIGene.java | 6 - src/jcgp/gui/population/GUIInput.java | 3 +- src/jcgp/gui/population/GUINode.java | 18 +- src/jcgp/gui/population/GUIOutput.java | 15 +- src/jcgp/gui/population/PopulationPane.java | 6 +- src/jcgp/gui/settings/SettingsPane.java | 9 +- src/jcgp/gui/settings/parameters/GUIParameter.java | 2 +- src/jcgp/gui/settings/testcase/TestCaseTable.java | 33 +- 391 files changed, 82461 insertions(+), 363 deletions(-) create mode 100644 doc/allclasses-frame.html create mode 100644 doc/allclasses-noframe.html create mode 100644 doc/constant-values.html create mode 100644 doc/deprecated-list.html create mode 100644 doc/help-doc.html create mode 100644 doc/index-files/index-1.html create mode 100644 doc/index-files/index-10.html create mode 100644 doc/index-files/index-11.html create mode 100644 doc/index-files/index-12.html create mode 100644 doc/index-files/index-13.html create mode 100644 doc/index-files/index-14.html create mode 100644 doc/index-files/index-15.html create mode 100644 doc/index-files/index-16.html create mode 100644 doc/index-files/index-17.html create mode 100644 doc/index-files/index-18.html create mode 100644 doc/index-files/index-19.html create mode 100644 doc/index-files/index-2.html create mode 100644 doc/index-files/index-20.html create mode 100644 doc/index-files/index-21.html create mode 100644 doc/index-files/index-22.html create mode 100644 doc/index-files/index-3.html create mode 100644 doc/index-files/index-4.html create mode 100644 doc/index-files/index-5.html create mode 100644 doc/index-files/index-6.html create mode 100644 doc/index-files/index-7.html create mode 100644 doc/index-files/index-8.html create mode 100644 doc/index-files/index-9.html create mode 100644 doc/index.html create mode 100644 doc/jcgp/JCGP.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.And.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.AndNotA.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.AndNotB.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.ConstantOne.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.ConstantZero.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Mux1.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Mux2.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Mux3.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Mux4.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Nand.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Nor.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.NotA.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.NotB.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Or.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.OrNotA.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.OrNotB.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.WireA.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.WireB.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Xnor.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.Xor.html create mode 100644 doc/jcgp/backend/function/DigitalCircuitFunctions.html create mode 100644 doc/jcgp/backend/function/Function.html create mode 100644 doc/jcgp/backend/function/FunctionSet.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Absolute.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Addition.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Cosine.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.CosineAB.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Division.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Exponential.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicCosine.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicSine.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicTangent.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Hypotenuse.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.LogBaseTen.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Multiplication.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.NaturalLog.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Power.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Reciprocal.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Sine.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.SineAB.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.SquareRoot.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Subtraction.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.Tangent.html create mode 100644 doc/jcgp/backend/function/SymbolicRegressionFunctions.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteCosineAB.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteSineAB.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.BoundedDivision.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.Cube.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.Multiplication.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledAddition.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledExponential.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledHypotenuse.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.Square.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.SquareRoot.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.SquaredMultiplication.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.SymmetricSubtraction.html create mode 100644 doc/jcgp/backend/function/TravellingSalesmanFunctions.html create mode 100644 doc/jcgp/backend/function/UnsignedInteger.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.And.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.AndNotA.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.AndNotB.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.ConstantOne.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.ConstantZero.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux1.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux2.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux3.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux4.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Nand.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Nor.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.NotA.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.NotB.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Or.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.OrNotA.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.OrNotB.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.WireA.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.WireB.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Xnor.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Xor.html create mode 100644 doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.html create mode 100644 doc/jcgp/backend/function/class-use/Function.html create mode 100644 doc/jcgp/backend/function/class-use/FunctionSet.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Absolute.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Addition.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Cosine.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.CosineAB.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Division.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Exponential.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicCosine.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicSine.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicTangent.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Hypotenuse.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.LogBaseTen.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Multiplication.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.NaturalLog.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Power.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Reciprocal.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Sine.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.SineAB.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.SquareRoot.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Subtraction.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Tangent.html create mode 100644 doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteCosineAB.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteSineAB.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.BoundedDivision.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Cube.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Multiplication.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledAddition.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledExponential.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledHypotenuse.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Square.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SquareRoot.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SquaredMultiplication.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SymmetricSubtraction.html create mode 100644 doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.html create mode 100644 doc/jcgp/backend/function/class-use/UnsignedInteger.html create mode 100644 doc/jcgp/backend/function/package-frame.html create mode 100644 doc/jcgp/backend/function/package-summary.html create mode 100644 doc/jcgp/backend/function/package-tree.html create mode 100644 doc/jcgp/backend/function/package-use.html create mode 100644 doc/jcgp/backend/modules/Module.html create mode 100644 doc/jcgp/backend/modules/class-use/Module.html create mode 100644 doc/jcgp/backend/modules/es/EvolutionaryStrategy.html create mode 100644 doc/jcgp/backend/modules/es/MuPlusLambda.html create mode 100644 doc/jcgp/backend/modules/es/TournamentSelection.html create mode 100644 doc/jcgp/backend/modules/es/class-use/EvolutionaryStrategy.html create mode 100644 doc/jcgp/backend/modules/es/class-use/MuPlusLambda.html create mode 100644 doc/jcgp/backend/modules/es/class-use/TournamentSelection.html create mode 100644 doc/jcgp/backend/modules/es/package-frame.html create mode 100644 doc/jcgp/backend/modules/es/package-summary.html create mode 100644 doc/jcgp/backend/modules/es/package-tree.html create mode 100644 doc/jcgp/backend/modules/es/package-use.html create mode 100644 doc/jcgp/backend/modules/mutator/FixedPointMutator.html create mode 100644 doc/jcgp/backend/modules/mutator/Mutator.html create mode 100644 doc/jcgp/backend/modules/mutator/PercentPointMutator.html create mode 100644 doc/jcgp/backend/modules/mutator/PointMutator.html create mode 100644 doc/jcgp/backend/modules/mutator/ProbabilisticMutator.html create mode 100644 doc/jcgp/backend/modules/mutator/class-use/FixedPointMutator.html create mode 100644 doc/jcgp/backend/modules/mutator/class-use/Mutator.html create mode 100644 doc/jcgp/backend/modules/mutator/class-use/PercentPointMutator.html create mode 100644 doc/jcgp/backend/modules/mutator/class-use/PointMutator.html create mode 100644 doc/jcgp/backend/modules/mutator/class-use/ProbabilisticMutator.html create mode 100644 doc/jcgp/backend/modules/mutator/package-frame.html create mode 100644 doc/jcgp/backend/modules/mutator/package-summary.html create mode 100644 doc/jcgp/backend/modules/mutator/package-tree.html create mode 100644 doc/jcgp/backend/modules/mutator/package-use.html create mode 100644 doc/jcgp/backend/modules/package-frame.html create mode 100644 doc/jcgp/backend/modules/package-summary.html create mode 100644 doc/jcgp/backend/modules/package-tree.html create mode 100644 doc/jcgp/backend/modules/package-use.html create mode 100644 doc/jcgp/backend/modules/problem/BestFitness.html create mode 100644 doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html create mode 100644 doc/jcgp/backend/modules/problem/Problem.html create mode 100644 doc/jcgp/backend/modules/problem/SymbolicRegressionProblem.html create mode 100644 doc/jcgp/backend/modules/problem/TestCaseProblem.TestCase.html create mode 100644 doc/jcgp/backend/modules/problem/TestCaseProblem.html create mode 100644 doc/jcgp/backend/modules/problem/TravellingSalesmanProblem.html create mode 100644 doc/jcgp/backend/modules/problem/class-use/BestFitness.html create mode 100644 doc/jcgp/backend/modules/problem/class-use/DigitalCircuitProblem.html create mode 100644 doc/jcgp/backend/modules/problem/class-use/Problem.html create mode 100644 doc/jcgp/backend/modules/problem/class-use/SymbolicRegressionProblem.html create mode 100644 doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.TestCase.html create mode 100644 doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.html create mode 100644 doc/jcgp/backend/modules/problem/class-use/TravellingSalesmanProblem.html create mode 100644 doc/jcgp/backend/modules/problem/package-frame.html create mode 100644 doc/jcgp/backend/modules/problem/package-summary.html create mode 100644 doc/jcgp/backend/modules/problem/package-tree.html create mode 100644 doc/jcgp/backend/modules/problem/package-use.html create mode 100644 doc/jcgp/backend/parameters/BooleanParameter.html create mode 100644 doc/jcgp/backend/parameters/DoubleParameter.html create mode 100644 doc/jcgp/backend/parameters/IntegerParameter.html create mode 100644 doc/jcgp/backend/parameters/Parameter.html create mode 100644 doc/jcgp/backend/parameters/ParameterStatus.html create mode 100644 doc/jcgp/backend/parameters/class-use/BooleanParameter.html create mode 100644 doc/jcgp/backend/parameters/class-use/DoubleParameter.html create mode 100644 doc/jcgp/backend/parameters/class-use/IntegerParameter.html create mode 100644 doc/jcgp/backend/parameters/class-use/Parameter.html create mode 100644 doc/jcgp/backend/parameters/class-use/ParameterStatus.html create mode 100644 doc/jcgp/backend/parameters/monitors/BooleanMonitor.html create mode 100644 doc/jcgp/backend/parameters/monitors/DoubleMonitor.html create mode 100644 doc/jcgp/backend/parameters/monitors/IntegerMonitor.html create mode 100644 doc/jcgp/backend/parameters/monitors/class-use/BooleanMonitor.html create mode 100644 doc/jcgp/backend/parameters/monitors/class-use/DoubleMonitor.html create mode 100644 doc/jcgp/backend/parameters/monitors/class-use/IntegerMonitor.html create mode 100644 doc/jcgp/backend/parameters/monitors/package-frame.html create mode 100644 doc/jcgp/backend/parameters/monitors/package-summary.html create mode 100644 doc/jcgp/backend/parameters/monitors/package-tree.html create mode 100644 doc/jcgp/backend/parameters/monitors/package-use.html create mode 100644 doc/jcgp/backend/parameters/package-frame.html create mode 100644 doc/jcgp/backend/parameters/package-summary.html create mode 100644 doc/jcgp/backend/parameters/package-tree.html create mode 100644 doc/jcgp/backend/parameters/package-use.html create mode 100644 doc/jcgp/backend/parsers/ChromosomeParser.html create mode 100644 doc/jcgp/backend/parsers/FunctionParser.html create mode 100644 doc/jcgp/backend/parsers/ParameterParser.html create mode 100644 doc/jcgp/backend/parsers/TestCaseParser.html create mode 100644 doc/jcgp/backend/parsers/class-use/ChromosomeParser.html create mode 100644 doc/jcgp/backend/parsers/class-use/FunctionParser.html create mode 100644 doc/jcgp/backend/parsers/class-use/ParameterParser.html create mode 100644 doc/jcgp/backend/parsers/class-use/TestCaseParser.html create mode 100644 doc/jcgp/backend/parsers/package-frame.html create mode 100644 doc/jcgp/backend/parsers/package-summary.html create mode 100644 doc/jcgp/backend/parsers/package-tree.html create mode 100644 doc/jcgp/backend/parsers/package-use.html create mode 100644 doc/jcgp/backend/population/Chromosome.html create mode 100644 doc/jcgp/backend/population/Connection.html create mode 100644 doc/jcgp/backend/population/Gene.html create mode 100644 doc/jcgp/backend/population/Input.html create mode 100644 doc/jcgp/backend/population/MutableElement.html create mode 100644 doc/jcgp/backend/population/Node.html create mode 100644 doc/jcgp/backend/population/Output.html create mode 100644 doc/jcgp/backend/population/Population.html create mode 100644 doc/jcgp/backend/population/class-use/Chromosome.html create mode 100644 doc/jcgp/backend/population/class-use/Connection.html create mode 100644 doc/jcgp/backend/population/class-use/Gene.html create mode 100644 doc/jcgp/backend/population/class-use/Input.html create mode 100644 doc/jcgp/backend/population/class-use/MutableElement.html create mode 100644 doc/jcgp/backend/population/class-use/Node.html create mode 100644 doc/jcgp/backend/population/class-use/Output.html create mode 100644 doc/jcgp/backend/population/class-use/Population.html create mode 100644 doc/jcgp/backend/population/package-frame.html create mode 100644 doc/jcgp/backend/population/package-summary.html create mode 100644 doc/jcgp/backend/population/package-tree.html create mode 100644 doc/jcgp/backend/population/package-use.html create mode 100644 doc/jcgp/backend/resources/Console.html create mode 100644 doc/jcgp/backend/resources/ModifiableResources.html create mode 100644 doc/jcgp/backend/resources/Resources.html create mode 100644 doc/jcgp/backend/resources/class-use/Console.html create mode 100644 doc/jcgp/backend/resources/class-use/ModifiableResources.html create mode 100644 doc/jcgp/backend/resources/class-use/Resources.html create mode 100644 doc/jcgp/backend/resources/package-frame.html create mode 100644 doc/jcgp/backend/resources/package-summary.html create mode 100644 doc/jcgp/backend/resources/package-tree.html create mode 100644 doc/jcgp/backend/resources/package-use.html create mode 100644 doc/jcgp/backend/statistics/RunEntry.html create mode 100644 doc/jcgp/backend/statistics/StatisticsLogger.html create mode 100644 doc/jcgp/backend/statistics/class-use/RunEntry.html create mode 100644 doc/jcgp/backend/statistics/class-use/StatisticsLogger.html create mode 100644 doc/jcgp/backend/statistics/package-frame.html create mode 100644 doc/jcgp/backend/statistics/package-summary.html create mode 100644 doc/jcgp/backend/statistics/package-tree.html create mode 100644 doc/jcgp/backend/statistics/package-use.html create mode 100644 doc/jcgp/class-use/JCGP.html create mode 100644 doc/jcgp/gui/GUI.html create mode 100644 doc/jcgp/gui/class-use/GUI.html create mode 100644 doc/jcgp/gui/console/GUIConsole.html create mode 100644 doc/jcgp/gui/console/class-use/GUIConsole.html create mode 100644 doc/jcgp/gui/console/package-frame.html create mode 100644 doc/jcgp/gui/console/package-summary.html create mode 100644 doc/jcgp/gui/console/package-tree.html create mode 100644 doc/jcgp/gui/console/package-use.html create mode 100644 doc/jcgp/gui/dragresize/HorizontalDragResize.html create mode 100644 doc/jcgp/gui/dragresize/VerticalDragResize.html create mode 100644 doc/jcgp/gui/dragresize/class-use/HorizontalDragResize.html create mode 100644 doc/jcgp/gui/dragresize/class-use/VerticalDragResize.html create mode 100644 doc/jcgp/gui/dragresize/package-frame.html create mode 100644 doc/jcgp/gui/dragresize/package-summary.html create mode 100644 doc/jcgp/gui/dragresize/package-tree.html create mode 100644 doc/jcgp/gui/dragresize/package-use.html create mode 100644 doc/jcgp/gui/package-frame.html create mode 100644 doc/jcgp/gui/package-summary.html create mode 100644 doc/jcgp/gui/package-tree.html create mode 100644 doc/jcgp/gui/package-use.html create mode 100644 doc/jcgp/gui/population/ChromosomePane.html create mode 100644 doc/jcgp/gui/population/FunctionSelector.html create mode 100644 doc/jcgp/gui/population/GUIGene.GUIGeneState.html create mode 100644 doc/jcgp/gui/population/GUIGene.html create mode 100644 doc/jcgp/gui/population/GUIInput.html create mode 100644 doc/jcgp/gui/population/GUINode.html create mode 100644 doc/jcgp/gui/population/GUIOutput.html create mode 100644 doc/jcgp/gui/population/PopulationPane.html create mode 100644 doc/jcgp/gui/population/class-use/ChromosomePane.html create mode 100644 doc/jcgp/gui/population/class-use/FunctionSelector.html create mode 100644 doc/jcgp/gui/population/class-use/GUIGene.GUIGeneState.html create mode 100644 doc/jcgp/gui/population/class-use/GUIGene.html create mode 100644 doc/jcgp/gui/population/class-use/GUIInput.html create mode 100644 doc/jcgp/gui/population/class-use/GUINode.html create mode 100644 doc/jcgp/gui/population/class-use/GUIOutput.html create mode 100644 doc/jcgp/gui/population/class-use/PopulationPane.html create mode 100644 doc/jcgp/gui/population/package-frame.html create mode 100644 doc/jcgp/gui/population/package-summary.html create mode 100644 doc/jcgp/gui/population/package-tree.html create mode 100644 doc/jcgp/gui/population/package-use.html create mode 100644 doc/jcgp/gui/settings/SettingsPane.html create mode 100644 doc/jcgp/gui/settings/class-use/SettingsPane.html create mode 100644 doc/jcgp/gui/settings/package-frame.html create mode 100644 doc/jcgp/gui/settings/package-summary.html create mode 100644 doc/jcgp/gui/settings/package-tree.html create mode 100644 doc/jcgp/gui/settings/package-use.html create mode 100644 doc/jcgp/gui/settings/parameters/GUIBooleanParameter.html create mode 100644 doc/jcgp/gui/settings/parameters/GUIDoubleParameter.html create mode 100644 doc/jcgp/gui/settings/parameters/GUIIntegerParameter.html create mode 100644 doc/jcgp/gui/settings/parameters/GUIParameter.html create mode 100644 doc/jcgp/gui/settings/parameters/class-use/GUIBooleanParameter.html create mode 100644 doc/jcgp/gui/settings/parameters/class-use/GUIDoubleParameter.html create mode 100644 doc/jcgp/gui/settings/parameters/class-use/GUIIntegerParameter.html create mode 100644 doc/jcgp/gui/settings/parameters/class-use/GUIParameter.html create mode 100644 doc/jcgp/gui/settings/parameters/package-frame.html create mode 100644 doc/jcgp/gui/settings/parameters/package-summary.html create mode 100644 doc/jcgp/gui/settings/parameters/package-tree.html create mode 100644 doc/jcgp/gui/settings/parameters/package-use.html create mode 100644 doc/jcgp/gui/settings/testcase/TestCaseTable.html create mode 100644 doc/jcgp/gui/settings/testcase/class-use/TestCaseTable.html create mode 100644 doc/jcgp/gui/settings/testcase/package-frame.html create mode 100644 doc/jcgp/gui/settings/testcase/package-summary.html create mode 100644 doc/jcgp/gui/settings/testcase/package-tree.html create mode 100644 doc/jcgp/gui/settings/testcase/package-use.html create mode 100644 doc/jcgp/package-frame.html create mode 100644 doc/jcgp/package-summary.html create mode 100644 doc/jcgp/package-tree.html create mode 100644 doc/jcgp/package-use.html create mode 100644 doc/overview-frame.html create mode 100644 doc/overview-summary.html create mode 100644 doc/overview-tree.html create mode 100644 doc/package-list create mode 100644 doc/script.js create mode 100644 doc/stylesheet.css delete mode 100644 src/jcgp/backend/modules/problem/TravellingSalesmanProblem.java diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html new file mode 100644 index 0000000..c791e91 --- /dev/null +++ b/doc/allclasses-frame.html @@ -0,0 +1,135 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html new file mode 100644 index 0000000..8f35f98 --- /dev/null +++ b/doc/allclasses-noframe.html @@ -0,0 +1,135 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/constant-values.html b/doc/constant-values.html new file mode 100644 index 0000000..5919c7f --- /dev/null +++ b/doc/constant-values.html @@ -0,0 +1,333 @@ + + + + + +Constant Field Values + + + + + + + + +
+ + + + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

jcgp.backend.*

+ + + + +

jcgp.gui.*

+ + + +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html new file mode 100644 index 0000000..21e1341 --- /dev/null +++ b/doc/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + +Deprecated List + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/help-doc.html b/doc/help-doc.html new file mode 100644 index 0000000..a4dff0c --- /dev/null +++ b/doc/help-doc.html @@ -0,0 +1,229 @@ + + + + + +API Help + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html new file mode 100644 index 0000000..6a80e84 --- /dev/null +++ b/doc/index-files/index-1.html @@ -0,0 +1,168 @@ + + + + + +A-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

A

+
+
Absolute() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Absolute
+
 
+
AbsoluteCosineAB() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteCosineAB
+
 
+
AbsoluteHyperbolicTangentAB() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB
+
 
+
AbsoluteSineAB() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteSineAB
+
 
+
Addition() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Addition
+
 
+
addLocks(int) - Method in class jcgp.gui.population.GUIGene
+
 
+
addLocks(int) - Method in class jcgp.gui.population.GUIInput
+
 
+
addLocks(int) - Method in class jcgp.gui.population.GUINode
+
 
+
addLocks(int) - Method in class jcgp.gui.population.GUIOutput
+
 
+
addTestCase(String[], String[]) - Method in class jcgp.backend.modules.problem.TestCaseProblem
+
+
Adds test cases to the problem instance as they get parsed from a + problem data file.
+
+
And() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.And
+
 
+
AndNotA() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.AndNotA
+
 
+
AndNotB() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.AndNotB
+
 
+
applyParameters() - Method in class jcgp.gui.settings.SettingsPane
+
+
Calls applyValue() on every parameter.
+
+
applyValue() - Method in class jcgp.gui.settings.parameters.GUIParameter
+
+
Set the current parameter value as the reference value of the @code{GUIParameter}.
+
+
areParametersValid() - Method in class jcgp.gui.settings.SettingsPane
+
 
+
arity() - Method in class jcgp.backend.resources.Resources
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html new file mode 100644 index 0000000..1bb7515 --- /dev/null +++ b/doc/index-files/index-10.html @@ -0,0 +1,173 @@ + + + + + +J-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

J

+
+
jcgp - package jcgp
+
 
+
JCGP - Class in jcgp
+
+
Top-level JCGP class.
+
+
JCGP() - Constructor for class jcgp.JCGP
+
+
Creates a new instance of JCGP.
+
+
jcgp.backend.function - package jcgp.backend.function
+
 
+
jcgp.backend.modules - package jcgp.backend.modules
+
 
+
jcgp.backend.modules.es - package jcgp.backend.modules.es
+
 
+
jcgp.backend.modules.mutator - package jcgp.backend.modules.mutator
+
 
+
jcgp.backend.modules.problem - package jcgp.backend.modules.problem
+
 
+
jcgp.backend.parameters - package jcgp.backend.parameters
+
 
+
jcgp.backend.parameters.monitors - package jcgp.backend.parameters.monitors
+
 
+
jcgp.backend.parsers - package jcgp.backend.parsers
+
 
+
jcgp.backend.population - package jcgp.backend.population
+
 
+
jcgp.backend.resources - package jcgp.backend.resources
+
 
+
jcgp.backend.statistics - package jcgp.backend.statistics
+
 
+
jcgp.gui - package jcgp.gui
+
 
+
jcgp.gui.console - package jcgp.gui.console
+
 
+
jcgp.gui.dragresize - package jcgp.gui.dragresize
+
 
+
jcgp.gui.population - package jcgp.gui.population
+
 
+
jcgp.gui.settings - package jcgp.gui.settings
+
 
+
jcgp.gui.settings.parameters - package jcgp.gui.settings.parameters
+
 
+
jcgp.gui.settings.testcase - package jcgp.gui.settings.testcase
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html new file mode 100644 index 0000000..ab43c3d --- /dev/null +++ b/doc/index-files/index-11.html @@ -0,0 +1,151 @@ + + + + + +L-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

L

+
+
levelsBack() - Method in class jcgp.backend.resources.Resources
+
 
+
loadChromosome(File, int) - Method in class jcgp.JCGP
+
+
Loads a chromosome from the given file into + the specified population index.
+
+
loadParameters(File) - Method in class jcgp.JCGP
+
+
When given a .par file, this method loads the parameters into the + experiment's resources.
+
+
loadProblemData(File) - Method in class jcgp.JCGP
+
+
Parses a problem data file.
+
+
lock() - Method in class jcgp.gui.population.GUIOutput
+
 
+
LogBaseTen() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.LogBaseTen
+
 
+
logRun(int, double, int, boolean) - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Log a new run.
+
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html new file mode 100644 index 0000000..d69ad68 --- /dev/null +++ b/doc/index-files/index-12.html @@ -0,0 +1,197 @@ + + + + + +M-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

M

+
+
main(String[]) - Static method in class jcgp.gui.GUI
+
 
+
main(String...) - Static method in class jcgp.JCGP
+
+
JCGP main method, this is used to execute JCGP from the command line.
+
+
makeDragResizable(Region) - Static method in class jcgp.gui.dragresize.HorizontalDragResize
+
+
Makes the specified region drag resizable.
+
+
makeDragResizable(Region) - Static method in class jcgp.gui.dragresize.VerticalDragResize
+
+
Makes the specified region drag resizable.
+
+
MEDIUM_HIGHLIGHT_COLOUR - Static variable in class jcgp.gui.GUI
+
 
+
ModifiableResources - Class in jcgp.backend.resources
+
+
This subclass of Resources allows modifications to be made.
+
+
ModifiableResources() - Constructor for class jcgp.backend.resources.ModifiableResources
+
+
Creates an instance of this class and initialises + all base parameters to default values.
+
+
Module - Class in jcgp.backend.modules
+
+
This class defines the expected behaviour of a module.
+
+
Multiplication() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Multiplication
+
 
+
Multiplication() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.Multiplication
+
 
+
MuPlusLambda - Class in jcgp.backend.modules.es
+
+
(μ + λ)-ES +

+ This strategy selects the μ fittest chromosomes from the population.
+
+
MuPlusLambda(Resources) - Constructor for class jcgp.backend.modules.es.MuPlusLambda
+
+
Creates a new instance of MuPlusLambda.
+
+
MutableElement - Interface in jcgp.backend.population
+
+
MutableElement declares the expected behaviour of any + part of a chromosome that is mutable, more specifically + nodes or outputs.
+
+
mutate(Chromosome) - Method in class jcgp.backend.modules.mutator.Mutator
+
+
Applies mutations to the specified chromosome according + to the parameter values.
+
+
mutate(Chromosome) - Method in class jcgp.backend.modules.mutator.PointMutator
+
 
+
mutate(Chromosome) - Method in class jcgp.backend.modules.mutator.ProbabilisticMutator
+
 
+
Mutator - Class in jcgp.backend.modules.mutator
+
+
This class specifies the basic characteristics of a mutation operator.
+
+
Mux1() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Mux1
+
 
+
Mux2() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Mux2
+
 
+
Mux3() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Mux3
+
 
+
Mux4() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Mux4
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html new file mode 100644 index 0000000..0a7c5ae --- /dev/null +++ b/doc/index-files/index-13.html @@ -0,0 +1,161 @@ + + + + + +N-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

N

+
+
Nand() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Nand
+
 
+
NaturalLog() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.NaturalLog
+
 
+
NEUTRAL_COLOUR - Static variable in class jcgp.gui.GUI
+
 
+
NEUTRAL_SELECTION_COLOUR - Static variable in class jcgp.gui.GUI
+
 
+
nextGeneration() - Method in class jcgp.JCGP
+
+
Performs one full generational cycle.
+
+
Node - Class in jcgp.backend.population
+
+
Nodes make up the main part of the chromosome, + where the actual functions are evolved.
+
+
Node(Chromosome, int, int, int) - Constructor for class jcgp.backend.population.Node
+
+
Constructs a new instance of Node with the + specified parameters.
+
+
NODE_RADIUS - Static variable in class jcgp.gui.population.GUIGene
+
 
+
NODE_TEXT - Static variable in class jcgp.gui.population.GUIGene
+
 
+
nodes() - Method in class jcgp.backend.resources.Resources
+
 
+
Nor() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Nor
+
 
+
NotA() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.NotA
+
 
+
NotB() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.NotB
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-14.html b/doc/index-files/index-14.html new file mode 100644 index 0000000..308fcd6 --- /dev/null +++ b/doc/index-files/index-14.html @@ -0,0 +1,144 @@ + + + + + +O-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

O

+
+
Or() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Or
+
 
+
OrNotA() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.OrNotA
+
 
+
OrNotB() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.OrNotB
+
 
+
Output - Class in jcgp.backend.population
+
+
This is a chromosome output.
+
+
Output(Chromosome, int) - Constructor for class jcgp.backend.population.Output
+
+
Makes a new instance of Output with the + specified arguments.
+
+
outputs() - Method in class jcgp.backend.resources.Resources
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-15.html b/doc/index-files/index-15.html new file mode 100644 index 0000000..d1f37d6 --- /dev/null +++ b/doc/index-files/index-15.html @@ -0,0 +1,269 @@ + + + + + +P-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

P

+
+
Parameter<T> - Class in jcgp.backend.parameters
+
+
Specifies an abstract model of a module parameter.
+
+
ParameterParser - Class in jcgp.backend.parsers
+
+
Contains a static method for parsing parameters from a + .par file.
+
+
ParameterParser() - Constructor for class jcgp.backend.parsers.ParameterParser
+
 
+
ParameterStatus - Enum in jcgp.backend.parameters
+
+
Enum type containing all possible states for parameters.
+
+
parse(File, Chromosome, Resources) - Static method in class jcgp.backend.parsers.ChromosomeParser
+
+
Use this method to parse .chr files into a given chromosome.
+
+
parse(File, FunctionSet, Resources) - Static method in class jcgp.backend.parsers.FunctionParser
+
+
Reads the specified file and attempts to enable + and disable the functions in the FunctionSet + accordingly.
+
+
parse(File, ModifiableResources) - Static method in class jcgp.backend.parsers.ParameterParser
+
+
Parses the parameters from a specified CGP parameter file and + modifies the experiment resources appropriately.
+
+
parse(File, TestCaseProblem<?>, ModifiableResources) - Static method in class jcgp.backend.parsers.TestCaseParser
+
+
Sets the number of inputs and outputs in the resources + to match the given file, and parses each test case + from the file into the specified problem.
+
+
parseProblemData(File, ModifiableResources) - Method in class jcgp.backend.modules.problem.Problem
+
+
Parses the specified file and uses the parsed data to + set up the problem type instance appropriately.
+
+
parseProblemData(File, ModifiableResources) - Method in class jcgp.backend.modules.problem.TestCaseProblem
+
 
+
parseTestCase(String[], String[]) - Method in class jcgp.backend.modules.problem.DigitalCircuitProblem
+
 
+
parseTestCase(String[], String[]) - Method in class jcgp.backend.modules.problem.SymbolicRegressionProblem
+
 
+
PercentPointMutator - Class in jcgp.backend.modules.mutator
+
+
Percent point mutator +

+ This operator calculates how many genes to mutate based on the mutation rate + parameter.
+
+
PercentPointMutator(Resources) - Constructor for class jcgp.backend.modules.mutator.PercentPointMutator
+
+
Creates a new instance of PercentPointMutator.
+
+
perfectSolutionFound(Population) - Method in class jcgp.backend.modules.problem.DigitalCircuitProblem
+
 
+
perfectSolutionFound(Population) - Method in class jcgp.backend.modules.problem.Problem
+
+
Used to assert whether a given population contains a perfect solution + to the problem.
+
+
perfectSolutionFound(Population) - Method in class jcgp.backend.modules.problem.SymbolicRegressionProblem
+
 
+
PointMutator - Class in jcgp.backend.modules.mutator
+
+
Point mutator +

+ In point mutation, a number of random genes + is picked and mutated until all required + mutations have been performed.
+
+
Population - Class in jcgp.backend.population
+
+
This class primarily holds a collection of chromosomes.
+
+
Population(Resources) - Constructor for class jcgp.backend.population.Population
+
+
Initialise a random population according to the parameters specified + in the resources.
+
+
Population(Chromosome, Resources) - Constructor for class jcgp.backend.population.Population
+
+
Initialise a population of copies of the given chromosome.
+
+
PopulationPane - Class in jcgp.gui.population
+
 
+
PopulationPane(GUI) - Constructor for class jcgp.gui.population.PopulationPane
+
 
+
populationSize() - Method in class jcgp.backend.resources.Resources
+
 
+
Power() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Power
+
 
+
print(String) - Method in interface jcgp.backend.resources.Console
+
+
Prints a string without line break at the end (unless the string + itself specifies one).
+
+
print(String) - Method in class jcgp.backend.resources.Resources
+
+
Prints a message to the consoles ignoring + report interval.
+
+
print(String) - Method in class jcgp.gui.console.GUIConsole
+
 
+
println(String) - Method in interface jcgp.backend.resources.Console
+
+
Prints a string and automatically adds a line break at the end.
+
+
println(String) - Method in class jcgp.backend.resources.Resources
+
+
Prints a message to the consoles ignoring + report interval.
+
+
println(String) - Method in class jcgp.gui.console.GUIConsole
+
 
+
printNodes() - Method in class jcgp.backend.population.Chromosome
+
+
Iterates through the nodes and prints all connections and functions.
+
+
ProbabilisticMutator - Class in jcgp.backend.modules.mutator
+
+
Probabilistic mutator +

+ This operator iterates through every mutable gene in the chromosome and + decides whether to mutate each of them individually.
+
+
ProbabilisticMutator(Resources) - Constructor for class jcgp.backend.modules.mutator.ProbabilisticMutator
+
+
Creates a new instance of ProbabilisticMutator.
+
+
Problem - Class in jcgp.backend.modules.problem
+
+
Defines the general behaviour of a CGP problem.
+
+
Problem(Resources) - Constructor for class jcgp.backend.modules.problem.Problem
+
+
Initialises the two problem-wide parameters, maxFitness and bestFitness.
+
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-16.html b/doc/index-files/index-16.html new file mode 100644 index 0000000..5f2eef1 --- /dev/null +++ b/doc/index-files/index-16.html @@ -0,0 +1,340 @@ + + + + + +R-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

R

+
+
Reciprocal() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Reciprocal
+
 
+
recomputeActiveNodes() - Method in class jcgp.backend.population.Chromosome
+
+
This causes the list of active nodes to be recomputed lazily (once it is actually requested).
+
+
reDraw() - Method in class jcgp.gui.GUI
+
 
+
refreshValue() - Method in class jcgp.gui.settings.parameters.GUIBooleanParameter
+
 
+
refreshValue() - Method in class jcgp.gui.settings.parameters.GUIDoubleParameter
+
 
+
refreshValue() - Method in class jcgp.gui.settings.parameters.GUIIntegerParameter
+
 
+
reinitialise() - Method in class jcgp.backend.population.Population
+
+
Loop through all chromosomes and randomise all connections + and functions.
+
+
reinitialiseConnections() - Method in class jcgp.backend.population.Chromosome
+
+
Sets random connections and functions across the entire + chromosome.
+
+
relocateAndShow(MouseEvent, GUINode) - Method in class jcgp.gui.population.FunctionSelector
+
 
+
relockOutputs() - Method in class jcgp.gui.population.ChromosomePane
+
 
+
relockOutputs() - Method in class jcgp.gui.population.PopulationPane
+
 
+
remakeFunctions(FunctionSet) - Method in class jcgp.gui.population.FunctionSelector
+
 
+
remakeTabs() - Method in class jcgp.gui.population.PopulationPane
+
 
+
removeLocks(int) - Method in class jcgp.gui.population.GUIGene
+
 
+
removeLocks(int) - Method in class jcgp.gui.population.GUIInput
+
 
+
removeLocks(int) - Method in class jcgp.gui.population.GUINode
+
 
+
removeLocks(int) - Method in class jcgp.gui.population.GUIOutput
+
 
+
report(String) - Method in class jcgp.backend.resources.Resources
+
+
Prints a message to the consoles taking into account the + report interval parameter.
+
+
reportInterval() - Method in class jcgp.backend.resources.Resources
+
 
+
reportln(String) - Method in class jcgp.backend.resources.Resources
+
+
Prints a message to the consoles taking into account the + report interval parameter.
+
+
requiresReset() - Method in class jcgp.gui.settings.parameters.GUIParameter
+
+
Certain parameter changes might require the experiment to be reset, either + because the parameter is critical or because its status requires a reset.
+
+
reset() - Method in class jcgp.backend.modules.problem.Problem
+
+
Resets the bestFitness parameter.
+
+
reset() - Method in class jcgp.gui.GUI
+
 
+
reset() - Method in class jcgp.JCGP
+
+
Resets the experiment.
+
+
resetState() - Method in class jcgp.gui.population.GUIGene
+
 
+
resetState() - Method in class jcgp.gui.population.GUIInput
+
 
+
resetState() - Method in class jcgp.gui.population.GUINode
+
 
+
resetState() - Method in class jcgp.gui.population.GUIOutput
+
 
+
RESIZE_MARGIN - Static variable in class jcgp.gui.GUI
+
 
+
Resources - Class in jcgp.backend.resources
+
+
Encapsulates all of the resources based on which the program operates.
+
+
Resources() - Constructor for class jcgp.backend.resources.Resources
+
 
+
revalidateParameters() - Method in class jcgp.gui.settings.SettingsPane
+
+
Calls validate() on every parameter.
+
+
rows() - Method in class jcgp.backend.resources.Resources
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.And
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.AndNotA
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.AndNotB
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.ConstantOne
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.ConstantZero
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux1
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux2
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux3
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux4
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Nand
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Nor
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.NotA
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.NotB
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Or
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.OrNotA
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.OrNotB
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.WireA
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.WireB
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Xnor
+
 
+
run(Object...) - Method in class jcgp.backend.function.DigitalCircuitFunctions.Xor
+
 
+
run(Object...) - Method in class jcgp.backend.function.Function
+
+
Executes the function.
+
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Absolute
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Addition
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Cosine
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.CosineAB
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Division
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Exponential
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicCosine
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicSine
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicTangent
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Hypotenuse
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.LogBaseTen
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Multiplication
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.NaturalLog
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Power
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Reciprocal
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Sine
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.SineAB
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.SquareRoot
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Subtraction
+
 
+
run(Object...) - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Tangent
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteCosineAB
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteSineAB
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.BoundedDivision
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Cube
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Multiplication
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledAddition
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledExponential
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledHypotenuse
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Square
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SquaredMultiplication
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SquareRoot
+
 
+
run(Object...) - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SymmetricSubtraction
+
 
+
RunEntry - Class in jcgp.backend.statistics
+
+
This class encapsulates the data contained in a log entry.
+
+
RunEntry(int, double, int, boolean) - Constructor for class jcgp.backend.statistics.RunEntry
+
+
Creates a new run entry for a logger.
+
+
runPause() - Method in class jcgp.gui.GUI
+
 
+
runs() - Method in class jcgp.backend.resources.Resources
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-17.html b/doc/index-files/index-17.html new file mode 100644 index 0000000..d078f88 --- /dev/null +++ b/doc/index-files/index-17.html @@ -0,0 +1,428 @@ + + + + + +S-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

S

+
+
save(File, Chromosome, Resources) - Static method in class jcgp.backend.parsers.ChromosomeParser
+
+
Writes a chromosome into the specified .chr file.
+
+
saveChromosome(File, int) - Method in class jcgp.JCGP
+
+
Saves a copy of the specified chromosome + into the given file.
+
+
ScaledAddition() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.ScaledAddition
+
 
+
ScaledExponential() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.ScaledExponential
+
 
+
ScaledHypotenuse() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.ScaledHypotenuse
+
 
+
seed() - Method in class jcgp.backend.resources.Resources
+
 
+
set(T) - Method in class jcgp.backend.parameters.Parameter
+
+
Sets the parameter to the specified value, if the property + is not bound.
+
+
setArity(int) - Method in class jcgp.backend.resources.ModifiableResources
+
+
This is called automatically by the experiment when the arity changes.
+
+
setChangingConnection(Connection) - Method in class jcgp.gui.population.GUIGene
+
 
+
setChangingConnection(Connection) - Method in class jcgp.gui.population.GUIInput
+
 
+
setChangingConnection(Connection) - Method in class jcgp.gui.population.GUINode
+
 
+
setChangingConnection(Connection) - Method in class jcgp.gui.population.GUIOutput
+
 
+
setColumns(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setConnection(int, Connection) - Method in interface jcgp.backend.population.MutableElement
+
+
This method sets the indexed connection to the specified new connection.
+
+
setConnection(int, Connection) - Method in class jcgp.backend.population.Node
+
 
+
setConnection(int, Connection) - Method in class jcgp.backend.population.Output
+
+
When mutating an output, the index parameter + is simply ignored and the output source is + set.
+
+
setConnectionLine(GUIGene) - Method in class jcgp.gui.population.GUIGene
+
 
+
setConnectionLine(GUIGene) - Method in class jcgp.gui.population.GUIInput
+
 
+
setConnectionLine(GUIGene) - Method in class jcgp.gui.population.GUINode
+
 
+
setConnectionLine(GUIGene) - Method in class jcgp.gui.population.GUIOutput
+
 
+
setConnections(GUIGene.GUIGeneState) - Method in class jcgp.gui.population.GUIGene
+
 
+
setConnections(GUIGene.GUIGeneState) - Method in class jcgp.gui.population.GUIInput
+
+
Set all connections to a given state.
+
+
setConnections(GUIGene.GUIGeneState) - Method in class jcgp.gui.population.GUINode
+
 
+
setConnections(GUIGene.GUIGeneState) - Method in class jcgp.gui.population.GUIOutput
+
 
+
setConsole(Console) - Method in class jcgp.backend.resources.ModifiableResources
+
+
This can be set to null if no extra console is desired.
+
+
setConsole(Console) - Method in class jcgp.JCGP
+
+
Sets an extra console.
+
+
setCurrentGeneration(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setCurrentRun(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setDetails(String) - Method in enum jcgp.backend.parameters.ParameterStatus
+
+
Sets a new string containing details about the current status.
+
+
setEvaluating(boolean) - Method in class jcgp.gui.GUI
+
 
+
setEvaluating(boolean) - Method in class jcgp.gui.population.PopulationPane
+
 
+
setEvolutionaryStrategy(int) - Method in class jcgp.JCGP
+
 
+
setFitness(double) - Method in class jcgp.backend.population.Chromosome
+
+
Sets the fitness of the chromosome.
+
+
setFitnessOrientation(BestFitness) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setFunction(Function) - Method in class jcgp.backend.population.Node
+
+
Sets the node function.
+
+
setFunction(Function) - Method in class jcgp.gui.population.GUINode
+
 
+
setFunctionSet(FunctionSet) - Method in class jcgp.backend.resources.ModifiableResources
+
+
Update the current function set.
+
+
setGenerations(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setInputs(Object...) - Method in class jcgp.backend.population.Chromosome
+
+
Loops through the inputs and sets the specified values, + so that evaluations can be performed.
+
+
setInputs(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setInputs(Object[]) - Method in class jcgp.gui.population.ChromosomePane
+
 
+
setLevelsBack(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setMutator(int) - Method in class jcgp.JCGP
+
 
+
setNode(Node) - Method in class jcgp.gui.population.GUINode
+
 
+
setOutput(Output) - Method in class jcgp.gui.population.GUIOutput
+
 
+
setOutputs(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setPopulationSize(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setProblem(int) - Method in class jcgp.JCGP
+
 
+
setReportInterval(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setRows(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setRuns(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setSeed(int) - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
setState(GUIGene.GUIGeneState) - Method in class jcgp.gui.population.GUIGene
+
 
+
setState(GUIGene.GUIGeneState) - Method in class jcgp.gui.population.GUIInput
+
 
+
setState(GUIGene.GUIGeneState) - Method in class jcgp.gui.population.GUINode
+
 
+
setState(GUIGene.GUIGeneState) - Method in class jcgp.gui.population.GUIOutput
+
 
+
SETTINGS_MIN_WIDTH - Static variable in class jcgp.gui.GUI
+
 
+
SettingsPane - Class in jcgp.gui.settings
+
 
+
SettingsPane(GUI) - Constructor for class jcgp.gui.settings.SettingsPane
+
 
+
setValue(Object) - Method in class jcgp.backend.population.Input
+
+
Sets this input's value.
+
+
setValue(Object) - Method in class jcgp.gui.population.GUIInput
+
 
+
Sine() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Sine
+
 
+
SineAB() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.SineAB
+
 
+
SOCKET_RADIUS - Static variable in class jcgp.gui.population.GUIGene
+
 
+
SOFT_HIGHLIGHT_COLOUR - Static variable in class jcgp.gui.GUI
+
 
+
sort() - Method in class jcgp.backend.population.Population
+
+
Sorts the population in ascending order of fitness quality.
+
+
SPACING - Static variable in class jcgp.gui.population.GUIGene
+
 
+
Square() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.Square
+
 
+
SquaredMultiplication() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.SquaredMultiplication
+
 
+
SquareRoot() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.SquareRoot
+
 
+
SquareRoot() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.SquareRoot
+
 
+
start(Stage) - Method in class jcgp.gui.GUI
+
 
+
start() - Method in class jcgp.JCGP
+
+
This method calls nextGeneration() in a loop + until the experiment is flagged as finished.
+
+
StatisticsLogger - Class in jcgp.backend.statistics
+
+
This is a utility class for logging experiment statistics when doing multiple runs.
+
+
StatisticsLogger() - Constructor for class jcgp.backend.statistics.StatisticsLogger
+
+
Create a new statistics logger, use this when resetting is necessary.
+
+
step() - Method in class jcgp.gui.GUI
+
 
+
Subtraction() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Subtraction
+
 
+
SymbolicRegressionFunctions - Class in jcgp.backend.function
+
+
This class contains all symbolic regression functions + (defined as double functions in the classic CGP implementation) + in static nested classes.
+
+
SymbolicRegressionFunctions() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions
+
+
Creates a new instance of SymbolicRegressionFunctions.
+
+
SymbolicRegressionFunctions.Absolute - Class in jcgp.backend.function
+
+
Absolute returns the positive value of input 0.
+
+
SymbolicRegressionFunctions.Addition - Class in jcgp.backend.function
+
+
Addition returns the sum of inputs 0 and 1.
+
+
SymbolicRegressionFunctions.Cosine - Class in jcgp.backend.function
+
+
Cosine function, in radians.
+
+
SymbolicRegressionFunctions.CosineAB - Class in jcgp.backend.function
+
+
Cosine of sum.
+
+
SymbolicRegressionFunctions.Division - Class in jcgp.backend.function
+
+
Protected division, returns the quotient of input 0 (the dividend) and input 1 (the divisor).
+
+
SymbolicRegressionFunctions.Exponential - Class in jcgp.backend.function
+
+
Exponential function.
+
+
SymbolicRegressionFunctions.HyperbolicCosine - Class in jcgp.backend.function
+
+
Returns the hyperbolic cosine of input 0.
+
+
SymbolicRegressionFunctions.HyperbolicSine - Class in jcgp.backend.function
+
+
Returns the hyperbolic sine of input 0.
+
+
SymbolicRegressionFunctions.HyperbolicTangent - Class in jcgp.backend.function
+
+
Returns the hyperbolic tangent of input 0.
+
+
SymbolicRegressionFunctions.Hypotenuse - Class in jcgp.backend.function
+
+
Hypotenuse function.
+
+
SymbolicRegressionFunctions.LogBaseTen - Class in jcgp.backend.function
+
+
Protected log base 10 function.
+
+
SymbolicRegressionFunctions.Multiplication - Class in jcgp.backend.function
+
+
Multiplication returns the product of inputs 0 and 1.
+
+
SymbolicRegressionFunctions.NaturalLog - Class in jcgp.backend.function
+
+
Protected natural log function.
+
+
SymbolicRegressionFunctions.Power - Class in jcgp.backend.function
+
+
Power function.
+
+
SymbolicRegressionFunctions.Reciprocal - Class in jcgp.backend.function
+
+
Protected reciprocal function, returns (1 / input 0).
+
+
SymbolicRegressionFunctions.Sine - Class in jcgp.backend.function
+
+
Sine function, in radians.
+
+
SymbolicRegressionFunctions.SineAB - Class in jcgp.backend.function
+
+
Sine of sum.
+
+
SymbolicRegressionFunctions.SquareRoot - Class in jcgp.backend.function
+
+
Protected square root function, returns the square root of the absolute + value of input 0.
+
+
SymbolicRegressionFunctions.Subtraction - Class in jcgp.backend.function
+
+
Subtraction returns the difference between inputs 0 and 1.
+
+
SymbolicRegressionFunctions.Tangent - Class in jcgp.backend.function
+
+
Protected tangent function, in radians.
+
+
SymbolicRegressionProblem - Class in jcgp.backend.modules.problem
+
+
Symbolic regression functions +

+ Using this problem type, regression problems can be solved.
+
+
SymbolicRegressionProblem(Resources) - Constructor for class jcgp.backend.modules.problem.SymbolicRegressionProblem
+
+
Creates a new instance of SymbolicRegressionProblem.
+
+
SymmetricSubtraction() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.SymmetricSubtraction
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-18.html b/doc/index-files/index-18.html new file mode 100644 index 0000000..81fdf2b --- /dev/null +++ b/doc/index-files/index-18.html @@ -0,0 +1,359 @@ + + + + + +T-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

T

+
+
Tangent() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Tangent
+
 
+
TestCase(U[], U[]) - Constructor for class jcgp.backend.modules.problem.TestCaseProblem.TestCase
+
+
Creates a new test case, inputs and outputs + must be specified upon instantiation.
+
+
TestCaseParser - Class in jcgp.backend.parsers
+
+
Contains a static method for parsing values from a + CGP problem data file.
+
+
TestCaseParser() - Constructor for class jcgp.backend.parsers.TestCaseParser
+
 
+
TestCaseProblem<T> - Class in jcgp.backend.modules.problem
+
+
Abstract model for a problem that uses test cases.
+
+
TestCaseProblem(Resources) - Constructor for class jcgp.backend.modules.problem.TestCaseProblem
+
+
Creates a new TestCaseProblem object.
+
+
TestCaseProblem.TestCase<U> - Class in jcgp.backend.modules.problem
+
+
Basic data type for encapsulating test cases, it simply + contains arrays of inputs and outputs and associated getters.
+
+
TestCaseTable - Class in jcgp.gui.settings.testcase
+
+
This is a test case table.
+
+
TestCaseTable(TestCaseProblem<Object>, GUI) - Constructor for class jcgp.gui.settings.testcase.TestCaseTable
+
+
Make a new instance of TestCaseTable.
+
+
THETA - Static variable in class jcgp.gui.population.GUIGene
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.And
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.AndNotA
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.AndNotB
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.ConstantOne
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.ConstantZero
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux1
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux2
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux3
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux4
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Nand
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Nor
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.NotA
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.NotB
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Or
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.OrNotA
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.OrNotB
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.WireA
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.WireB
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Xnor
+
 
+
toString() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Xor
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Absolute
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Addition
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Cosine
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.CosineAB
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Division
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Exponential
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicCosine
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicSine
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicTangent
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Hypotenuse
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.LogBaseTen
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Multiplication
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.NaturalLog
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Power
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Reciprocal
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Sine
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.SineAB
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.SquareRoot
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Subtraction
+
 
+
toString() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Tangent
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteCosineAB
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteSineAB
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.BoundedDivision
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Cube
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Multiplication
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledAddition
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledExponential
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledHypotenuse
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Square
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SquaredMultiplication
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SquareRoot
+
 
+
toString() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SymmetricSubtraction
+
 
+
toString() - Method in class jcgp.backend.function.UnsignedInteger
+
 
+
toString() - Method in class jcgp.backend.modules.Module
+
 
+
toString() - Method in class jcgp.backend.parameters.Parameter
+
 
+
toString() - Method in class jcgp.backend.population.Input
+
 
+
toString() - Method in class jcgp.backend.population.Node
+
 
+
toString() - Method in class jcgp.backend.population.Output
+
 
+
TournamentSelection - Class in jcgp.backend.modules.es
+
+
Tournament selection +

+ This strategy generates a new population by selecting a specified number + of chromosomes from the original population and selecting the fittest out + of the isolated subset (the tournament).
+
+
TournamentSelection(Resources) - Constructor for class jcgp.backend.modules.es.TournamentSelection
+
+
Creates a new instance of TournamentSelection.
+
+
TravellingSalesmanFunctions - Class in jcgp.backend.function
+
+
This class contains all travelling salesman functions in static nested classes.
+
+
TravellingSalesmanFunctions() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions
+
+
Creates a new instance of TravellingSalesmanFunctions.
+
+
TravellingSalesmanFunctions.AbsoluteCosineAB - Class in jcgp.backend.function
+
+
Cosine of sum.
+
+
TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB - Class in jcgp.backend.function
+
+
Hyperbolic tangent of sum.
+
+
TravellingSalesmanFunctions.AbsoluteSineAB - Class in jcgp.backend.function
+
+
Sine of sum.
+
+
TravellingSalesmanFunctions.BoundedDivision - Class in jcgp.backend.function
+
+
Bounded division, returns the quotient of the two inputs where the larger + is the denominator.
+
+
TravellingSalesmanFunctions.Cube - Class in jcgp.backend.function
+
+
Cube function, returns the value of input 0 cubed.
+
+
TravellingSalesmanFunctions.Multiplication - Class in jcgp.backend.function
+
+
Multiplication returns the product of inputs 0 and 1.
+
+
TravellingSalesmanFunctions.ScaledAddition - Class in jcgp.backend.function
+
+
Scaled addition returns the sum of inputs 0 and 1 scaled + to the range 0 < x > 1.
+
+
TravellingSalesmanFunctions.ScaledExponential - Class in jcgp.backend.function
+
+
Scaled exponential function.
+
+
TravellingSalesmanFunctions.ScaledHypotenuse - Class in jcgp.backend.function
+
+
Scaled hypotenuse function.
+
+
TravellingSalesmanFunctions.Square - Class in jcgp.backend.function
+
+
Square function, returns the square of the + value of input 0.
+
+
TravellingSalesmanFunctions.SquaredMultiplication - Class in jcgp.backend.function
+
+
Multiplication returns the product of inputs 0 and 1, squared.
+
+
TravellingSalesmanFunctions.SquareRoot - Class in jcgp.backend.function
+
+
Protected square root function, returns the square root of the absolute + value of input 0.
+
+
TravellingSalesmanFunctions.SymmetricSubtraction - Class in jcgp.backend.function
+
+
Symmetric subtraction returns the absolute difference between inputs 0 and 1, + scaled to the range 0 <; x > 1.
+
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-19.html b/doc/index-files/index-19.html new file mode 100644 index 0000000..6a35cb4 --- /dev/null +++ b/doc/index-files/index-19.html @@ -0,0 +1,186 @@ + + + + + +U-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

U

+
+
unlock() - Method in class jcgp.gui.population.GUIOutput
+
 
+
unlockOutputs() - Method in class jcgp.gui.population.ChromosomePane
+
 
+
unlockOutputs() - Method in class jcgp.gui.population.PopulationPane
+
 
+
UnsignedInteger - Class in jcgp.backend.function
+
+
Integer wrapper type for unsigned integer values.
+
+
UnsignedInteger(int) - Constructor for class jcgp.backend.function.UnsignedInteger
+
+
Makes a new instance of UnsignedInteger with a specified value.
+
+
UnsignedInteger(Integer) - Constructor for class jcgp.backend.function.UnsignedInteger
+
+
Makes a new instance of UnsignedInteger with a specified value.
+
+
UnsignedInteger(String) - Constructor for class jcgp.backend.function.UnsignedInteger
+
+
Makes a new instance of UnsignedInteger from the string representation + of an unsigned integer.
+
+
updateControls(boolean, boolean) - Method in class jcgp.gui.settings.SettingsPane
+
+
Updates all of the controls to their appropriate state based on the status of the + experiment, in order to prevent inappropriate operations if the experiment is + running or finished.
+
+
updateFunctionSelector() - Method in class jcgp.gui.GUI
+
 
+
updateGenes(Chromosome) - Method in class jcgp.gui.population.ChromosomePane
+
 
+
updateGenes() - Method in class jcgp.gui.population.PopulationPane
+
 
+
updateLine(int) - Method in class jcgp.gui.population.GUINode
+
+
Place the end of the specified line on the output of the associated connection.
+
+
updateLines() - Method in class jcgp.gui.population.GUIGene
+
 
+
updateLines() - Method in class jcgp.gui.population.GUIInput
+
 
+
updateLines() - Method in class jcgp.gui.population.GUINode
+
+
Updates the end of all lines to match the associated connections.
+
+
updateLines() - Method in class jcgp.gui.population.GUIOutput
+
 
+
updateText() - Method in class jcgp.gui.population.GUIGene
+
 
+
updateText() - Method in class jcgp.gui.population.GUIInput
+
 
+
updateText() - Method in class jcgp.gui.population.GUINode
+
 
+
updateText() - Method in class jcgp.gui.population.GUIOutput
+
 
+
updateValues() - Method in class jcgp.gui.population.ChromosomePane
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html new file mode 100644 index 0000000..186fecc --- /dev/null +++ b/doc/index-files/index-2.html @@ -0,0 +1,166 @@ + + + + + +B-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

B

+
+
BAD_SELECTION_COLOUR - Static variable in class jcgp.gui.GUI
+
 
+
BASE_CHECKBOX_STYLE - Static variable in class jcgp.gui.settings.parameters.GUIParameter
+
 
+
BASE_TEXT_STYLE - Static variable in class jcgp.gui.settings.parameters.GUIParameter
+
 
+
BestFitness - Enum in jcgp.backend.modules.problem
+
 
+
BooleanMonitor - Class in jcgp.backend.parameters.monitors
+
+
This is a special type of BooleanParameter which + cannot be modified in the GUI (if the GUI is in use).
+
+
BooleanMonitor(boolean, String) - Constructor for class jcgp.backend.parameters.monitors.BooleanMonitor
+
+
Creates a new instance of this class, assuming the monitor + is not critical.
+
+
BooleanMonitor(boolean, String, boolean) - Constructor for class jcgp.backend.parameters.monitors.BooleanMonitor
+
+
Creates a new instance of this class.
+
+
BooleanParameter - Class in jcgp.backend.parameters
+
+
Parameter subclass for the boolean type.
+
+
BooleanParameter(boolean, String) - Constructor for class jcgp.backend.parameters.BooleanParameter
+
+
Creates a new instance of this class, assuming the parameter + is not critical.
+
+
BooleanParameter(boolean, String, boolean) - Constructor for class jcgp.backend.parameters.BooleanParameter
+
+
Creates a new instance of this class.
+
+
BoundedDivision() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.BoundedDivision
+
 
+
bringFunctionSelector(MouseEvent, GUINode) - Method in class jcgp.gui.GUI
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-20.html b/doc/index-files/index-20.html new file mode 100644 index 0000000..83339e6 --- /dev/null +++ b/doc/index-files/index-20.html @@ -0,0 +1,187 @@ + + + + + +V-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

V

+
+
VALID_PARAMETER_STYLE - Static variable in class jcgp.gui.settings.parameters.GUIParameter
+
 
+
validate(Boolean) - Method in class jcgp.backend.parameters.BooleanParameter
+
 
+
validate(Number) - Method in class jcgp.backend.parameters.DoubleParameter
+
 
+
validate(Number) - Method in class jcgp.backend.parameters.IntegerParameter
+
 
+
validate(Boolean) - Method in class jcgp.backend.parameters.monitors.BooleanMonitor
+
 
+
validate(Number) - Method in class jcgp.backend.parameters.monitors.DoubleMonitor
+
 
+
validate(Number) - Method in class jcgp.backend.parameters.monitors.IntegerMonitor
+
 
+
validate(T) - Method in class jcgp.backend.parameters.Parameter
+
+
This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made.
+
+
validate() - Method in class jcgp.gui.settings.parameters.GUIParameter
+
+
Force the parameter to validate its current value, and apply the associated + style to the @code{GUIParameter}.
+
+
valueOf(String) - Static method in enum jcgp.backend.modules.problem.BestFitness
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum jcgp.backend.parameters.ParameterStatus
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum jcgp.gui.population.GUIGene.GUIGeneState
+
+
Returns the enum constant of this type with the specified name.
+
+
valueProperty() - Method in class jcgp.backend.parameters.Parameter
+
+
This method is intended for bindings only.
+
+
values() - Static method in enum jcgp.backend.modules.problem.BestFitness
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum jcgp.backend.parameters.ParameterStatus
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum jcgp.gui.population.GUIGene.GUIGeneState
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
VerticalDragResize - Class in jcgp.gui.dragresize
+
+
This class adds vertical drag resize functionality to any + arbitrary region provided.
+
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-21.html b/doc/index-files/index-21.html new file mode 100644 index 0000000..308eabe --- /dev/null +++ b/doc/index-files/index-21.html @@ -0,0 +1,133 @@ + + + + + +W-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

W

+
+
WARNING_PARAMETER_STYLE - Static variable in class jcgp.gui.settings.parameters.GUIParameter
+
 
+
WireA() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.WireA
+
 
+
WireB() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.WireB
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-22.html b/doc/index-files/index-22.html new file mode 100644 index 0000000..9e8da56 --- /dev/null +++ b/doc/index-files/index-22.html @@ -0,0 +1,131 @@ + + + + + +X-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

X

+
+
Xnor() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Xnor
+
 
+
Xor() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.Xor
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html new file mode 100644 index 0000000..2833121 --- /dev/null +++ b/doc/index-files/index-3.html @@ -0,0 +1,233 @@ + + + + + +C-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

C

+
+
calculate() - Method in class jcgp.backend.population.Output
+
 
+
Chromosome - Class in jcgp.backend.population
+
+
This class encapsulates a CGP chromosome.
+
+
Chromosome(Resources) - Constructor for class jcgp.backend.population.Chromosome
+
+
Initialise a chromosome with the specified parameters.
+
+
Chromosome(Chromosome) - Constructor for class jcgp.backend.population.Chromosome
+
+
Copy constructor.
+
+
ChromosomePane - Class in jcgp.gui.population
+
 
+
ChromosomePane(Chromosome, GUI, PopulationPane) - Constructor for class jcgp.gui.population.ChromosomePane
+
 
+
ChromosomeParser - Class in jcgp.backend.parsers
+
+
This class contains a method for parsing .chr files and another + for writing .chr files from given chromosomes.
+
+
ChromosomeParser() - Constructor for class jcgp.backend.parsers.ChromosomeParser
+
 
+
clearTestCases() - Method in class jcgp.backend.modules.problem.TestCaseProblem
+
+
Remove all test cases.
+
+
columns() - Method in class jcgp.backend.resources.Resources
+
 
+
compareActiveGenesTo(Chromosome) - Method in class jcgp.backend.population.Chromosome
+
+
Does the same as compareGenesto() but only looks + at the active portion of the chromosome.
+
+
compareGenesTo(Chromosome) - Method in class jcgp.backend.population.Chromosome
+
+
Performs a deep comparison between this chromosome and the provided one.
+
+
compareTo(Chromosome) - Method in class jcgp.backend.population.Chromosome
+
 
+
Connection - Interface in jcgp.backend.population
+
+
Connection declares the expected behaviour of any + part of a chromosome that can be connected to, specifically + nodes or inputs.
+
+
Console - Interface in jcgp.backend.resources
+
+
Defines the basic model for a console.
+
+
CONSOLE_MIN_HEIGHT - Static variable in class jcgp.gui.GUI
+
 
+
ConstantOne() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.ConstantOne
+
 
+
ConstantZero() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions.ConstantZero
+
 
+
copyChromosome(int, int) - Method in class jcgp.backend.population.Population
+
+
Copy a chromosome into a different position.
+
+
copyGenes(Chromosome) - Method in class jcgp.backend.population.Chromosome
+
+
Creates a deep copy of the specified chromosome in the + this instance.
+
+
copyOf(MutableElement) - Method in interface jcgp.backend.population.MutableElement
+
+
Asserts if the specified element is a copy of the elements + this is called on.
+ This method returns true if and only if: + + the elements being compared are not the same instance; + the connections of the compared elements are not the same instance; + the elements have the same function (in the case of Node); + the grid position of the elements themselves are the same; + the grid position of all equivalent connections are the same; + +

+ The relationship computed by this method is: + + symmetric: a.copyOf(b) == b.copyOf(a); + not reflexive: a.copyOf(a) returns false; + not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + not necessarily true since it is possible that a == c. +
+
+
copyOf(MutableElement) - Method in class jcgp.backend.population.Node
+
 
+
copyOf(MutableElement) - Method in class jcgp.backend.population.Output
+
 
+
Cosine() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Cosine
+
 
+
CosineAB() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.CosineAB
+
 
+
create(Parameter<?>, SettingsPane) - Static method in class jcgp.gui.settings.parameters.GUIParameter
+
+
Factory method to create @code{GUIParameter}s from @code{Parameter}s.
+
+
Cube() - Constructor for class jcgp.backend.function.TravellingSalesmanFunctions.Cube
+
 
+
currentGeneration() - Method in class jcgp.backend.resources.Resources
+
 
+
currentRun() - Method in class jcgp.backend.resources.Resources
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html new file mode 100644 index 0000000..d78174e --- /dev/null +++ b/doc/index-files/index-4.html @@ -0,0 +1,262 @@ + + + + + +D-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

D

+
+
DigitalCircuitFunctions - Class in jcgp.backend.function
+
+
This class contains all digital circuit functions + (defined as unsigned integer functions in the classic + CGP implementation) defined in static nested classes.
+
+
DigitalCircuitFunctions() - Constructor for class jcgp.backend.function.DigitalCircuitFunctions
+
+
Creates a new instance of DigitalCircuitFunctions.
+
+
DigitalCircuitFunctions.And - Class in jcgp.backend.function
+
+
ANDs inputs together.
+
+
DigitalCircuitFunctions.AndNotA - Class in jcgp.backend.function
+
+
ANDs inputs together with one input inverted.
+
+
DigitalCircuitFunctions.AndNotB - Class in jcgp.backend.function
+
+
ANDs inputs together with one input inverted.
+
+
DigitalCircuitFunctions.ConstantOne - Class in jcgp.backend.function
+
+
Outputs a constant 1, has no inputs.
+
+
DigitalCircuitFunctions.ConstantZero - Class in jcgp.backend.function
+
+
Outputs a constant 0, has no inputs.
+
+
DigitalCircuitFunctions.Mux1 - Class in jcgp.backend.function
+
+
Works as a multiplexer.
+
+
DigitalCircuitFunctions.Mux2 - Class in jcgp.backend.function
+
+
Works as a multiplexer.
+
+
DigitalCircuitFunctions.Mux3 - Class in jcgp.backend.function
+
+
Works as a multiplexer.
+
+
DigitalCircuitFunctions.Mux4 - Class in jcgp.backend.function
+
+
Works as a multiplexer.
+
+
DigitalCircuitFunctions.Nand - Class in jcgp.backend.function
+
+
NANDs inputs together.
+
+
DigitalCircuitFunctions.Nor - Class in jcgp.backend.function
+
+
NORs inputs together.
+
+
DigitalCircuitFunctions.NotA - Class in jcgp.backend.function
+
+
Inverts input, equivalent to inverter logic gate.
+
+
DigitalCircuitFunctions.NotB - Class in jcgp.backend.function
+
+
Inverts input, equivalent to inverter logic gate.
+
+
DigitalCircuitFunctions.Or - Class in jcgp.backend.function
+
+
ORs inputs together.
+
+
DigitalCircuitFunctions.OrNotA - Class in jcgp.backend.function
+
+
ORs inputs together with one inverted input.
+
+
DigitalCircuitFunctions.OrNotB - Class in jcgp.backend.function
+
+
ORs inputs together with one inverted input.
+
+
DigitalCircuitFunctions.WireA - Class in jcgp.backend.function
+
+
Connects one node to another with no function.
+
+
DigitalCircuitFunctions.WireB - Class in jcgp.backend.function
+
+
Connects one node to another with no function.
+
+
DigitalCircuitFunctions.Xnor - Class in jcgp.backend.function
+
+
XNORs inputs together.
+
+
DigitalCircuitFunctions.Xor - Class in jcgp.backend.function
+
+
XORs inputs together.
+
+
DigitalCircuitProblem - Class in jcgp.backend.modules.problem
+
+
Digital circuit problem +

+ Using this problem type, digital logic circuits can be evolved.
+
+
DigitalCircuitProblem(Resources) - Constructor for class jcgp.backend.modules.problem.DigitalCircuitProblem
+
+
Construct a new instance of DigitalCircuitProblem.
+
+
disableFunction(int) - Method in class jcgp.backend.function.FunctionSet
+
+
Disables the indexed function.
+
+
Division() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Division
+
 
+
DIVISION_LIMIT - Static variable in class jcgp.backend.function.SymbolicRegressionFunctions
+
 
+
DoubleMonitor - Class in jcgp.backend.parameters.monitors
+
+
This is a special type of DoubleParameter which + cannot be modified in the GUI (if the GUI is in use).
+
+
DoubleMonitor(double, String) - Constructor for class jcgp.backend.parameters.monitors.DoubleMonitor
+
+
Creates a new instance of this class, assuming the monitor + is not critical.
+
+
DoubleMonitor(double, String, boolean) - Constructor for class jcgp.backend.parameters.monitors.DoubleMonitor
+
+
Creates a new instance of this class.
+
+
DoubleParameter - Class in jcgp.backend.parameters
+
+
Parameter subclass for the double type.
+
+
DoubleParameter(double, String) - Constructor for class jcgp.backend.parameters.DoubleParameter
+
+
Creates a new instance of this class, assuming the parameter + is not critical.
+
+
DoubleParameter(double, String, boolean) - Constructor for class jcgp.backend.parameters.DoubleParameter
+
+
Creates a new instance of this class.
+
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html new file mode 100644 index 0000000..a056ba9 --- /dev/null +++ b/doc/index-files/index-5.html @@ -0,0 +1,158 @@ + + + + + +E-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

E

+
+
enableFunction(int) - Method in class jcgp.backend.function.FunctionSet
+
+
Disables the indexed function.
+
+
evaluate(Population, Resources) - Method in class jcgp.backend.modules.problem.DigitalCircuitProblem
+
 
+
evaluate(Population, Resources) - Method in class jcgp.backend.modules.problem.Problem
+
+
The most important method of the problem type.
+
+
evaluate(Population, Resources) - Method in class jcgp.backend.modules.problem.SymbolicRegressionProblem
+
 
+
evaluateTestCase(TestCaseProblem.TestCase<Object>) - Method in class jcgp.gui.GUI
+
 
+
evaluateTestCase(TestCaseProblem.TestCase<Object>) - Method in class jcgp.gui.population.PopulationPane
+
 
+
EvolutionaryStrategy - Class in jcgp.backend.modules.es
+
+
This class specifies the characteristics of an evolutionary strategy.
+
+
evolve(Population, Mutator) - Method in class jcgp.backend.modules.es.EvolutionaryStrategy
+
+
Performs the selection algorithm and uses the mutator to create + the next generation of solutions.
+
+
evolve(Population, Mutator) - Method in class jcgp.backend.modules.es.MuPlusLambda
+
 
+
evolve(Population, Mutator) - Method in class jcgp.backend.modules.es.TournamentSelection
+
 
+
Exponential() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Exponential
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html new file mode 100644 index 0000000..925008d --- /dev/null +++ b/doc/index-files/index-6.html @@ -0,0 +1,172 @@ + + + + + +F-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

F

+
+
fitnessOrientation() - Method in class jcgp.backend.resources.Resources
+
 
+
FixedPointMutator - Class in jcgp.backend.modules.mutator
+
+
Fixed point mutator +

+ This operator uses the point mutator + algorithm to mutate a user-defined fixed + number of genes.
+
+
FixedPointMutator(Resources) - Constructor for class jcgp.backend.modules.mutator.FixedPointMutator
+
+
Creates a new instance of FixedPointMutator.
+
+
flush() - Method in interface jcgp.backend.resources.Console
+
+
Outputs all buffered messages to the console.
+
+
flush() - Method in class jcgp.gui.console.GUIConsole
+
 
+
flushConsole() - Method in class jcgp.gui.GUI
+
 
+
Function - Class in jcgp.backend.function
+
+
Function is a callback wrapper.
+
+
Function() - Constructor for class jcgp.backend.function.Function
+
 
+
FunctionParser - Class in jcgp.backend.parsers
+
+
Contains a static method for parsing functions from a + .par file.
+
+
FunctionParser() - Constructor for class jcgp.backend.parsers.FunctionParser
+
 
+
FunctionSelector - Class in jcgp.gui.population
+
 
+
FunctionSelector(FunctionSet) - Constructor for class jcgp.gui.population.FunctionSelector
+
 
+
FunctionSet - Class in jcgp.backend.function
+
+
FunctionSet encapsulates a group of functions.
+
+
FunctionSet() - Constructor for class jcgp.backend.function.FunctionSet
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html new file mode 100644 index 0000000..f92083f --- /dev/null +++ b/doc/index-files/index-7.html @@ -0,0 +1,566 @@ + + + + + +G-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

G

+
+
generations() - Method in class jcgp.backend.resources.Resources
+
 
+
get() - Method in class jcgp.backend.function.UnsignedInteger
+
 
+
get() - Method in class jcgp.backend.parameters.BooleanParameter
+
 
+
get() - Method in class jcgp.backend.parameters.DoubleParameter
+
 
+
get() - Method in class jcgp.backend.parameters.IntegerParameter
+
 
+
get() - Method in class jcgp.backend.parameters.Parameter
+
 
+
get(int) - Method in class jcgp.backend.population.Population
+
+
Returns the indexed chromosome.
+
+
getActiveNodes() - Method in class jcgp.backend.population.Chromosome
+
+
This method computes a list of active nodes (if necessary) and returns it.
+
+
getActiveNodes(ArrayList<Node>) - Method in class jcgp.backend.population.Output
+
 
+
getActiveNodes() - Method in class jcgp.backend.statistics.RunEntry
+
 
+
getAllowedFunction(int) - Method in class jcgp.backend.function.FunctionSet
+
+
Returns an allowed function.
+
+
getAllowedFunctionCount() - Method in class jcgp.backend.function.FunctionSet
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.And
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.AndNotA
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.AndNotB
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.ConstantOne
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.ConstantZero
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux1
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux2
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux3
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Mux4
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Nand
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Nor
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.NotA
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.NotB
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Or
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.OrNotA
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.OrNotB
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.WireA
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.WireB
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Xnor
+
 
+
getArity() - Method in class jcgp.backend.function.DigitalCircuitFunctions.Xor
+
 
+
getArity() - Method in class jcgp.backend.function.Function
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Absolute
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Addition
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Cosine
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.CosineAB
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Division
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Exponential
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicCosine
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicSine
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicTangent
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Hypotenuse
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.LogBaseTen
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Multiplication
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.NaturalLog
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Power
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Reciprocal
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Sine
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.SineAB
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.SquareRoot
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Subtraction
+
 
+
getArity() - Method in class jcgp.backend.function.SymbolicRegressionFunctions.Tangent
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteCosineAB
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteSineAB
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.BoundedDivision
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Cube
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Multiplication
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledAddition
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledExponential
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.ScaledHypotenuse
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.Square
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SquaredMultiplication
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SquareRoot
+
 
+
getArity() - Method in class jcgp.backend.function.TravellingSalesmanFunctions.SymmetricSubtraction
+
 
+
getArityParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getAverageActiveNodes() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Averages the number of active nodes in the + best chromosomes obtained across all runs.
+
+
getAverageActiveNodesStdDev() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Calculates the standard deviation of + the number of active nodes in the best solution + in each run.
+
+
getAverageFitness() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Averages the best fitness obtained in each run.
+
+
getAverageFitnessStdDev() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Calculates the standard deviation of + the best fitness obtained in each run.
+
+
getAverageGenerations() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Calculates the average generation out of all runs.
+
+
getAverageGenerationsStdDev() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Calculates the standard deviation of + the average number of generations in + each run.
+
+
getAverageSuccessfulGenerations() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Calculates the average generation out of successful runs only.
+
+
getAverageSuccessfulGenerationsStdDev() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Calculates the standard deviation of + the average number of generations in + each run where a perfect solution was found.
+
+
getBestFitness() - Method in class jcgp.backend.modules.problem.Problem
+
 
+
getChangingConnection() - Method in class jcgp.gui.population.GUIGene
+
 
+
getChangingConnection() - Method in class jcgp.gui.population.GUIInput
+
 
+
getChangingConnection() - Method in class jcgp.gui.population.GUINode
+
 
+
getChangingConnection() - Method in class jcgp.gui.population.GUIOutput
+
 
+
getChromosomeIndex() - Method in class jcgp.gui.GUI
+
 
+
getColumn() - Method in class jcgp.backend.population.Node
+
 
+
getColumnsParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getConnection(int) - Method in class jcgp.backend.population.Node
+
 
+
getCurrentGenerationParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getCurrentRunParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getDetails() - Method in enum jcgp.backend.parameters.ParameterStatus
+
 
+
getEvolutionaryStrategies() - Method in class jcgp.JCGP
+
 
+
getEvolutionaryStrategy() - Method in class jcgp.JCGP
+
 
+
getExperiment() - Method in class jcgp.gui.GUI
+
 
+
getFileExtension() - Method in class jcgp.backend.modules.problem.Problem
+
 
+
getFitness() - Method in class jcgp.backend.population.Chromosome
+
 
+
getFitness() - Method in class jcgp.backend.statistics.RunEntry
+
 
+
getFitnessOrientation() - Method in class jcgp.backend.modules.problem.Problem
+
 
+
getFunction(int) - Method in class jcgp.backend.function.FunctionSet
+
+
Returns a function from the complete collection, + enabled or disabled alike.
+
+
getFunction() - Method in class jcgp.backend.population.Node
+
 
+
getFunction(int) - Method in class jcgp.backend.resources.Resources
+
+
Gets the indexed function out of the + complete set of functions.
+
+
getFunctionIndex(Function) - Method in class jcgp.backend.resources.Resources
+
+
Returns the index of a specified function.
+
+
getFunctionSet() - Method in class jcgp.backend.modules.problem.Problem
+
 
+
getFunctionSet() - Method in class jcgp.backend.resources.Resources
+
 
+
getGeneration() - Method in class jcgp.backend.statistics.RunEntry
+
 
+
getGenerationsParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getHighestFitness() - Method in class jcgp.backend.statistics.StatisticsLogger
+
 
+
getIndex() - Method in class jcgp.backend.population.Input
+
 
+
getIndex() - Method in class jcgp.backend.population.Output
+
 
+
getInput(int) - Method in class jcgp.backend.modules.problem.TestCaseProblem.TestCase
+
 
+
getInput(int) - Method in class jcgp.backend.population.Chromosome
+
+
Returns a reference to the indexed input.
+
+
getInputs() - Method in class jcgp.backend.modules.problem.TestCaseProblem.TestCase
+
 
+
getInputsParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getLevelsBackParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getLocalParameters() - Method in class jcgp.backend.modules.Module
+
+
This method is used by the GUI in order to build visual + representations of all parameters used by the module.
+
+
getLocks() - Method in class jcgp.gui.population.GUIGene
+
 
+
getLowestFitness() - Method in class jcgp.backend.statistics.StatisticsLogger
+
 
+
getMaxArity() - Method in class jcgp.backend.function.FunctionSet
+
+
Computes and returns the maximum arity out of + all enabled functions.
+
+
getMutator() - Method in class jcgp.JCGP
+
 
+
getMutators() - Method in class jcgp.JCGP
+
 
+
getNode(int, int) - Method in class jcgp.backend.population.Chromosome
+
+
Returns a reference to any node, addressed by row and column.
+
+
getNode() - Method in class jcgp.gui.population.GUINode
+
 
+
getOutput(int) - Method in class jcgp.backend.modules.problem.TestCaseProblem.TestCase
+
 
+
getOutput(int) - Method in class jcgp.backend.population.Chromosome
+
+
Returns a reference to the indexed output.
+
+
getOutputs() - Method in class jcgp.backend.modules.problem.TestCaseProblem.TestCase
+
 
+
getOutputsParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getPopulation() - Method in class jcgp.JCGP
+
 
+
getPopulationSizeParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getProblem() - Method in class jcgp.JCGP
+
 
+
getProblems() - Method in class jcgp.JCGP
+
 
+
getRandomChromosome() - Method in class jcgp.backend.population.Population
+
 
+
getRandomConnection(int) - Method in class jcgp.backend.population.Chromosome
+
+
Returns a random allowed connection respecting levels back.
+ This method may always pick inputs, as they can be picked + regardless of the column.
+
+
getRandomConnection() - Method in class jcgp.backend.population.Chromosome
+
+
This method will pick a completely random connection, independently + of levels back, including inputs.
+
+
getRandomDouble(int) - Method in class jcgp.backend.resources.Resources
+
+
Gets the next random double using the experiment's random + number generator.
+
+
getRandomDouble() - Method in class jcgp.backend.resources.Resources
+
+
Gets the next random integer using the experiment's random + number generator.
+
+
getRandomFunction() - Method in class jcgp.backend.resources.Resources
+
+
Gets a random allowed function from the problem function set.
+
+
getRandomInt(int) - Method in class jcgp.backend.resources.Resources
+
+
Gets the next random integer using the experiment's random + number generator.
+
+
getRandomMutableElement() - Method in class jcgp.backend.population.Chromosome
+
+
This method is useful for mutating chromosomes.
+
+
getReportIntervalParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getResources() - Method in class jcgp.backend.population.Chromosome
+
 
+
getResources() - Method in class jcgp.JCGP
+
+
Returns a reference to the ModifiableResources used by the + experiment.
+
+
getRow() - Method in class jcgp.backend.population.Node
+
 
+
getRowsParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getRunsParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getSeedParameter() - Method in class jcgp.backend.resources.ModifiableResources
+
 
+
getSource() - Method in class jcgp.backend.population.Output
+
 
+
getStage() - Method in class jcgp.gui.GUI
+
 
+
getState() - Method in class jcgp.gui.population.GUIGene
+
 
+
getStatus() - Method in class jcgp.backend.parameters.Parameter
+
 
+
getSuccessfulRuns() - Method in class jcgp.backend.statistics.StatisticsLogger
+
 
+
getSuccessRate() - Method in class jcgp.backend.statistics.StatisticsLogger
+
+
Calculates the ratio of successful runs (runs where + a perfect solution was found) to total number of runs.
+
+
getTable() - Method in class jcgp.gui.settings.testcase.TestCaseTable
+
 
+
getTestCases() - Method in class jcgp.backend.modules.problem.TestCaseProblem
+
 
+
getTestCaseTable() - Method in class jcgp.gui.settings.SettingsPane
+
 
+
getTotalFunctionCount() - Method in class jcgp.backend.function.FunctionSet
+
 
+
getValue() - Method in interface jcgp.backend.population.Connection
+
+
Compute and return the value of this connection.
+
+
getValue() - Method in class jcgp.backend.population.Input
+
 
+
getValue() - Method in class jcgp.backend.population.Node
+
 
+
GOOD_SELECTION_COLOUR - Static variable in class jcgp.gui.GUI
+
 
+
GUI - Class in jcgp.gui
+
+
Main class for the graphical user interface (GUI)
+
+
GUI() - Constructor for class jcgp.gui.GUI
+
 
+
GUIBooleanParameter - Class in jcgp.gui.settings.parameters
+
+
This extension of @code{GUIParameter} uses a @code{CheckBox} to display + the value of a @code{BooleanParameter}.
+
+
GUIConsole - Class in jcgp.gui.console
+
+
Console pane used by the GUI to display CGP output messages.
+
+
GUIConsole() - Constructor for class jcgp.gui.console.GUIConsole
+
+
Creates a new instance of this class.
+
+
GUIDoubleParameter - Class in jcgp.gui.settings.parameters
+
+
This extension of @code{GUIParameter} uses a @code{TextField} to display + the value of a @code{DoubleParameter}.
+
+
GUIGene - Class in jcgp.gui.population
+
 
+
GUIGene() - Constructor for class jcgp.gui.population.GUIGene
+
 
+
GUIGene.GUIGeneState - Enum in jcgp.gui.population
+
 
+
GUIInput - Class in jcgp.gui.population
+
 
+
GUIInput(ChromosomePane, Input) - Constructor for class jcgp.gui.population.GUIInput
+
 
+
GUIIntegerParameter - Class in jcgp.gui.settings.parameters
+
+
This extension of @code{GUIParameter} uses a @code{TextField} to display + the value of a @code{IntegerParameter}.
+
+
GUINode - Class in jcgp.gui.population
+
 
+
GUINode(ChromosomePane, Node, Line[], GUI) - Constructor for class jcgp.gui.population.GUINode
+
 
+
GUIOutput - Class in jcgp.gui.population
+
 
+
GUIOutput(ChromosomePane, Output, Line, GUI) - Constructor for class jcgp.gui.population.GUIOutput
+
 
+
GUIParameter<T> - Class in jcgp.gui.settings.parameters
+
+
This is the base class for all @code{GUIParameter}s.
+
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html new file mode 100644 index 0000000..1f4c14a --- /dev/null +++ b/doc/index-files/index-8.html @@ -0,0 +1,155 @@ + + + + + +H-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

H

+
+
HARD_HIGHLIGHT_COLOUR - Static variable in class jcgp.gui.GUI
+
 
+
hasImprovement(Population) - Method in class jcgp.backend.modules.problem.DigitalCircuitProblem
+
 
+
hasImprovement(Population) - Method in class jcgp.backend.modules.problem.Problem
+
+
Used to assert whether a given population has a chromosome that is an improvement over + the current best chromosome.
+
+
hasImprovement(Population) - Method in class jcgp.backend.modules.problem.SymbolicRegressionProblem
+
 
+
hideGeneValues() - Method in class jcgp.gui.GUI
+
 
+
hideValues() - Method in class jcgp.gui.population.PopulationPane
+
 
+
HorizontalDragResize - Class in jcgp.gui.dragresize
+
+
This class adds horizontal drag resize functionality to any + arbitrary region provided.
+
+
HyperbolicCosine() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicCosine
+
 
+
HyperbolicSine() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicSine
+
 
+
HyperbolicTangent() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicTangent
+
 
+
Hypotenuse() - Constructor for class jcgp.backend.function.SymbolicRegressionFunctions.Hypotenuse
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html new file mode 100644 index 0000000..fcefb3b --- /dev/null +++ b/doc/index-files/index-9.html @@ -0,0 +1,206 @@ + + + + + +I-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I J L M N O P R S T U V W X  + + +

I

+
+
incrementGeneration() - Method in class jcgp.backend.resources.ModifiableResources
+
+
Adds 1 to the current generation.
+
+
incrementRun() - Method in class jcgp.backend.resources.ModifiableResources
+
+
Adds 1 to the current generation.
+
+
initialise(Function, Connection...) - Method in class jcgp.backend.population.Node
+
+
Initialises the node with the specified values.
+
+
Input - Class in jcgp.backend.population
+
+
This is a chromosome input.
+
+
Input(int) - Constructor for class jcgp.backend.population.Input
+
+
Initialises a new input with the current index.
+
+
inputs() - Method in class jcgp.backend.resources.Resources
+
 
+
IntegerMonitor - Class in jcgp.backend.parameters.monitors
+
+
This is a special type of IntegerParameter which + cannot be modified in the GUI (if the GUI is in use).
+
+
IntegerMonitor(int, String) - Constructor for class jcgp.backend.parameters.monitors.IntegerMonitor
+
+
Creates a new instance of this class, assuming the monitor + is not critical.
+
+
IntegerMonitor(int, String, boolean) - Constructor for class jcgp.backend.parameters.monitors.IntegerMonitor
+
+
Creates a new instance of this class.
+
+
IntegerParameter - Class in jcgp.backend.parameters
+
+
Parameter subclass for the double type.
+
+
IntegerParameter(int, String) - Constructor for class jcgp.backend.parameters.IntegerParameter
+
+
Creates a new instance of this class, assuming the parameter + is not critical.
+
+
IntegerParameter(int, String, boolean) - Constructor for class jcgp.backend.parameters.IntegerParameter
+
+
Creates a new instance of this class.
+
+
INVALID_PARAMETER_STYLE - Static variable in class jcgp.gui.settings.parameters.GUIParameter
+
 
+
isCritical() - Method in class jcgp.backend.parameters.Parameter
+
 
+
isEnabled(Function) - Method in class jcgp.backend.function.FunctionSet
+
+
Checks if a specified function is enabled.
+
+
isEvaluating() - Method in class jcgp.gui.population.ChromosomePane
+
 
+
isEvaluating() - Method in class jcgp.gui.population.PopulationPane
+
 
+
isExperimentRunning() - Method in class jcgp.gui.settings.SettingsPane
+
 
+
isFinished() - Method in class jcgp.JCGP
+
+
Returns the experiment's status.
+
+
isLocked() - Method in class jcgp.gui.population.GUIGene
+
 
+
isMonitor() - Method in class jcgp.backend.parameters.Parameter
+
 
+
isResetRequired() - Method in class jcgp.gui.settings.SettingsPane
+
 
+
isSuccessful() - Method in class jcgp.backend.statistics.RunEntry
+
 
+
isValid() - Method in class jcgp.gui.settings.parameters.GUIParameter
+
 
+
isWorking() - Method in class jcgp.gui.GUI
+
 
+
+A B C D E F G H I J L M N O P R S T U V W X 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..1c00fb3 --- /dev/null +++ b/doc/index.html @@ -0,0 +1,74 @@ + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/doc/jcgp/JCGP.html b/doc/jcgp/JCGP.html new file mode 100644 index 0000000..9005792 --- /dev/null +++ b/doc/jcgp/JCGP.html @@ -0,0 +1,704 @@ + + + + + +JCGP + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp
+

Class JCGP

+
+
+ +
+
    +
  • +
    +
    +
    public class JCGP
    +extends java.lang.Object
    +
    Top-level JCGP class. This class is the entry point for a CGP experiment. +

    + An instance of JCGP encapsulates the entire experiment. It contains a Resources + object which can be retrieved via a getter. Modules can be selected using their + respective setters. +

    + The flow of the experiment is controlled using start(), nextGeneration() + and reset(). Files can be loaded with their respective load methods and + chromosome configurations can be saved with saveChromosome(). +

    + JCGP supports an extra console in addition to System.console(), so that messages + can also be printed to a GUI, for example. This extra console can be set with setConsole(), + and must implement jcgp.resources.Console.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JCGP

        +
        public JCGP()
        +
        Creates a new instance of JCGP.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String... args)
        +
        JCGP main method, this is used to execute JCGP from the command line. +

        + In this case the program works in the same way as the classic CGP implementation, + requiring a .par file and an optional problem data file. As in the traditional CGP + implementation, the program must be compiled with the right problem type selected.
        +
        +
        Parameters:
        +
        args - one or more files needed to perform the experiment.
        +
        +
      • +
      + + + +
        +
      • +

        getResources

        +
        public ModifiableResources getResources()
        +
        Returns a reference to the ModifiableResources used by the + experiment.
        + Use this with care, since changing experiment parameters may + have unintended effects if not done properly.
        +
        +
        Returns:
        +
        a reference to the experiment's resources.
        +
        +
      • +
      + + + +
        +
      • +

        getPopulation

        +
        public Population getPopulation()
        +
        +
        Returns:
        +
        a reference to the experiment's population.
        +
        +
      • +
      + + + +
        +
      • +

        getMutators

        +
        public java.util.ArrayList<Mutator> getMutators()
        +
        +
        Returns:
        +
        a complete list of the experiment's mutators.
        +
        +
      • +
      + + + +
        +
      • +

        getMutator

        +
        public Mutator getMutator()
        +
        +
        Returns:
        +
        the currently selected mutator.
        +
        +
      • +
      + + + +
        +
      • +

        getEvolutionaryStrategies

        +
        public java.util.ArrayList<EvolutionaryStrategy> getEvolutionaryStrategies()
        +
        +
        Returns:
        +
        a complete list of the experiment's evolutionary strategies.
        +
        +
      • +
      + + + +
        +
      • +

        getEvolutionaryStrategy

        +
        public EvolutionaryStrategy getEvolutionaryStrategy()
        +
        +
        Returns:
        +
        the currently selected evolutionary strategy.
        +
        +
      • +
      + + + +
        +
      • +

        getProblems

        +
        public java.util.ArrayList<Problem> getProblems()
        +
        +
        Returns:
        +
        a complete list of the experiment's problem types.
        +
        +
      • +
      + + + +
        +
      • +

        getProblem

        +
        public Problem getProblem()
        +
        +
        Returns:
        +
        the currently selected problem type.
        +
        +
      • +
      + + + +
        +
      • +

        setMutator

        +
        public void setMutator(int index)
        +
        +
        Parameters:
        +
        index - the index of the desired mutator.
        +
        +
      • +
      + + + +
        +
      • +

        setEvolutionaryStrategy

        +
        public void setEvolutionaryStrategy(int index)
        +
        +
        Parameters:
        +
        index - the index of the desired evolutionary strategy.
        +
        +
      • +
      + + + +
        +
      • +

        setProblem

        +
        public void setProblem(int index)
        +
        +
        Parameters:
        +
        index - the index of the desired problem type.
        +
        +
      • +
      + + + +
        +
      • +

        nextGeneration

        +
        public void nextGeneration()
        +
        Performs one full generational cycle. More specifically, + this method evaluates the current population using the + selected problem, and checks whether a solution has been found. +
        + If the experiment is to continue, a new generation is created + using the selected evolutionary strategy and mutator. +

        + This method also deals with ending runs, in other words, + a new population is created at the end of each run automatically. + When all runs have been performed, this method sets the experiment + finished flag and does nothing until reset() is called.
        +
      • +
      + + + +
        +
      • +

        start

        +
        public void start()
        +
        This method calls nextGeneration() in a loop + until the experiment is flagged as finished. This is + performed on the same thread of execution, so this + method will most likely block for a significant amount + of time (problem-dependent, but anywhere from seconds to days). +
        + Once the experiment is finished, calling this method does + nothing until reset() is called.
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
        Resets the experiment. +
        + More specifically: this creates a new population, resets + the current generation and run parameters to 1 and prints + a complete list of the experiment's parameters.
        +
      • +
      + + + +
        +
      • +

        loadParameters

        +
        public void loadParameters(java.io.File file)
        +
        When given a .par file, this method loads the parameters into the + experiment's resources. This causes an experiment-wide reset.
        +
        +
        Parameters:
        +
        file - the file to parse.
        +
        +
      • +
      + + + +
        +
      • +

        loadProblemData

        +
        public void loadProblemData(java.io.File file)
        +
        Parses a problem data file. This is problem-dependent, not + all problems require a data file.
        +
        +
        Parameters:
        +
        file - the file to parse.
        +
        +
      • +
      + + + +
        +
      • +

        loadChromosome

        +
        public void loadChromosome(java.io.File file,
        +                           int chromosomeIndex)
        +
        Loads a chromosome from the given file into + the specified population index.
        +
        +
        Parameters:
        +
        file - the chromosome to parse.
        +
        chromosomeIndex - the population index into which to parse.
        +
        +
      • +
      + + + +
        +
      • +

        saveChromosome

        +
        public void saveChromosome(java.io.File file,
        +                           int chromosomeIndex)
        +
        Saves a copy of the specified chromosome + into the given file.
        +
        +
        Parameters:
        +
        file - the target file.
        +
        chromosomeIndex - the index of the chromosome to save.
        +
        +
      • +
      + + + +
        +
      • +

        isFinished

        +
        public boolean isFinished()
        +
        Returns the experiment's status. When finished, the only + way to continue is by calling reset().
        +
        +
        Returns:
        +
        true if the experiment is finished.
        +
        +
      • +
      + + + +
        +
      • +

        setConsole

        +
        public void setConsole(Console console)
        +
        Sets an extra console. The entire JCGP library prints + messages to System.console() but also to an + additional console, if one is defined. This is used so + that messages are printed on a user interface as well, + or written directly to a file, for example.
        +
        +
        Parameters:
        +
        console - the extra console to be used.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.And.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.And.html new file mode 100644 index 0000000..23a7de4 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.And.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.And + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.And

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      And() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        And

        +
        public And()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.AndNotA.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.AndNotA.html new file mode 100644 index 0000000..c6817a3 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.AndNotA.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.AndNotA + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.AndNotA

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.AndNotA
    +extends Function
    +
    ANDs inputs together with one input inverted.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AndNotA() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AndNotA

        +
        public AndNotA()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.AndNotB.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.AndNotB.html new file mode 100644 index 0000000..d42241d --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.AndNotB.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.AndNotB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.AndNotB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.AndNotB
    +extends Function
    +
    ANDs inputs together with one input inverted.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AndNotB() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AndNotB

        +
        public AndNotB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.ConstantOne.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.ConstantOne.html new file mode 100644 index 0000000..96689f1 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.ConstantOne.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.ConstantOne + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.ConstantOne

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.ConstantOne
    +extends Function
    +
    Outputs a constant 1, has no inputs.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ConstantOne() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConstantOne

        +
        public ConstantOne()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.ConstantZero.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.ConstantZero.html new file mode 100644 index 0000000..b21a7c7 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.ConstantZero.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.ConstantZero + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.ConstantZero

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.ConstantZero
    +extends Function
    +
    Outputs a constant 0, has no inputs.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ConstantZero() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConstantZero

        +
        public ConstantZero()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux1.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux1.html new file mode 100644 index 0000000..3b93699 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux1.html @@ -0,0 +1,330 @@ + + + + + +DigitalCircuitFunctions.Mux1 + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Mux1

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.Mux1
    +extends Function
    +
    Works as a multiplexer. Outputs either one of its two inputs + depending on a third input (select).
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Mux1() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Mux1

        +
        public Mux1()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux2.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux2.html new file mode 100644 index 0000000..951ed18 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux2.html @@ -0,0 +1,330 @@ + + + + + +DigitalCircuitFunctions.Mux2 + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Mux2

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.Mux2
    +extends Function
    +
    Works as a multiplexer. Outputs either one of its two inputs + depending on a third input (select). Input 0 is inverted.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Mux2() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Mux2

        +
        public Mux2()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux3.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux3.html new file mode 100644 index 0000000..56c9c00 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux3.html @@ -0,0 +1,330 @@ + + + + + +DigitalCircuitFunctions.Mux3 + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Mux3

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.Mux3
    +extends Function
    +
    Works as a multiplexer. Outputs either one of its two inputs + depending on a third input (select). Input 1 is inverted.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Mux3() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Mux3

        +
        public Mux3()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux4.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux4.html new file mode 100644 index 0000000..044bccc --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Mux4.html @@ -0,0 +1,330 @@ + + + + + +DigitalCircuitFunctions.Mux4 + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Mux4

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.Mux4
    +extends Function
    +
    Works as a multiplexer. Outputs either one of its two inputs + depending on a third input (select). Both inputs are inverted.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Mux4() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Mux4

        +
        public Mux4()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Nand.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Nand.html new file mode 100644 index 0000000..1239ab6 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Nand.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.Nand + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Nand

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Nand() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Nand

        +
        public Nand()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Nor.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Nor.html new file mode 100644 index 0000000..04215de --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Nor.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.Nor + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Nor

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Nor() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Nor

        +
        public Nor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.NotA.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.NotA.html new file mode 100644 index 0000000..2cb1bc7 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.NotA.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.NotA + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.NotA

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.NotA
    +extends Function
    +
    Inverts input, equivalent to inverter logic gate.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NotA() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NotA

        +
        public NotA()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.NotB.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.NotB.html new file mode 100644 index 0000000..597fec6 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.NotB.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.NotB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.NotB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.NotB
    +extends Function
    +
    Inverts input, equivalent to inverter logic gate.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NotB() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NotB

        +
        public NotB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Or.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Or.html new file mode 100644 index 0000000..f393976 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Or.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.Or + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Or

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Or() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Or

        +
        public Or()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.OrNotA.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.OrNotA.html new file mode 100644 index 0000000..031a72c --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.OrNotA.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.OrNotA + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.OrNotA

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.OrNotA
    +extends Function
    +
    ORs inputs together with one inverted input.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      OrNotA() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OrNotA

        +
        public OrNotA()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.OrNotB.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.OrNotB.html new file mode 100644 index 0000000..7eb8869 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.OrNotB.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.OrNotB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.OrNotB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.OrNotB
    +extends Function
    +
    ORs inputs together with one inverted input.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      OrNotB() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OrNotB

        +
        public OrNotB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.WireA.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.WireA.html new file mode 100644 index 0000000..1f02741 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.WireA.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.WireA + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.WireA

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.WireA
    +extends Function
    +
    Connects one node to another with no function.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      WireA() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WireA

        +
        public WireA()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.WireB.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.WireB.html new file mode 100644 index 0000000..c76b05b --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.WireB.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.WireB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.WireB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    DigitalCircuitFunctions
    +
    +
    +
    +
    public static class DigitalCircuitFunctions.WireB
    +extends Function
    +
    Connects one node to another with no function.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      WireB() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WireB

        +
        public WireB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Xnor.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Xnor.html new file mode 100644 index 0000000..b9bfed3 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Xnor.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.Xnor + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Xnor

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Xnor() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Xnor

        +
        public Xnor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.Xor.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.Xor.html new file mode 100644 index 0000000..2d0a535 --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.Xor.html @@ -0,0 +1,329 @@ + + + + + +DigitalCircuitFunctions.Xor + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions.Xor

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Xor() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      UnsignedIntegerrun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Xor

        +
        public Xor()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public UnsignedInteger run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/DigitalCircuitFunctions.html b/doc/jcgp/backend/function/DigitalCircuitFunctions.html new file mode 100644 index 0000000..071507e --- /dev/null +++ b/doc/jcgp/backend/function/DigitalCircuitFunctions.html @@ -0,0 +1,398 @@ + + + + + +DigitalCircuitFunctions + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class DigitalCircuitFunctions

+
+
+ +
+
    +
  • +
    +
    +
    public class DigitalCircuitFunctions
    +extends FunctionSet
    +
    This class contains all digital circuit functions + (defined as unsigned integer functions in the classic + CGP implementation) defined in static nested classes. +
    + This is the function set used by DigitalCircuitProblem.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    DigitalCircuitProblem
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DigitalCircuitFunctions

        +
        public DigitalCircuitFunctions()
        +
        Creates a new instance of DigitalCircuitFunctions.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/Function.html b/doc/jcgp/backend/function/Function.html new file mode 100644 index 0000000..e08145b --- /dev/null +++ b/doc/jcgp/backend/function/Function.html @@ -0,0 +1,310 @@ + + + + + +Function + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class Function

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Function() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      abstract intgetArity() 
      abstract java.lang.Objectrun(java.lang.Object... args) +
      Executes the function.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Function

        +
        public Function()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public abstract java.lang.Object run(java.lang.Object... args)
        +
        Executes the function.
        +
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public abstract int getArity()
        +
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/FunctionSet.html b/doc/jcgp/backend/function/FunctionSet.html new file mode 100644 index 0000000..cca036d --- /dev/null +++ b/doc/jcgp/backend/function/FunctionSet.html @@ -0,0 +1,452 @@ + + + + + +FunctionSet + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class FunctionSet

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    DigitalCircuitFunctions, SymbolicRegressionFunctions, TravellingSalesmanFunctions
    +
    +
    +
    +
    public abstract class FunctionSet
    +extends java.lang.Object
    +
    FunctionSet encapsulates a group of functions. This is done to + simplify the implementation of problem types. +

    + FunctionSet contains a variety of useful methods for acquiring general + information, such as the maximum arity across all functions and the total + number of functions. +

    + In addition, FunctionSet offers the ability to enable and disable functions. + Accessing the functions through getAllowedFunction() will return + allowed functions only, providing an easy way to control which functions + can be used in mutations. +

    + An implementation of FunctionSet must simply use its constructor to set + the name field and use registerFunctions() to add the required + functions.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FunctionSet

        +
        public FunctionSet()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAllowedFunctionCount

        +
        public int getAllowedFunctionCount()
        +
        +
        Returns:
        +
        the number of currently allowed functions.
        +
        +
      • +
      + + + +
        +
      • +

        getTotalFunctionCount

        +
        public int getTotalFunctionCount()
        +
        +
        Returns:
        +
        the total number of functions, including disabled ones.
        +
        +
      • +
      + + + +
        +
      • +

        getAllowedFunction

        +
        public Function getAllowedFunction(int index)
        +
        Returns an allowed function. This throws an + ArrayIndexOutOfBoundsException if the supplied + index is beyond the count of allowed functions.
        +
        +
        Parameters:
        +
        index - the allowed function index.
        +
        Returns:
        +
        the allowed function object.
        +
        +
      • +
      + + + +
        +
      • +

        getFunction

        +
        public Function getFunction(int index)
        +
        Returns a function from the complete collection, + enabled or disabled alike. This throws an + ArrayIndexOutOfBoundsException if the supplied + index is beyond the count of allowed functions.
        +
        +
        Parameters:
        +
        index - the function index.
        +
        Returns:
        +
        the function object.
        +
        +
      • +
      + + + +
        +
      • +

        getMaxArity

        +
        public int getMaxArity()
        +
        Computes and returns the maximum arity out of + all enabled functions.
        +
        +
        Returns:
        +
        the problem's current maximum arity.
        +
        +
      • +
      + + + +
        +
      • +

        disableFunction

        +
        public void disableFunction(int index)
        +
        Disables the indexed function. If the function + is already disabled, this does nothing.
        +
        +
        Parameters:
        +
        index - the function to disable.
        +
        +
      • +
      + + + +
        +
      • +

        enableFunction

        +
        public void enableFunction(int index)
        +
        Disables the indexed function. If the function is + already enabled, this does nothing.
        +
        +
        Parameters:
        +
        index - the function to disable.
        +
        +
      • +
      + + + +
        +
      • +

        isEnabled

        +
        public boolean isEnabled(Function function)
        +
        Checks if a specified function is enabled. If the function + does not belong in the FunctionSet, this returns false.
        +
        +
        Parameters:
        +
        function - the function to check.
        +
        Returns:
        +
        true if the function is enabled.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Absolute.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Absolute.html new file mode 100644 index 0000000..786917e --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Absolute.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.Absolute + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Absolute

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Absolute
    +extends Function
    +
    Absolute returns the positive value of input 0.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Absolute() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Absolute

        +
        public Absolute()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Addition.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Addition.html new file mode 100644 index 0000000..537e2e1 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Addition.html @@ -0,0 +1,329 @@ + + + + + +SymbolicRegressionFunctions.Addition + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Addition

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Addition
    +extends Function
    +
    Addition returns the sum of inputs 0 and 1.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Addition() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Addition

        +
        public Addition()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Cosine.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Cosine.html new file mode 100644 index 0000000..3769145 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Cosine.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.Cosine + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Cosine

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Cosine
    +extends Function
    +
    Cosine function, in radians.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Cosine() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Cosine

        +
        public Cosine()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.CosineAB.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.CosineAB.html new file mode 100644 index 0000000..5c47925 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.CosineAB.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.CosineAB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.CosineAB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.CosineAB
    +extends Function
    +
    Cosine of sum. Returns the cosine of the sum of inputs 0 and 1.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      CosineAB() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CosineAB

        +
        public CosineAB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Division.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Division.html new file mode 100644 index 0000000..c839d72 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Division.html @@ -0,0 +1,330 @@ + + + + + +SymbolicRegressionFunctions.Division + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Division

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Division
    +extends Function
    +
    Protected division, returns the quotient of input 0 (the dividend) and input 1 (the divisor). + If the divisor is less than DoubleArithmetic.DIVISION_LIMIT, this returns it unchanged.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Division() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Division

        +
        public Division()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Exponential.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Exponential.html new file mode 100644 index 0000000..29c7cdc --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Exponential.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.Exponential + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Exponential

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Exponential
    +extends Function
    +
    Exponential function. Returns e raised to input 0.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Exponential() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Exponential

        +
        public Exponential()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicCosine.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicCosine.html new file mode 100644 index 0000000..495e5f6 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicCosine.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.HyperbolicCosine + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.HyperbolicCosine

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.HyperbolicCosine
    +extends Function
    +
    Returns the hyperbolic cosine of input 0.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      HyperbolicCosine() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HyperbolicCosine

        +
        public HyperbolicCosine()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicSine.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicSine.html new file mode 100644 index 0000000..d7ae905 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicSine.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.HyperbolicSine + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.HyperbolicSine

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.HyperbolicSine
    +extends Function
    +
    Returns the hyperbolic sine of input 0.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      HyperbolicSine() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HyperbolicSine

        +
        public HyperbolicSine()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicTangent.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicTangent.html new file mode 100644 index 0000000..6db7945 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.HyperbolicTangent.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.HyperbolicTangent + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.HyperbolicTangent

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.HyperbolicTangent
    +extends Function
    +
    Returns the hyperbolic tangent of input 0.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      HyperbolicTangent() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HyperbolicTangent

        +
        public HyperbolicTangent()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Hypotenuse.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Hypotenuse.html new file mode 100644 index 0000000..cdaa3a9 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Hypotenuse.html @@ -0,0 +1,334 @@ + + + + + +SymbolicRegressionFunctions.Hypotenuse + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Hypotenuse

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Hypotenuse
    +extends Function
    +
    Hypotenuse function. Returns the square root of input 0 squared + plus input 1 squared.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Hypotenuse() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Hypotenuse

        +
        public Hypotenuse()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.LogBaseTen.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.LogBaseTen.html new file mode 100644 index 0000000..f48312e --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.LogBaseTen.html @@ -0,0 +1,335 @@ + + + + + +SymbolicRegressionFunctions.LogBaseTen + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.LogBaseTen

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.LogBaseTen
    +extends Function
    +
    Protected log base 10 function. Returns the log to base 10 the absolute + value of input 0. If input 0 is less than DoubleArithmetic.DIVISION_LIMIT, + this returns it unchanged.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      LogBaseTen() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LogBaseTen

        +
        public LogBaseTen()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Multiplication.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Multiplication.html new file mode 100644 index 0000000..4940cff --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Multiplication.html @@ -0,0 +1,329 @@ + + + + + +SymbolicRegressionFunctions.Multiplication + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Multiplication

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Multiplication
    +extends Function
    +
    Multiplication returns the product of inputs 0 and 1.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Multiplication() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Multiplication

        +
        public Multiplication()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.NaturalLog.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.NaturalLog.html new file mode 100644 index 0000000..d9ce85c --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.NaturalLog.html @@ -0,0 +1,335 @@ + + + + + +SymbolicRegressionFunctions.NaturalLog + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.NaturalLog

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.NaturalLog
    +extends Function
    +
    Protected natural log function. Returns the natural log of the absolute + value of input 0. If input 0 is less than DoubleArithmetic.DIVISION_LIMIT, + this returns it unchanged.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NaturalLog() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NaturalLog

        +
        public NaturalLog()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Power.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Power.html new file mode 100644 index 0000000..b51cf10 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Power.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.Power + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Power

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Power
    +extends Function
    +
    Power function. Returns the absolute value of input 0 to the power of input 1.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Power() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Power

        +
        public Power()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Reciprocal.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Reciprocal.html new file mode 100644 index 0000000..3798576 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Reciprocal.html @@ -0,0 +1,330 @@ + + + + + +SymbolicRegressionFunctions.Reciprocal + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Reciprocal

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Reciprocal
    +extends Function
    +
    Protected reciprocal function, returns (1 / input 0). If input 0 is less than + DoubleArithmetic.DIVISION_LIMIT, this returns it unchanged.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Reciprocal() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Reciprocal

        +
        public Reciprocal()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Sine.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Sine.html new file mode 100644 index 0000000..2961d73 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Sine.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.Sine + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Sine

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Sine
    +extends Function
    +
    Sine function, in radians.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Sine() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Sine

        +
        public Sine()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.SineAB.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.SineAB.html new file mode 100644 index 0000000..71d48dd --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.SineAB.html @@ -0,0 +1,333 @@ + + + + + +SymbolicRegressionFunctions.SineAB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.SineAB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.SineAB
    +extends Function
    +
    Sine of sum. Returns the sine of the sum of inputs 0 and 1.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SineAB() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SineAB

        +
        public SineAB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.SquareRoot.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.SquareRoot.html new file mode 100644 index 0000000..c2f1031 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.SquareRoot.html @@ -0,0 +1,334 @@ + + + + + +SymbolicRegressionFunctions.SquareRoot + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.SquareRoot

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.SquareRoot
    +extends Function
    +
    Protected square root function, returns the square root of the absolute + value of input 0.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SquareRoot() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SquareRoot

        +
        public SquareRoot()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Subtraction.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Subtraction.html new file mode 100644 index 0000000..3940b40 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Subtraction.html @@ -0,0 +1,329 @@ + + + + + +SymbolicRegressionFunctions.Subtraction + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Subtraction

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Subtraction
    +extends Function
    +
    Subtraction returns the difference between inputs 0 and 1.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Subtraction() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Subtraction

        +
        public Subtraction()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.Tangent.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Tangent.html new file mode 100644 index 0000000..997f66b --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.Tangent.html @@ -0,0 +1,335 @@ + + + + + +SymbolicRegressionFunctions.Tangent + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions.Tangent

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    SymbolicRegressionFunctions
    +
    +
    +
    +
    public static class SymbolicRegressionFunctions.Tangent
    +extends Function
    +
    Protected tangent function, in radians. Returns the tangent of input 0. + If input 0 is less than DoubleArithmetic.DIVISION_LIMIT, + this returns it unchanged.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Tangent() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Tangent

        +
        public Tangent()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/SymbolicRegressionFunctions.html b/doc/jcgp/backend/function/SymbolicRegressionFunctions.html new file mode 100644 index 0000000..a42a2f8 --- /dev/null +++ b/doc/jcgp/backend/function/SymbolicRegressionFunctions.html @@ -0,0 +1,439 @@ + + + + + +SymbolicRegressionFunctions + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class SymbolicRegressionFunctions

+
+
+ +
+
    +
  • +
    +
    +
    public class SymbolicRegressionFunctions
    +extends FunctionSet
    +
    This class contains all symbolic regression functions + (defined as double functions in the classic CGP implementation) + in static nested classes. +
    + This is the function set used by SymbolicRegressionProblem.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    SymbolicRegressionProblem
    +
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SymbolicRegressionFunctions

        +
        public SymbolicRegressionFunctions()
        +
        Creates a new instance of SymbolicRegressionFunctions.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteCosineAB.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteCosineAB.html new file mode 100644 index 0000000..d8e3bfa --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteCosineAB.html @@ -0,0 +1,334 @@ + + + + + +TravellingSalesmanFunctions.AbsoluteCosineAB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.AbsoluteCosineAB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.AbsoluteCosineAB
    +extends Function
    +
    Cosine of sum. Returns the absolute value of the cosine + of the sum of inputs 0 and 1, in radians.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AbsoluteCosineAB() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbsoluteCosineAB

        +
        public AbsoluteCosineAB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB.html new file mode 100644 index 0000000..0232b99 --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB.html @@ -0,0 +1,334 @@ + + + + + +TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB
    +extends Function
    +
    Hyperbolic tangent of sum. Returns the absolute value of the sine + of the sum of inputs 0 and 1, in radians.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbsoluteHyperbolicTangentAB

        +
        public AbsoluteHyperbolicTangentAB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteSineAB.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteSineAB.html new file mode 100644 index 0000000..8a2e666 --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.AbsoluteSineAB.html @@ -0,0 +1,334 @@ + + + + + +TravellingSalesmanFunctions.AbsoluteSineAB + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.AbsoluteSineAB

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.AbsoluteSineAB
    +extends Function
    +
    Sine of sum. Returns the absolute value of the sine + of the sum of inputs 0 and 1, in radians.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AbsoluteSineAB() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbsoluteSineAB

        +
        public AbsoluteSineAB()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.BoundedDivision.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.BoundedDivision.html new file mode 100644 index 0000000..35a470c --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.BoundedDivision.html @@ -0,0 +1,330 @@ + + + + + +TravellingSalesmanFunctions.BoundedDivision + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.BoundedDivision

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.BoundedDivision
    +extends Function
    +
    Bounded division, returns the quotient of the two inputs where the larger + is the denominator.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      BoundedDivision() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BoundedDivision

        +
        public BoundedDivision()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.Cube.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.Cube.html new file mode 100644 index 0000000..e88fc1b --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.Cube.html @@ -0,0 +1,329 @@ + + + + + +TravellingSalesmanFunctions.Cube + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.Cube

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.Cube
    +extends Function
    +
    Cube function, returns the value of input 0 cubed.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Cube() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Cube

        +
        public Cube()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.Multiplication.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.Multiplication.html new file mode 100644 index 0000000..2f271d3 --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.Multiplication.html @@ -0,0 +1,329 @@ + + + + + +TravellingSalesmanFunctions.Multiplication + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.Multiplication

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.Multiplication
    +extends Function
    +
    Multiplication returns the product of inputs 0 and 1.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Multiplication() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Multiplication

        +
        public Multiplication()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledAddition.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledAddition.html new file mode 100644 index 0000000..ea13fcd --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledAddition.html @@ -0,0 +1,330 @@ + + + + + +TravellingSalesmanFunctions.ScaledAddition + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.ScaledAddition

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.ScaledAddition
    +extends Function
    +
    Scaled addition returns the sum of inputs 0 and 1 scaled + to the range 0 < x > 1.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ScaledAddition() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ScaledAddition

        +
        public ScaledAddition()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledExponential.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledExponential.html new file mode 100644 index 0000000..757dc3e --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledExponential.html @@ -0,0 +1,334 @@ + + + + + +TravellingSalesmanFunctions.ScaledExponential + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.ScaledExponential

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.ScaledExponential
    +extends Function
    +
    Scaled exponential function. Returns the exponential of input 0 + scaled to the range 0 < x > 1.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ScaledExponential() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ScaledExponential

        +
        public ScaledExponential()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledHypotenuse.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledHypotenuse.html new file mode 100644 index 0000000..85001b6 --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.ScaledHypotenuse.html @@ -0,0 +1,334 @@ + + + + + +TravellingSalesmanFunctions.ScaledHypotenuse + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.ScaledHypotenuse

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.ScaledHypotenuse
    +extends Function
    +
    Scaled hypotenuse function. Returns the square root of input 0 squared + plus input 1 squared, scaled to the range 0 < x > 1.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ScaledHypotenuse() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ScaledHypotenuse

        +
        public ScaledHypotenuse()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.Square.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.Square.html new file mode 100644 index 0000000..7d08fcb --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.Square.html @@ -0,0 +1,330 @@ + + + + + +TravellingSalesmanFunctions.Square + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.Square

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.Square
    +extends Function
    +
    Square function, returns the square of the + value of input 0.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Square() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Square

        +
        public Square()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.SquareRoot.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.SquareRoot.html new file mode 100644 index 0000000..cb4feb3 --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.SquareRoot.html @@ -0,0 +1,334 @@ + + + + + +TravellingSalesmanFunctions.SquareRoot + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.SquareRoot

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.SquareRoot
    +extends Function
    +
    Protected square root function, returns the square root of the absolute + value of input 0.
    +
    +
    See Also:
    +
    Math
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SquareRoot() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SquareRoot

        +
        public SquareRoot()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.SquaredMultiplication.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.SquaredMultiplication.html new file mode 100644 index 0000000..4eb9cd0 --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.SquaredMultiplication.html @@ -0,0 +1,329 @@ + + + + + +TravellingSalesmanFunctions.SquaredMultiplication + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.SquaredMultiplication

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.SquaredMultiplication
    +extends Function
    +
    Multiplication returns the product of inputs 0 and 1, squared.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SquaredMultiplication

        +
        public SquaredMultiplication()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.SymmetricSubtraction.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.SymmetricSubtraction.html new file mode 100644 index 0000000..3e194dc --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.SymmetricSubtraction.html @@ -0,0 +1,330 @@ + + + + + +TravellingSalesmanFunctions.SymmetricSubtraction + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions.SymmetricSubtraction

+
+
+ +
+
    +
  • +
    +
    Enclosing class:
    +
    TravellingSalesmanFunctions
    +
    +
    +
    +
    public static class TravellingSalesmanFunctions.SymmetricSubtraction
    +extends Function
    +
    Symmetric subtraction returns the absolute difference between inputs 0 and 1, + scaled to the range 0 <; x > 1.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetArity() 
      java.lang.Doublerun(java.lang.Object... args) +
      Executes the function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SymmetricSubtraction

        +
        public SymmetricSubtraction()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public java.lang.Double run(java.lang.Object... args)
        +
        Description copied from class: Function
        +
        Executes the function.
        +
        +
        Specified by:
        +
        run in class Function
        +
        Parameters:
        +
        args - the function arguments.
        +
        Returns:
        +
        the function result.
        +
        +
      • +
      + + + +
        +
      • +

        getArity

        +
        public int getArity()
        +
        +
        Specified by:
        +
        getArity in class Function
        +
        Returns:
        +
        the arity of the function.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/TravellingSalesmanFunctions.html b/doc/jcgp/backend/function/TravellingSalesmanFunctions.html new file mode 100644 index 0000000..fbc5b00 --- /dev/null +++ b/doc/jcgp/backend/function/TravellingSalesmanFunctions.html @@ -0,0 +1,357 @@ + + + + + +TravellingSalesmanFunctions + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class TravellingSalesmanFunctions

+
+
+ +
+
    +
  • +
    +
    +
    public class TravellingSalesmanFunctions
    +extends FunctionSet
    +
    This class contains all travelling salesman functions in static nested classes. +
    + This is the function set to be used by TravellingSalesmanProblem.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TravellingSalesmanFunctions

        +
        public TravellingSalesmanFunctions()
        +
        Creates a new instance of TravellingSalesmanFunctions.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/UnsignedInteger.html b/doc/jcgp/backend/function/UnsignedInteger.html new file mode 100644 index 0000000..ca02b07 --- /dev/null +++ b/doc/jcgp/backend/function/UnsignedInteger.html @@ -0,0 +1,364 @@ + + + + + +UnsignedInteger + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.function
+

Class UnsignedInteger

+
+
+ +
+
    +
  • +
    +
    +
    public class UnsignedInteger
    +extends java.lang.Object
    +
    Integer wrapper type for unsigned integer values. +

    + Java offers no support for unsigned types save from + unsigned conversion methods. This class uses those methods + to simulate the unsigned int data type, useful for circuit + truth table encodings. +

    + When a string representation of an unsigned integer is parsed + using Integer.parseUnsignedInt(), an Integer is created using + all 32 bits for unsigned magnitude. The integer however is still + signed and will behave as such for all arithmetic operations. + Bitwise operations can still be performed as they work at the bit + level, making this data type particularly suitable for circuit design. +

    + TODO in the unlikely event that unsigned integers are natively + implemented in Java, they should be used instead of this class. +

    + Why are unsigned integers not supported?
    + http://stackoverflow.com/questions/430346/why-doesnt-java-support-unsigned-ints
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Integer
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      UnsignedInteger(int i) +
      Makes a new instance of UnsignedInteger with a specified value.
      +
      UnsignedInteger(java.lang.Integer i) +
      Makes a new instance of UnsignedInteger with a specified value.
      +
      UnsignedInteger(java.lang.String i) +
      Makes a new instance of UnsignedInteger from the string representation + of an unsigned integer.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Integerget() 
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        UnsignedInteger

        +
        public UnsignedInteger(int i)
        +
        Makes a new instance of UnsignedInteger with a specified value.
        +
        +
        Parameters:
        +
        i - the value with which to initialise.
        +
        +
      • +
      + + + +
        +
      • +

        UnsignedInteger

        +
        public UnsignedInteger(java.lang.Integer i)
        +
        Makes a new instance of UnsignedInteger with a specified value.
        +
        +
        Parameters:
        +
        i - the value with which to initialise.
        +
        +
      • +
      + + + +
        +
      • +

        UnsignedInteger

        +
        public UnsignedInteger(java.lang.String i)
        +
        Makes a new instance of UnsignedInteger from the string representation + of an unsigned integer.
        +
        +
        Parameters:
        +
        i - the string with which to initialise.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public java.lang.Integer get()
        +
        +
        Returns:
        +
        the wrapped Integer object.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.And.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.And.html new file mode 100644 index 0000000..107e22d --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.And.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.And + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.And

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.And
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.AndNotA.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.AndNotA.html new file mode 100644 index 0000000..a7b3439 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.AndNotA.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.AndNotA + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.AndNotA

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.AndNotA
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.AndNotB.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.AndNotB.html new file mode 100644 index 0000000..31510c1 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.AndNotB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.AndNotB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.AndNotB

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.AndNotB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.ConstantOne.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.ConstantOne.html new file mode 100644 index 0000000..dec308e --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.ConstantOne.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.ConstantOne + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.ConstantOne

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.ConstantOne
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.ConstantZero.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.ConstantZero.html new file mode 100644 index 0000000..f80f3a7 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.ConstantZero.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.ConstantZero + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.ConstantZero

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.ConstantZero
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux1.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux1.html new file mode 100644 index 0000000..033532c --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux1.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Mux1 + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Mux1

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Mux1
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux2.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux2.html new file mode 100644 index 0000000..a4d0264 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux2.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Mux2 + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Mux2

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Mux2
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux3.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux3.html new file mode 100644 index 0000000..70f0dcd --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux3.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Mux3 + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Mux3

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Mux3
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux4.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux4.html new file mode 100644 index 0000000..77a6383 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Mux4.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Mux4 + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Mux4

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Mux4
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Nand.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Nand.html new file mode 100644 index 0000000..ffe458b --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Nand.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Nand + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Nand

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Nand
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Nor.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Nor.html new file mode 100644 index 0000000..daea02f --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Nor.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Nor + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Nor

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Nor
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.NotA.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.NotA.html new file mode 100644 index 0000000..5f05dfe --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.NotA.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.NotA + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.NotA

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.NotA
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.NotB.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.NotB.html new file mode 100644 index 0000000..0907bc4 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.NotB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.NotB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.NotB

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.NotB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Or.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Or.html new file mode 100644 index 0000000..2d18f2b --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Or.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Or + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Or

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Or
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.OrNotA.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.OrNotA.html new file mode 100644 index 0000000..1d8dfe1 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.OrNotA.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.OrNotA + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.OrNotA

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.OrNotA
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.OrNotB.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.OrNotB.html new file mode 100644 index 0000000..6b0891d --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.OrNotB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.OrNotB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.OrNotB

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.OrNotB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.WireA.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.WireA.html new file mode 100644 index 0000000..a871482 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.WireA.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.WireA + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.WireA

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.WireA
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.WireB.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.WireB.html new file mode 100644 index 0000000..b34aa10 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.WireB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.WireB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.WireB

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.WireB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Xnor.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Xnor.html new file mode 100644 index 0000000..35410eb --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Xnor.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Xnor + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Xnor

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Xnor
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Xor.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Xor.html new file mode 100644 index 0000000..be394f8 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.Xor.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions.Xor + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions.Xor

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions.Xor
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.html b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.html new file mode 100644 index 0000000..214540f --- /dev/null +++ b/doc/jcgp/backend/function/class-use/DigitalCircuitFunctions.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.DigitalCircuitFunctions + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.DigitalCircuitFunctions

+
+
No usage of jcgp.backend.function.DigitalCircuitFunctions
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/Function.html b/doc/jcgp/backend/function/class-use/Function.html new file mode 100644 index 0000000..e20c5cb --- /dev/null +++ b/doc/jcgp/backend/function/class-use/Function.html @@ -0,0 +1,633 @@ + + + + + +Uses of Class jcgp.backend.function.Function + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.Function

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/FunctionSet.html b/doc/jcgp/backend/function/class-use/FunctionSet.html new file mode 100644 index 0000000..e736cd7 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/FunctionSet.html @@ -0,0 +1,302 @@ + + + + + +Uses of Class jcgp.backend.function.FunctionSet + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.FunctionSet

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Absolute.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Absolute.html new file mode 100644 index 0000000..ea69f0f --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Absolute.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Absolute + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Absolute

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Absolute
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Addition.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Addition.html new file mode 100644 index 0000000..f3baa3a --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Addition.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Addition + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Addition

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Addition
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Cosine.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Cosine.html new file mode 100644 index 0000000..136b8d2 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Cosine.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Cosine + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Cosine

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Cosine
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.CosineAB.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.CosineAB.html new file mode 100644 index 0000000..a5975a7 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.CosineAB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.CosineAB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.CosineAB

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.CosineAB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Division.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Division.html new file mode 100644 index 0000000..52a8a52 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Division.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Division + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Division

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Division
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Exponential.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Exponential.html new file mode 100644 index 0000000..8b5bfc1 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Exponential.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Exponential + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Exponential

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Exponential
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicCosine.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicCosine.html new file mode 100644 index 0000000..b7076a0 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicCosine.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicCosine + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicCosine

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicCosine
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicSine.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicSine.html new file mode 100644 index 0000000..b754a81 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicSine.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicSine + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicSine

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicSine
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicTangent.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicTangent.html new file mode 100644 index 0000000..3270007 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.HyperbolicTangent.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicTangent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicTangent

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.HyperbolicTangent
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Hypotenuse.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Hypotenuse.html new file mode 100644 index 0000000..182e596 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Hypotenuse.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Hypotenuse + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Hypotenuse

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Hypotenuse
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.LogBaseTen.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.LogBaseTen.html new file mode 100644 index 0000000..9687b65 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.LogBaseTen.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.LogBaseTen + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.LogBaseTen

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.LogBaseTen
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Multiplication.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Multiplication.html new file mode 100644 index 0000000..931f7b5 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Multiplication.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Multiplication + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Multiplication

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Multiplication
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.NaturalLog.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.NaturalLog.html new file mode 100644 index 0000000..2f4a062 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.NaturalLog.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.NaturalLog + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.NaturalLog

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.NaturalLog
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Power.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Power.html new file mode 100644 index 0000000..24e0325 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Power.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Power + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Power

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Power
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Reciprocal.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Reciprocal.html new file mode 100644 index 0000000..f756d5e --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Reciprocal.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Reciprocal + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Reciprocal

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Reciprocal
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Sine.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Sine.html new file mode 100644 index 0000000..56b42c8 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Sine.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Sine + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Sine

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Sine
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.SineAB.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.SineAB.html new file mode 100644 index 0000000..b814c7d --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.SineAB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.SineAB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.SineAB

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.SineAB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.SquareRoot.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.SquareRoot.html new file mode 100644 index 0000000..7832d14 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.SquareRoot.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.SquareRoot + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.SquareRoot

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.SquareRoot
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Subtraction.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Subtraction.html new file mode 100644 index 0000000..51f4440 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Subtraction.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Subtraction + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Subtraction

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Subtraction
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Tangent.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Tangent.html new file mode 100644 index 0000000..edca5ad --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.Tangent.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions.Tangent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions.Tangent

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions.Tangent
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.html b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.html new file mode 100644 index 0000000..78c1a06 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/SymbolicRegressionFunctions.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.SymbolicRegressionFunctions + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.SymbolicRegressionFunctions

+
+
No usage of jcgp.backend.function.SymbolicRegressionFunctions
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteCosineAB.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteCosineAB.html new file mode 100644 index 0000000..c6cbc89 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteCosineAB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteCosineAB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteCosineAB

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteCosineAB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB.html new file mode 100644 index 0000000..28d9dd3 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteHyperbolicTangentAB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteSineAB.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteSineAB.html new file mode 100644 index 0000000..db4d5a4 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.AbsoluteSineAB.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteSineAB + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteSineAB

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.AbsoluteSineAB
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.BoundedDivision.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.BoundedDivision.html new file mode 100644 index 0000000..658d989 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.BoundedDivision.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.BoundedDivision + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.BoundedDivision

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.BoundedDivision
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Cube.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Cube.html new file mode 100644 index 0000000..8b0dfc0 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Cube.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.Cube + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.Cube

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.Cube
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Multiplication.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Multiplication.html new file mode 100644 index 0000000..345272a --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Multiplication.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.Multiplication + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.Multiplication

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.Multiplication
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledAddition.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledAddition.html new file mode 100644 index 0000000..a74370a --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledAddition.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.ScaledAddition + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.ScaledAddition

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.ScaledAddition
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledExponential.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledExponential.html new file mode 100644 index 0000000..4e57613 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledExponential.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.ScaledExponential + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.ScaledExponential

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.ScaledExponential
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledHypotenuse.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledHypotenuse.html new file mode 100644 index 0000000..c80ed8d --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.ScaledHypotenuse.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.ScaledHypotenuse + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.ScaledHypotenuse

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.ScaledHypotenuse
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Square.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Square.html new file mode 100644 index 0000000..ad84b0b --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.Square.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.Square + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.Square

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.Square
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SquareRoot.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SquareRoot.html new file mode 100644 index 0000000..2937ad2 --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SquareRoot.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.SquareRoot + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.SquareRoot

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.SquareRoot
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SquaredMultiplication.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SquaredMultiplication.html new file mode 100644 index 0000000..143e69e --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SquaredMultiplication.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.SquaredMultiplication + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.SquaredMultiplication

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.SquaredMultiplication
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SymmetricSubtraction.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SymmetricSubtraction.html new file mode 100644 index 0000000..6405a7f --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.SymmetricSubtraction.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions.SymmetricSubtraction + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions.SymmetricSubtraction

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions.SymmetricSubtraction
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.html b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.html new file mode 100644 index 0000000..8e0477e --- /dev/null +++ b/doc/jcgp/backend/function/class-use/TravellingSalesmanFunctions.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.function.TravellingSalesmanFunctions + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.TravellingSalesmanFunctions

+
+
No usage of jcgp.backend.function.TravellingSalesmanFunctions
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/class-use/UnsignedInteger.html b/doc/jcgp/backend/function/class-use/UnsignedInteger.html new file mode 100644 index 0000000..6dde36f --- /dev/null +++ b/doc/jcgp/backend/function/class-use/UnsignedInteger.html @@ -0,0 +1,263 @@ + + + + + +Uses of Class jcgp.backend.function.UnsignedInteger + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.function.UnsignedInteger

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/package-frame.html b/doc/jcgp/backend/function/package-frame.html new file mode 100644 index 0000000..76cc057 --- /dev/null +++ b/doc/jcgp/backend/function/package-frame.html @@ -0,0 +1,78 @@ + + + + + +jcgp.backend.function + + + + + +

jcgp.backend.function

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/backend/function/package-summary.html b/doc/jcgp/backend/function/package-summary.html new file mode 100644 index 0000000..9742940 --- /dev/null +++ b/doc/jcgp/backend/function/package-summary.html @@ -0,0 +1,502 @@ + + + + + +jcgp.backend.function + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.function

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/package-tree.html b/doc/jcgp/backend/function/package-tree.html new file mode 100644 index 0000000..52fc595 --- /dev/null +++ b/doc/jcgp/backend/function/package-tree.html @@ -0,0 +1,201 @@ + + + + + +jcgp.backend.function Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.function

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/function/package-use.html b/doc/jcgp/backend/function/package-use.html new file mode 100644 index 0000000..6622f40 --- /dev/null +++ b/doc/jcgp/backend/function/package-use.html @@ -0,0 +1,289 @@ + + + + + +Uses of Package jcgp.backend.function + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.function

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/Module.html b/doc/jcgp/backend/modules/Module.html new file mode 100644 index 0000000..b194964 --- /dev/null +++ b/doc/jcgp/backend/modules/Module.html @@ -0,0 +1,288 @@ + + + + + +Module + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules
+

Class Module

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    EvolutionaryStrategy, Mutator, Problem
    +
    +
    +
    +
    public abstract class Module
    +extends java.lang.Object
    +
    This class defines the expected behaviour of a module. Generally, modules + are entities which contain parameters; these can be retrieved using + getLocalParameters(). GUIs should make use of this getter + to display visual parameter controls to users. Subclasses don't have direct + access to the list; instead they must use registerParameter() (ideally + in the constructor) to make sure the parameters are returned. +
    + In addition, implementations of Module should specify a module name + in their constructor using setName(). If a name is not provided, + the simple name of the class will be used. +
    + All modules, by definition, contain a reference to the experiment's resources, which + must be passed at construction. The resources should be accessed with getResources().
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Parameter
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.util.ArrayList<Parameter<?>>getLocalParameters() +
      This method is used by the GUI in order to build visual + representations of all parameters used by the module.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLocalParameters

        +
        public final java.util.ArrayList<Parameter<?>> getLocalParameters()
        +
        This method is used by the GUI in order to build visual + representations of all parameters used by the module. + Therefore, any parameters returned here will be displayed + visually.
        +
        +
        Returns:
        +
        a list of generic parameters exposed by the module.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/class-use/Module.html b/doc/jcgp/backend/modules/class-use/Module.html new file mode 100644 index 0000000..6ab68d0 --- /dev/null +++ b/doc/jcgp/backend/modules/class-use/Module.html @@ -0,0 +1,292 @@ + + + + + +Uses of Class jcgp.backend.modules.Module + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.Module

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/EvolutionaryStrategy.html b/doc/jcgp/backend/modules/es/EvolutionaryStrategy.html new file mode 100644 index 0000000..d18e01f --- /dev/null +++ b/doc/jcgp/backend/modules/es/EvolutionaryStrategy.html @@ -0,0 +1,290 @@ + + + + + +EvolutionaryStrategy + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.es
+

Class EvolutionaryStrategy

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    MuPlusLambda, TournamentSelection
    +
    +
    +
    +
    public abstract class EvolutionaryStrategy
    +extends Module
    +
    This class specifies the characteristics of an evolutionary strategy. The evolutionary + strategy's job is to generate the next population of solutions. In JCGP this is done by modifying + the provided population object rather than creating a new one. +

    + A typical implementation of EvolutionaryStratey iterates through the chromosomes + in the population and selects the individual(s) to be promoted. It then uses + mutator.mutate() to generically mutate the promoted individual(s). Parameter-dependent + strategies can be implemented by accessing the parameters via the resources + argument. +

    + Parameters may be specified to control the implemented strategy. Any parameters + registered with registerParameters() should be displayed by the user interface, + if it is being used. See Module for more information. +

    + It is advisable to use Resources.reportln() and Resources.report() + to print any relevant information. Note that reportln() and report() are affected + by the report interval base parameter. Use Resources.println() and + Resources.print() to print information regardless of the current generation. + See Resources for more information.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Module
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      abstract voidevolve(Population population, + Mutator mutator) +
      Performs the selection algorithm and uses the mutator to create + the next generation of solutions.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evolve

        +
        public abstract void evolve(Population population,
        +                            Mutator mutator)
        +
        Performs the selection algorithm and uses the mutator to create + the next generation of solutions.
        +
        +
        Parameters:
        +
        population - the population to evolve.
        +
        mutator - the mutator with which to mutate the promoted individuals.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/MuPlusLambda.html b/doc/jcgp/backend/modules/es/MuPlusLambda.html new file mode 100644 index 0000000..3ca75c9 --- /dev/null +++ b/doc/jcgp/backend/modules/es/MuPlusLambda.html @@ -0,0 +1,330 @@ + + + + + +MuPlusLambda + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.es
+

Class MuPlusLambda

+
+
+ +
+
    +
  • +
    +
    +
    public class MuPlusLambda
    +extends EvolutionaryStrategy
    +
    (μ + λ)-ES +

    + This strategy selects the μ fittest chromosomes from the population. + The promoted individuals are copied into the new population and mutated + λ times, but also carried forward unchanged. The total population size + is μ + λ. +

    + Two integer parameters are used to control this strategy: parents + and offspring. They are constrained in that they must always add up to + the population size, and must never be smaller than 1. +
    + One additional parameter, report, controls whether a detailed log of the + algorithm's operation is to be printed or not. Reports respect the report + interval base parameter.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    EvolutionaryStrategy
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      MuPlusLambda(Resources resources) +
      Creates a new instance of MuPlusLambda.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidevolve(Population population, + Mutator mutator) +
      Performs the selection algorithm and uses the mutator to create + the next generation of solutions.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MuPlusLambda

        +
        public MuPlusLambda(Resources resources)
        +
        Creates a new instance of MuPlusLambda.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evolve

        +
        public void evolve(Population population,
        +                   Mutator mutator)
        +
        Description copied from class: EvolutionaryStrategy
        +
        Performs the selection algorithm and uses the mutator to create + the next generation of solutions.
        +
        +
        Specified by:
        +
        evolve in class EvolutionaryStrategy
        +
        Parameters:
        +
        population - the population to evolve.
        +
        mutator - the mutator with which to mutate the promoted individuals.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/TournamentSelection.html b/doc/jcgp/backend/modules/es/TournamentSelection.html new file mode 100644 index 0000000..59e63cd --- /dev/null +++ b/doc/jcgp/backend/modules/es/TournamentSelection.html @@ -0,0 +1,333 @@ + + + + + +TournamentSelection + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.es
+

Class TournamentSelection

+
+
+ +
+
    +
  • +
    +
    +
    public class TournamentSelection
    +extends EvolutionaryStrategy
    +
    Tournament selection +

    + This strategy generates a new population by selecting a specified number + of chromosomes from the original population and selecting the fittest out + of the isolated subset (the tournament). The selected individual is mutated + using the specified mutator. This process is repeated until the new population + is complete. +

    + One integer parameter is used to control this strategy: tournament + size. This must always be greater than 0 and smaller than or equal to the + population size. Setting it to equal population size results in the same + chromosome being selected for every tournament, and setting it to 1 leads + to an effectively random search. +
    + One additional parameter, report, controls whether a detailed log of the + algorithm's operation is to be printed or not. Reports respect the report + interval base parameter.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    EvolutionaryStrategy
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TournamentSelection(Resources resources) +
      Creates a new instance of TournamentSelection.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidevolve(Population population, + Mutator mutator) +
      Performs the selection algorithm and uses the mutator to create + the next generation of solutions.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TournamentSelection

        +
        public TournamentSelection(Resources resources)
        +
        Creates a new instance of TournamentSelection.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evolve

        +
        public void evolve(Population population,
        +                   Mutator mutator)
        +
        Description copied from class: EvolutionaryStrategy
        +
        Performs the selection algorithm and uses the mutator to create + the next generation of solutions.
        +
        +
        Specified by:
        +
        evolve in class EvolutionaryStrategy
        +
        Parameters:
        +
        population - the population to evolve.
        +
        mutator - the mutator with which to mutate the promoted individuals.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/class-use/EvolutionaryStrategy.html b/doc/jcgp/backend/modules/es/class-use/EvolutionaryStrategy.html new file mode 100644 index 0000000..ed70f1e --- /dev/null +++ b/doc/jcgp/backend/modules/es/class-use/EvolutionaryStrategy.html @@ -0,0 +1,213 @@ + + + + + +Uses of Class jcgp.backend.modules.es.EvolutionaryStrategy + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.es.EvolutionaryStrategy

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/class-use/MuPlusLambda.html b/doc/jcgp/backend/modules/es/class-use/MuPlusLambda.html new file mode 100644 index 0000000..7b38f2a --- /dev/null +++ b/doc/jcgp/backend/modules/es/class-use/MuPlusLambda.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.modules.es.MuPlusLambda + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.es.MuPlusLambda

+
+
No usage of jcgp.backend.modules.es.MuPlusLambda
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/class-use/TournamentSelection.html b/doc/jcgp/backend/modules/es/class-use/TournamentSelection.html new file mode 100644 index 0000000..3de5cbb --- /dev/null +++ b/doc/jcgp/backend/modules/es/class-use/TournamentSelection.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.modules.es.TournamentSelection + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.es.TournamentSelection

+
+
No usage of jcgp.backend.modules.es.TournamentSelection
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/package-frame.html b/doc/jcgp/backend/modules/es/package-frame.html new file mode 100644 index 0000000..2341ef5 --- /dev/null +++ b/doc/jcgp/backend/modules/es/package-frame.html @@ -0,0 +1,22 @@ + + + + + +jcgp.backend.modules.es + + + + + +

jcgp.backend.modules.es

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/backend/modules/es/package-summary.html b/doc/jcgp/backend/modules/es/package-summary.html new file mode 100644 index 0000000..bb760c8 --- /dev/null +++ b/doc/jcgp/backend/modules/es/package-summary.html @@ -0,0 +1,162 @@ + + + + + +jcgp.backend.modules.es + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.modules.es

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/package-tree.html b/doc/jcgp/backend/modules/es/package-tree.html new file mode 100644 index 0000000..5ebca47 --- /dev/null +++ b/doc/jcgp/backend/modules/es/package-tree.html @@ -0,0 +1,146 @@ + + + + + +jcgp.backend.modules.es Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.modules.es

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/es/package-use.html b/doc/jcgp/backend/modules/es/package-use.html new file mode 100644 index 0000000..a9a2c2d --- /dev/null +++ b/doc/jcgp/backend/modules/es/package-use.html @@ -0,0 +1,180 @@ + + + + + +Uses of Package jcgp.backend.modules.es + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.modules.es

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/FixedPointMutator.html b/doc/jcgp/backend/modules/mutator/FixedPointMutator.html new file mode 100644 index 0000000..3614df1 --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/FixedPointMutator.html @@ -0,0 +1,284 @@ + + + + + +FixedPointMutator + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.mutator
+

Class FixedPointMutator

+
+
+ +
+
    +
  • +
    +
    +
    public class FixedPointMutator
    +extends PointMutator
    +
    Fixed point mutator +

    + This operator uses the point mutator + algorithm to mutate a user-defined fixed + number of genes.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    PointMutator
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      FixedPointMutator(Resources resources) +
      Creates a new instance of FixedPointMutator.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FixedPointMutator

        +
        public FixedPointMutator(Resources resources)
        +
        Creates a new instance of FixedPointMutator.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/Mutator.html b/doc/jcgp/backend/modules/mutator/Mutator.html new file mode 100644 index 0000000..13aafdb --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/Mutator.html @@ -0,0 +1,281 @@ + + + + + +Mutator + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.mutator
+

Class Mutator

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    PointMutator, ProbabilisticMutator
    +
    +
    +
    +
    public abstract class Mutator
    +extends Module
    +
    This class specifies the basic characteristics of a mutation operator. Its job is + to modify the connections and functions of the chromosome according to the operator's + parameters. +

    + Parameters may be specified to control the implemented mutation. Any parameters + registered with registerParameters() should be displayed by the user interface, + if it is being used. See Module for more information. +

    + It is advisable to use Resources.reportln() and Resources.report() + to print any relevant information. Note that reportln() and report() are affected + by the report interval base parameter. Use Resources.println() and + Resources.print() to print information regardless of the current generation. + See Resources for more information.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Module
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      abstract voidmutate(Chromosome chromosome) +
      Applies mutations to the specified chromosome according + to the parameter values.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        mutate

        +
        public abstract void mutate(Chromosome chromosome)
        +
        Applies mutations to the specified chromosome according + to the parameter values.
        +
        +
        Parameters:
        +
        chromosome - the chromosome to mutate.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/PercentPointMutator.html b/doc/jcgp/backend/modules/mutator/PercentPointMutator.html new file mode 100644 index 0000000..968640e --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/PercentPointMutator.html @@ -0,0 +1,285 @@ + + + + + +PercentPointMutator + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.mutator
+

Class PercentPointMutator

+
+
+ +
+
    +
  • +
    +
    +
    public class PercentPointMutator
    +extends PointMutator
    +
    Percent point mutator +

    + This operator calculates how many genes to mutate based on the mutation rate + parameter. The total number of genes is computed from the number of nodes, + the arity and the number of outputs. It then uses the point mutation + algorithm to perform the required number of mutations.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    PointMutator
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PercentPointMutator(Resources resources) +
      Creates a new instance of PercentPointMutator.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PercentPointMutator

        +
        public PercentPointMutator(Resources resources)
        +
        Creates a new instance of PercentPointMutator.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/PointMutator.html b/doc/jcgp/backend/modules/mutator/PointMutator.html new file mode 100644 index 0000000..691eece --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/PointMutator.html @@ -0,0 +1,281 @@ + + + + + +PointMutator + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.mutator
+

Class PointMutator

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    FixedPointMutator, PercentPointMutator
    +
    +
    +
    +
    public abstract class PointMutator
    +extends Mutator
    +
    Point mutator +

    + In point mutation, a number of random genes + is picked and mutated until all required + mutations have been performed. The actual number + of genes to be mutated can be defined in any + arbitrary way.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidmutate(Chromosome chromosome) +
      Applies mutations to the specified chromosome according + to the parameter values.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        mutate

        +
        public void mutate(Chromosome chromosome)
        +
        Description copied from class: Mutator
        +
        Applies mutations to the specified chromosome according + to the parameter values.
        +
        +
        Specified by:
        +
        mutate in class Mutator
        +
        Parameters:
        +
        chromosome - the chromosome to mutate.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/ProbabilisticMutator.html b/doc/jcgp/backend/modules/mutator/ProbabilisticMutator.html new file mode 100644 index 0000000..c4e22ae --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/ProbabilisticMutator.html @@ -0,0 +1,319 @@ + + + + + +ProbabilisticMutator + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.mutator
+

Class ProbabilisticMutator

+
+
+ +
+
    +
  • +
    +
    +
    public class ProbabilisticMutator
    +extends Mutator
    +
    Probabilistic mutator +

    + This operator iterates through every mutable gene in the chromosome and + decides whether to mutate each of them individually. + The decision is made based on the difference between the mutation probability + and a randomly generated double between 0 and 100.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Mutator
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ProbabilisticMutator(Resources resources) +
      Creates a new instance of ProbabilisticMutator.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidmutate(Chromosome chromosome) +
      Applies mutations to the specified chromosome according + to the parameter values.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ProbabilisticMutator

        +
        public ProbabilisticMutator(Resources resources)
        +
        Creates a new instance of ProbabilisticMutator.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        mutate

        +
        public void mutate(Chromosome chromosome)
        +
        Description copied from class: Mutator
        +
        Applies mutations to the specified chromosome according + to the parameter values.
        +
        +
        Specified by:
        +
        mutate in class Mutator
        +
        Parameters:
        +
        chromosome - the chromosome to mutate.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/class-use/FixedPointMutator.html b/doc/jcgp/backend/modules/mutator/class-use/FixedPointMutator.html new file mode 100644 index 0000000..695222a --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/class-use/FixedPointMutator.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.modules.mutator.FixedPointMutator + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.mutator.FixedPointMutator

+
+
No usage of jcgp.backend.modules.mutator.FixedPointMutator
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/class-use/Mutator.html b/doc/jcgp/backend/modules/mutator/class-use/Mutator.html new file mode 100644 index 0000000..3107012 --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/class-use/Mutator.html @@ -0,0 +1,269 @@ + + + + + +Uses of Class jcgp.backend.modules.mutator.Mutator + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.mutator.Mutator

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/class-use/PercentPointMutator.html b/doc/jcgp/backend/modules/mutator/class-use/PercentPointMutator.html new file mode 100644 index 0000000..f605d5a --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/class-use/PercentPointMutator.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.modules.mutator.PercentPointMutator + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.mutator.PercentPointMutator

+
+
No usage of jcgp.backend.modules.mutator.PercentPointMutator
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/class-use/PointMutator.html b/doc/jcgp/backend/modules/mutator/class-use/PointMutator.html new file mode 100644 index 0000000..feeb525 --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/class-use/PointMutator.html @@ -0,0 +1,179 @@ + + + + + +Uses of Class jcgp.backend.modules.mutator.PointMutator + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.mutator.PointMutator

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/class-use/ProbabilisticMutator.html b/doc/jcgp/backend/modules/mutator/class-use/ProbabilisticMutator.html new file mode 100644 index 0000000..0186442 --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/class-use/ProbabilisticMutator.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.modules.mutator.ProbabilisticMutator + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.mutator.ProbabilisticMutator

+
+
No usage of jcgp.backend.modules.mutator.ProbabilisticMutator
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/package-frame.html b/doc/jcgp/backend/modules/mutator/package-frame.html new file mode 100644 index 0000000..da1968b --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/package-frame.html @@ -0,0 +1,24 @@ + + + + + +jcgp.backend.modules.mutator + + + + + +

jcgp.backend.modules.mutator

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/backend/modules/mutator/package-summary.html b/doc/jcgp/backend/modules/mutator/package-summary.html new file mode 100644 index 0000000..a5bfb94 --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/package-summary.html @@ -0,0 +1,182 @@ + + + + + +jcgp.backend.modules.mutator + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.modules.mutator

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/package-tree.html b/doc/jcgp/backend/modules/mutator/package-tree.html new file mode 100644 index 0000000..a83ce31 --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/package-tree.html @@ -0,0 +1,151 @@ + + + + + +jcgp.backend.modules.mutator Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.modules.mutator

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/mutator/package-use.html b/doc/jcgp/backend/modules/mutator/package-use.html new file mode 100644 index 0000000..d0f85c6 --- /dev/null +++ b/doc/jcgp/backend/modules/mutator/package-use.html @@ -0,0 +1,210 @@ + + + + + +Uses of Package jcgp.backend.modules.mutator + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.modules.mutator

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/package-frame.html b/doc/jcgp/backend/modules/package-frame.html new file mode 100644 index 0000000..876d8f2 --- /dev/null +++ b/doc/jcgp/backend/modules/package-frame.html @@ -0,0 +1,20 @@ + + + + + +jcgp.backend.modules + + + + + +

jcgp.backend.modules

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/backend/modules/package-summary.html b/doc/jcgp/backend/modules/package-summary.html new file mode 100644 index 0000000..cd347f1 --- /dev/null +++ b/doc/jcgp/backend/modules/package-summary.html @@ -0,0 +1,144 @@ + + + + + +jcgp.backend.modules + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.modules

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/package-tree.html b/doc/jcgp/backend/modules/package-tree.html new file mode 100644 index 0000000..3be8d8f --- /dev/null +++ b/doc/jcgp/backend/modules/package-tree.html @@ -0,0 +1,137 @@ + + + + + +jcgp.backend.modules Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.modules

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/package-use.html b/doc/jcgp/backend/modules/package-use.html new file mode 100644 index 0000000..8c933e0 --- /dev/null +++ b/doc/jcgp/backend/modules/package-use.html @@ -0,0 +1,201 @@ + + + + + +Uses of Package jcgp.backend.modules + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.modules

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/BestFitness.html b/doc/jcgp/backend/modules/problem/BestFitness.html new file mode 100644 index 0000000..9578099 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/BestFitness.html @@ -0,0 +1,341 @@ + + + + + +BestFitness + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.problem
+

Enum BestFitness

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<BestFitness>
    +
    +
    +
    +
    public enum BestFitness
    +extends java.lang.Enum<BestFitness>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      HIGH 
      LOW 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static BestFitnessvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static BestFitness[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static BestFitness[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (BestFitness c : BestFitness.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static BestFitness valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html b/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html new file mode 100644 index 0000000..d9d3011 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html @@ -0,0 +1,455 @@ + + + + + +DigitalCircuitProblem + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.problem
+

Class DigitalCircuitProblem

+
+
+ +
+
    +
  • +
    +
    +
    public class DigitalCircuitProblem
    +extends TestCaseProblem<UnsignedInteger>
    +
    Digital circuit problem +

    + Using this problem type, digital logic circuits can be evolved. + parseData() must be used to load the desired circuit + truth table in the standard CGP .plu format.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    DigitalCircuitFunctions
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DigitalCircuitProblem

        +
        public DigitalCircuitProblem(Resources resources)
        +
        Construct a new instance of DigitalCircuitProblem.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evaluate

        +
        public void evaluate(Population population,
        +                     Resources resources)
        +
        Description copied from class: Problem
        +
        The most important method of the problem type. This is called once + per generation, when the new population has been generated. +

        + The basic functionality of this method is to loop through all chromosomes + in the population and decode them according to the problem type. The + fitness of each chromosome is then calculated using the problem data + or otherwise (subjective problem types such as art generation might + leave fitness evaluations up to the user) and assigned to the appropriate + chromosome. +

        + In addition, realisations of this method should update the value of + bestFitness as appropriate, since the value of this parameter is displayed + if a GUI is in use.
        +
        +
        Specified by:
        +
        evaluate in class Problem
        +
        Parameters:
        +
        population - the population to be evaluated.
        +
        resources - parameters and utilities for optional reference.
        +
        +
      • +
      + + + +
        +
      • +

        parseTestCase

        +
        public TestCaseProblem.TestCase<UnsignedInteger> parseTestCase(java.lang.String[] inputs,
        +                                                               java.lang.String[] outputs)
        +
        Description copied from class: TestCaseProblem
        +
        This method is used internally by addTestCase() in order + to appropriately parse strings into the right data type for the + test cases. Since the data type is problem-dependent, subclasses must + implement this method. This method must return a built TestCase + object from the arguments given.
        +
        +
        Parameters:
        +
        inputs - the inputs represented as strings.
        +
        outputs - the outputs represented as strings.
        +
        Returns:
        +
        the parsed test case.
        +
        +
      • +
      + + + +
        +
      • +

        perfectSolutionFound

        +
        public int perfectSolutionFound(Population population)
        +
        Description copied from class: Problem
        +
        Used to assert whether a given population contains a perfect solution + to the problem. It is up to the problem to define what qualifies + a perfect solution, as some problems (subject ones such as music and + art evolution, for example) might not have perfect solutions at all.
        +
        +
        Specified by:
        +
        perfectSolutionFound in class Problem
        +
        Parameters:
        +
        population - the population to search through for a perfect chromosome.
        +
        Returns:
        +
        the perfect solution index, if one exits, -1 if no perfect solution was found.
        +
        +
      • +
      + + + +
        +
      • +

        hasImprovement

        +
        public int hasImprovement(Population population)
        +
        Description copied from class: Problem
        +
        Used to assert whether a given population has a chromosome that is an improvement over + the current best chromosome. A typical implementation of this method + will simply compare chromosome fitness values, though the problem type + is free to implement this in any way.
        +
        +
        Specified by:
        +
        hasImprovement in class Problem
        +
        Parameters:
        +
        population - the population potentially containing a fitter chromosome.
        +
        Returns:
        +
        the index of the first chromosome in the population that is an improvement, -1 if none is found.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/Problem.html b/doc/jcgp/backend/modules/problem/Problem.html new file mode 100644 index 0000000..0d08b2a --- /dev/null +++ b/doc/jcgp/backend/modules/problem/Problem.html @@ -0,0 +1,508 @@ + + + + + +Problem + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.problem
+

Class Problem

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    TestCaseProblem
    +
    +
    +
    +
    public abstract class Problem
    +extends Module
    +
    Defines the general behaviour of a CGP problem. The primary function of Problem + is to evaluate a population and assign a fitness value to each chromosome. +
    + Problems are free to define whether better fitness means a higher or lower fitness value. + In some problem types, it is more convenient to treat fitness 0 as the best possible value. + This can be done by changing the fitness orientation to BestFitness.HIGH or BestFitness.LOW as appropriate. + Fitness orientation is set to high by default. +

    + When extending this class, the constructor should call a few methods in order to + properly construct the problem type: setFunctionSet(), setFileExtension() and setFitnessOrientation(), + with the respective arguments. As with all subclasses of Module, setName() and + registerParameters() should be used where appropriate as well. +

    + It is advisable to use Resources.reportln() and Resources.report() + to print any relevant information. Note that reportln() and report() are affected + by the report interval base parameter. Use Resources.println() and + Resources.print() to print information regardless of the current generation. + See Resources for more information.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Module
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Problem

        +
        public Problem(Resources resources)
        +
        Initialises the two problem-wide parameters, maxFitness and bestFitness.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evaluate

        +
        public abstract void evaluate(Population population,
        +                              Resources resources)
        +
        The most important method of the problem type. This is called once + per generation, when the new population has been generated. +

        + The basic functionality of this method is to loop through all chromosomes + in the population and decode them according to the problem type. The + fitness of each chromosome is then calculated using the problem data + or otherwise (subjective problem types such as art generation might + leave fitness evaluations up to the user) and assigned to the appropriate + chromosome. +

        + In addition, realisations of this method should update the value of + bestFitness as appropriate, since the value of this parameter is displayed + if a GUI is in use.
        +
        +
        Parameters:
        +
        population - the population to be evaluated.
        +
        resources - parameters and utilities for optional reference.
        +
        +
      • +
      + + + +
        +
      • +

        perfectSolutionFound

        +
        public abstract int perfectSolutionFound(Population population)
        +
        Used to assert whether a given population contains a perfect solution + to the problem. It is up to the problem to define what qualifies + a perfect solution, as some problems (subject ones such as music and + art evolution, for example) might not have perfect solutions at all.
        +
        +
        Parameters:
        +
        population - the population to search through for a perfect chromosome.
        +
        Returns:
        +
        the perfect solution index, if one exits, -1 if no perfect solution was found.
        +
        +
      • +
      + + + +
        +
      • +

        hasImprovement

        +
        public abstract int hasImprovement(Population population)
        +
        Used to assert whether a given population has a chromosome that is an improvement over + the current best chromosome. A typical implementation of this method + will simply compare chromosome fitness values, though the problem type + is free to implement this in any way.
        +
        +
        Parameters:
        +
        population - the population potentially containing a fitter chromosome.
        +
        Returns:
        +
        the index of the first chromosome in the population that is an improvement, -1 if none is found.
        +
        +
      • +
      + + + +
        +
      • +

        parseProblemData

        +
        public abstract void parseProblemData(java.io.File file,
        +                                      ModifiableResources resources)
        +
        Parses the specified file and uses the parsed data to + set up the problem type instance appropriately. Any necessary + resource changes can be performed using the provided ModifiableResources + instance. +

        + In addition, realisations of this method should update the value of + maxFitness where appropriate, as this may be displayed to the user + if a GUI is in use.
        +
        +
        Parameters:
        +
        file - the data file to parse.
        +
        resources - a modifiable reference to the experiment's resources.
        +
        +
      • +
      + + + +
        +
      • +

        getFunctionSet

        +
        public FunctionSet getFunctionSet()
        +
        +
        Returns:
        +
        the FunctionSet object used by this problem type.
        +
        +
      • +
      + + + +
        +
      • +

        getFileExtension

        +
        public java.lang.String getFileExtension()
        +
        +
        Returns:
        +
        the file extension accepted by this problem type for problem data files.
        +
        +
      • +
      + + + +
        +
      • +

        getFitnessOrientation

        +
        public BestFitness getFitnessOrientation()
        +
        +
        Returns:
        +
        the fitness orientation of this particular problem.
        +
        +
      • +
      + + + +
        +
      • +

        getBestFitness

        +
        public double getBestFitness()
        +
        +
        Returns:
        +
        the current best fitness, in other words, the fitness + value of the fittest chromosome in the current generation.
        +
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
        Resets the bestFitness parameter.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/SymbolicRegressionProblem.html b/doc/jcgp/backend/modules/problem/SymbolicRegressionProblem.html new file mode 100644 index 0000000..1ab3746 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/SymbolicRegressionProblem.html @@ -0,0 +1,468 @@ + + + + + +SymbolicRegressionProblem + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.problem
+

Class SymbolicRegressionProblem

+
+
+ +
+
    +
  • +
    +
    +
    public class SymbolicRegressionProblem
    +extends TestCaseProblem<java.lang.Double>
    +
    Symbolic regression functions +

    + Using this problem type, regression problems can be solved. + parseData() must be used to load the desired function + data in the standard CGP .dat format. +

    + This problem uses quite a few parameters: +
      +
    • Error threshold: the maximum difference allowed between an + evolved output and the equivalent output from the problem data. + Outputs within the error threshold will be considered correct. + This is only used if hits is enabled.
    • +
    • Perfection threshold: if the fitness is calculated without + using the hits method, it is a decimal value. A solution is + considered perfect when the difference between its fitness and + the maximum possible fitness is within the perfection threshold.
    • +
    • Hits-based fitness: increment the fitness by 1 whenever the + chromosome output is within the error threshold.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    SymbolicRegressionFunctions
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SymbolicRegressionProblem

        +
        public SymbolicRegressionProblem(Resources resources)
        +
        Creates a new instance of SymbolicRegressionProblem.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evaluate

        +
        public void evaluate(Population population,
        +                     Resources resources)
        +
        Description copied from class: Problem
        +
        The most important method of the problem type. This is called once + per generation, when the new population has been generated. +

        + The basic functionality of this method is to loop through all chromosomes + in the population and decode them according to the problem type. The + fitness of each chromosome is then calculated using the problem data + or otherwise (subjective problem types such as art generation might + leave fitness evaluations up to the user) and assigned to the appropriate + chromosome. +

        + In addition, realisations of this method should update the value of + bestFitness as appropriate, since the value of this parameter is displayed + if a GUI is in use.
        +
        +
        Specified by:
        +
        evaluate in class Problem
        +
        Parameters:
        +
        population - the population to be evaluated.
        +
        resources - parameters and utilities for optional reference.
        +
        +
      • +
      + + + +
        +
      • +

        parseTestCase

        +
        public TestCaseProblem.TestCase<java.lang.Double> parseTestCase(java.lang.String[] inputs,
        +                                                                java.lang.String[] outputs)
        +
        Description copied from class: TestCaseProblem
        +
        This method is used internally by addTestCase() in order + to appropriately parse strings into the right data type for the + test cases. Since the data type is problem-dependent, subclasses must + implement this method. This method must return a built TestCase + object from the arguments given.
        +
        +
        Parameters:
        +
        inputs - the inputs represented as strings.
        +
        outputs - the outputs represented as strings.
        +
        Returns:
        +
        the parsed test case.
        +
        +
      • +
      + + + +
        +
      • +

        perfectSolutionFound

        +
        public int perfectSolutionFound(Population population)
        +
        Description copied from class: Problem
        +
        Used to assert whether a given population contains a perfect solution + to the problem. It is up to the problem to define what qualifies + a perfect solution, as some problems (subject ones such as music and + art evolution, for example) might not have perfect solutions at all.
        +
        +
        Specified by:
        +
        perfectSolutionFound in class Problem
        +
        Parameters:
        +
        population - the population to search through for a perfect chromosome.
        +
        Returns:
        +
        the perfect solution index, if one exits, -1 if no perfect solution was found.
        +
        +
      • +
      + + + +
        +
      • +

        hasImprovement

        +
        public int hasImprovement(Population population)
        +
        Description copied from class: Problem
        +
        Used to assert whether a given population has a chromosome that is an improvement over + the current best chromosome. A typical implementation of this method + will simply compare chromosome fitness values, though the problem type + is free to implement this in any way.
        +
        +
        Specified by:
        +
        hasImprovement in class Problem
        +
        Parameters:
        +
        population - the population potentially containing a fitter chromosome.
        +
        Returns:
        +
        the index of the first chromosome in the population that is an improvement, -1 if none is found.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/TestCaseProblem.TestCase.html b/doc/jcgp/backend/modules/problem/TestCaseProblem.TestCase.html new file mode 100644 index 0000000..5373cf2 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/TestCaseProblem.TestCase.html @@ -0,0 +1,358 @@ + + + + + +TestCaseProblem.TestCase + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.problem
+

Class TestCaseProblem.TestCase<U>

+
+
+ +
+
    +
  • +
    +
    Type Parameters:
    +
    U - the data type of the test case.
    +
    +
    +
    Enclosing class:
    +
    TestCaseProblem<T>
    +
    +
    +
    +
    public static class TestCaseProblem.TestCase<U>
    +extends java.lang.Object
    +
    Basic data type for encapsulating test cases, it simply + contains arrays of inputs and outputs and associated getters.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TestCase(U[] inputs, + U[] outputs) +
      Creates a new test case, inputs and outputs + must be specified upon instantiation.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        TestCase

        +
        public TestCase(U[] inputs,
        +                U[] outputs)
        +
        Creates a new test case, inputs and outputs + must be specified upon instantiation.
        +
        +
        Parameters:
        +
        inputs - the array of inputs.
        +
        outputs - the array of outputs.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getInput

        +
        public U getInput(int index)
        +
        +
        Parameters:
        +
        index - the index to return.
        +
        Returns:
        +
        the indexed input.
        +
        +
      • +
      + + + +
        +
      • +

        getOutput

        +
        public U getOutput(int index)
        +
        +
        Parameters:
        +
        index - the index to return.
        +
        Returns:
        +
        the indexed output.
        +
        +
      • +
      + + + +
        +
      • +

        getInputs

        +
        public U[] getInputs()
        +
        +
        Returns:
        +
        the complete array of inputs.
        +
        +
      • +
      + + + +
        +
      • +

        getOutputs

        +
        public U[] getOutputs()
        +
        +
        Returns:
        +
        the complete array of outputs.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/TestCaseProblem.html b/doc/jcgp/backend/modules/problem/TestCaseProblem.html new file mode 100644 index 0000000..663bc0a --- /dev/null +++ b/doc/jcgp/backend/modules/problem/TestCaseProblem.html @@ -0,0 +1,427 @@ + + + + + +TestCaseProblem + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.problem
+

Class TestCaseProblem<T>

+
+
+ +
+
    +
  • +
    +
    Type Parameters:
    +
    T - the data type to be used by the TestCaseProblem.
    +
    +
    +
    Direct Known Subclasses:
    +
    DigitalCircuitProblem, SymbolicRegressionProblem
    +
    +
    +
    +
    public abstract class TestCaseProblem<T>
    +extends Problem
    +
    Abstract model for a problem that uses test cases. A test case + problem is any problem that compares the chromosome output to + an expected output taken from a table of input-output mappings. +

    + This class defines a basic data type for storing test cases, + TestCase, and provides core functionality to add and manipulate + test cases in the problem. A subclass of TestCaseProblem + must simply override parseTestCase() to convert parsed + problem data strings into the required data type (T).
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Problem
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TestCaseProblem

        +
        public TestCaseProblem(Resources resources)
        +
        Creates a new TestCaseProblem object.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTestCases

        +
        public javafx.collections.ObservableList<TestCaseProblem.TestCase<T>> getTestCases()
        +
        +
        Returns:
        +
        a list containing the test cases.
        +
        +
      • +
      + + + +
        +
      • +

        addTestCase

        +
        public final void addTestCase(java.lang.String[] inputs,
        +                              java.lang.String[] outputs)
        +
        Adds test cases to the problem instance as they get parsed from a + problem data file. This template method uses parseTestCase, which + must be implemented by subclasses.
        +
        +
        Parameters:
        +
        inputs - the inputs represented as strings.
        +
        outputs - the outputs represented as strings.
        +
        +
      • +
      + + + +
        +
      • +

        clearTestCases

        +
        public void clearTestCases()
        +
        Remove all test cases.
        +
      • +
      + + + +
        +
      • +

        parseProblemData

        +
        public void parseProblemData(java.io.File file,
        +                             ModifiableResources resources)
        +
        Description copied from class: Problem
        +
        Parses the specified file and uses the parsed data to + set up the problem type instance appropriately. Any necessary + resource changes can be performed using the provided ModifiableResources + instance. +

        + In addition, realisations of this method should update the value of + maxFitness where appropriate, as this may be displayed to the user + if a GUI is in use.
        +
        +
        Specified by:
        +
        parseProblemData in class Problem
        +
        Parameters:
        +
        file - the data file to parse.
        +
        resources - a modifiable reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/TravellingSalesmanProblem.html b/doc/jcgp/backend/modules/problem/TravellingSalesmanProblem.html new file mode 100644 index 0000000..4a2d0c9 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/TravellingSalesmanProblem.html @@ -0,0 +1,433 @@ + + + + + +TravellingSalesmanProblem + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.modules.problem
+

Class TravellingSalesmanProblem

+
+
+ +
+
    +
  • +
    +
    +
    public class TravellingSalesmanProblem
    +extends Problem
    +
    Travelling salesman problem +

    + Using this problem type, travelling salesman tours can be evolved. + parseData() must be used to load the desired city + coordinates in the standard .tsp format.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    TravellingSalesmanFunctions
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TravellingSalesmanProblem

        +
        public TravellingSalesmanProblem(Resources resources)
        +
        Construct a new instance of TravellingSalesmanProblem.
        +
        +
        Parameters:
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evaluate

        +
        public void evaluate(Population population,
        +                     Resources resources)
        +
        Description copied from class: Problem
        +
        The most important method of the problem type. This is called once + per generation, when the new population has been generated. +

        + The basic functionality of this method is to loop through all chromosomes + in the population and decode them according to the problem type. The + fitness of each chromosome is then calculated using the problem data + or otherwise (subjective problem types such as art generation might + leave fitness evaluations up to the user) and assigned to the appropriate + chromosome. +

        + In addition, realisations of this method should update the value of + bestFitness as appropriate, since the value of this parameter is displayed + if a GUI is in use.
        +
        +
        Specified by:
        +
        evaluate in class Problem
        +
        Parameters:
        +
        population - the population to be evaluated.
        +
        resources - parameters and utilities for optional reference.
        +
        +
      • +
      + + + +
        +
      • +

        isPerfectSolution

        +
        public boolean isPerfectSolution(Chromosome fittest)
        +
        Description copied from class: Problem
        +
        Used to assert whether a given chromosome is a perfect solution + to the problem. It is up to the problem to define what qualifies + a perfect solution, as some problems (subject ones such as music and + art evolution, for example) might not have perfect solutions at all. +

        + Note that if this method returns true, the experiment will move on + to the next run, or finish if no more runs are left.
        +
        +
        Specified by:
        +
        isPerfectSolution in class Problem
        +
        Parameters:
        +
        fittest - the potentially perfect chromosome.
        +
        Returns:
        +
        true if the argument is a perfect solution.
        +
        +
      • +
      + + + +
        +
      • +

        parseProblemData

        +
        public void parseProblemData(java.io.File file,
        +                             ModifiableResources resources)
        +
        Description copied from class: Problem
        +
        Parses the specified file and uses the parsed data to + set up the problem type instance appropriately. Any necessary + resource changes can be performed using the provided ModifiableResources + instance. +

        + In addition, realisations of this method should update the value of + maxFitness where appropriate, as this may be displayed to the user + if a GUI is in use.
        +
        +
        Specified by:
        +
        parseProblemData in class Problem
        +
        Parameters:
        +
        file - the data file to parse.
        +
        resources - a modifiable reference to the experiment's resources.
        +
        +
      • +
      + + + +
        +
      • +

        isImprovement

        +
        public boolean isImprovement(Chromosome fittest)
        +
        Description copied from class: Problem
        +
        Used to assert whether a given chromosome is an improvement over + the current best chromosome. A typical implementation of this method + will simply compare chromosome fitness values, though the problem type + is free to implement this in any way.
        +
        +
        Specified by:
        +
        isImprovement in class Problem
        +
        Parameters:
        +
        fittest - the potentially fitter chromosome.
        +
        Returns:
        +
        true if the argument is fitter than the currently fittest chromosome.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/class-use/BestFitness.html b/doc/jcgp/backend/modules/problem/class-use/BestFitness.html new file mode 100644 index 0000000..3e1aec5 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/class-use/BestFitness.html @@ -0,0 +1,212 @@ + + + + + +Uses of Class jcgp.backend.modules.problem.BestFitness + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.problem.BestFitness

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/class-use/DigitalCircuitProblem.html b/doc/jcgp/backend/modules/problem/class-use/DigitalCircuitProblem.html new file mode 100644 index 0000000..0a41224 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/class-use/DigitalCircuitProblem.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.modules.problem.DigitalCircuitProblem + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.problem.DigitalCircuitProblem

+
+
No usage of jcgp.backend.modules.problem.DigitalCircuitProblem
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/class-use/Problem.html b/doc/jcgp/backend/modules/problem/class-use/Problem.html new file mode 100644 index 0000000..df1956b --- /dev/null +++ b/doc/jcgp/backend/modules/problem/class-use/Problem.html @@ -0,0 +1,217 @@ + + + + + +Uses of Class jcgp.backend.modules.problem.Problem + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.problem.Problem

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/class-use/SymbolicRegressionProblem.html b/doc/jcgp/backend/modules/problem/class-use/SymbolicRegressionProblem.html new file mode 100644 index 0000000..6347b53 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/class-use/SymbolicRegressionProblem.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.modules.problem.SymbolicRegressionProblem + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.problem.SymbolicRegressionProblem

+
+
No usage of jcgp.backend.modules.problem.SymbolicRegressionProblem
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.TestCase.html b/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.TestCase.html new file mode 100644 index 0000000..51bc5c0 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.TestCase.html @@ -0,0 +1,249 @@ + + + + + +Uses of Class jcgp.backend.modules.problem.TestCaseProblem.TestCase + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.problem.TestCaseProblem.TestCase

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.html b/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.html new file mode 100644 index 0000000..2924adc --- /dev/null +++ b/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.html @@ -0,0 +1,227 @@ + + + + + +Uses of Class jcgp.backend.modules.problem.TestCaseProblem + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.problem.TestCaseProblem

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/class-use/TravellingSalesmanProblem.html b/doc/jcgp/backend/modules/problem/class-use/TravellingSalesmanProblem.html new file mode 100644 index 0000000..e8d6a27 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/class-use/TravellingSalesmanProblem.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.modules.problem.TravellingSalesmanProblem + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.modules.problem.TravellingSalesmanProblem

+
+
No usage of jcgp.backend.modules.problem.TravellingSalesmanProblem
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/package-frame.html b/doc/jcgp/backend/modules/problem/package-frame.html new file mode 100644 index 0000000..7089f7c --- /dev/null +++ b/doc/jcgp/backend/modules/problem/package-frame.html @@ -0,0 +1,28 @@ + + + + + +jcgp.backend.modules.problem + + + + + +

jcgp.backend.modules.problem

+
+

Classes

+ +

Enums

+ +
+ + diff --git a/doc/jcgp/backend/modules/problem/package-summary.html b/doc/jcgp/backend/modules/problem/package-summary.html new file mode 100644 index 0000000..381db7a --- /dev/null +++ b/doc/jcgp/backend/modules/problem/package-summary.html @@ -0,0 +1,188 @@ + + + + + +jcgp.backend.modules.problem + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.modules.problem

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/package-tree.html b/doc/jcgp/backend/modules/problem/package-tree.html new file mode 100644 index 0000000..1ff07b5 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/package-tree.html @@ -0,0 +1,163 @@ + + + + + +jcgp.backend.modules.problem Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.modules.problem

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/modules/problem/package-use.html b/doc/jcgp/backend/modules/problem/package-use.html new file mode 100644 index 0000000..32be276 --- /dev/null +++ b/doc/jcgp/backend/modules/problem/package-use.html @@ -0,0 +1,305 @@ + + + + + +Uses of Package jcgp.backend.modules.problem + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.modules.problem

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/BooleanParameter.html b/doc/jcgp/backend/parameters/BooleanParameter.html new file mode 100644 index 0000000..06792b1 --- /dev/null +++ b/doc/jcgp/backend/parameters/BooleanParameter.html @@ -0,0 +1,394 @@ + + + + + +BooleanParameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters
+

Class BooleanParameter

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    BooleanMonitor
    +
    +
    +
    +
    public class BooleanParameter
    +extends Parameter<java.lang.Boolean>
    +
    Parameter subclass for the boolean type. Most of the + functionality is already implemented in Parameter, + leaving only construction and type definition to the + subclasses. +

    + This class contains three constructors, two of which are public. + One assumes the parameter is not critical and only takes a name + and initial value, while the other allows the critical flag + to be set as well. The third constructor is protected and allows + the monitor flag to be set as well, allowing subclasses of this class + to be used as monitors. See BooleanMonitor for an example + of this usage. +

    + The validate method is overridden here and left blank since not all + parameters actually require validation, but where validation is + required this method can be anonymously overridden on an instance-to-instance + basis.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      BooleanParameter(boolean value, + java.lang.String name) +
      Creates a new instance of this class, assuming the parameter + is not critical.
      +
      BooleanParameter(boolean value, + java.lang.String name, + boolean critical) +
      Creates a new instance of this class.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Booleanget() 
      voidvalidate(java.lang.Boolean newValue) +
      This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BooleanParameter

        +
        public BooleanParameter(boolean value,
        +                        java.lang.String name)
        +
        Creates a new instance of this class, assuming the parameter + is not critical.
        +
        +
        Parameters:
        +
        value - the initial value for this parameter.
        +
        name - the name of this parameter, for GUI display.
        +
        +
      • +
      + + + +
        +
      • +

        BooleanParameter

        +
        public BooleanParameter(boolean value,
        +                        java.lang.String name,
        +                        boolean critical)
        +
        Creates a new instance of this class.
        +
        +
        Parameters:
        +
        value - the initial value for this parameter.
        +
        name - the name of this parameter, for GUI display.
        +
        critical - true if the parameter is critical.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public java.lang.Boolean get()
        +
        +
        Overrides:
        +
        get in class Parameter<java.lang.Boolean>
        +
        Returns:
        +
        the parameter's current value.
        +
        +
      • +
      + + + +
        +
      • +

        validate

        +
        public void validate(java.lang.Boolean newValue)
        +
        Description copied from class: Parameter
        +
        This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made. This method + is intended to set the status field according to the + new value, so that the user can be informed if any parameters + are currently set to invalid values.
        +
        +
        Specified by:
        +
        validate in class Parameter<java.lang.Boolean>
        +
        Parameters:
        +
        newValue - the new value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/DoubleParameter.html b/doc/jcgp/backend/parameters/DoubleParameter.html new file mode 100644 index 0000000..eb59a02 --- /dev/null +++ b/doc/jcgp/backend/parameters/DoubleParameter.html @@ -0,0 +1,394 @@ + + + + + +DoubleParameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters
+

Class DoubleParameter

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    DoubleMonitor
    +
    +
    +
    +
    public class DoubleParameter
    +extends Parameter<java.lang.Number>
    +
    Parameter subclass for the double type. Most of the + functionality is already implemented in Parameter, + leaving only construction and type definition to the + subclasses. +

    + This class contains three constructors, two of which are public. + One assumes the parameter is not critical and only takes a name + and initial value, while the other allows the critical flag + to be set as well. The third constructor is protected and allows + the monitor flag to be set as well, allowing subclasses of this class + to be used as monitors. See DoubleMonitor for an example + of this usage. +

    + The validate method is overridden here and left blank since not all + parameters actually require validation, but where validation is + required this method can be anonymously overridden on an instance-to-instance + basis.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      DoubleParameter(double value, + java.lang.String name) +
      Creates a new instance of this class, assuming the parameter + is not critical.
      +
      DoubleParameter(double value, + java.lang.String name, + boolean critical) +
      Creates a new instance of this class.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Doubleget() 
      voidvalidate(java.lang.Number newValue) +
      This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DoubleParameter

        +
        public DoubleParameter(double value,
        +                       java.lang.String name)
        +
        Creates a new instance of this class, assuming the parameter + is not critical.
        +
        +
        Parameters:
        +
        value - the initial value for this parameter.
        +
        name - the name of this parameter, for GUI display.
        +
        +
      • +
      + + + +
        +
      • +

        DoubleParameter

        +
        public DoubleParameter(double value,
        +                       java.lang.String name,
        +                       boolean critical)
        +
        Creates a new instance of this class.
        +
        +
        Parameters:
        +
        value - the initial value for this parameter.
        +
        name - the name of this parameter, for GUI display.
        +
        critical - true if the parameter is critical.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public java.lang.Double get()
        +
        +
        Overrides:
        +
        get in class Parameter<java.lang.Number>
        +
        Returns:
        +
        the parameter's current value.
        +
        +
      • +
      + + + +
        +
      • +

        validate

        +
        public void validate(java.lang.Number newValue)
        +
        Description copied from class: Parameter
        +
        This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made. This method + is intended to set the status field according to the + new value, so that the user can be informed if any parameters + are currently set to invalid values.
        +
        +
        Specified by:
        +
        validate in class Parameter<java.lang.Number>
        +
        Parameters:
        +
        newValue - the new value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/IntegerParameter.html b/doc/jcgp/backend/parameters/IntegerParameter.html new file mode 100644 index 0000000..6a79d0a --- /dev/null +++ b/doc/jcgp/backend/parameters/IntegerParameter.html @@ -0,0 +1,394 @@ + + + + + +IntegerParameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters
+

Class IntegerParameter

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    IntegerMonitor
    +
    +
    +
    +
    public class IntegerParameter
    +extends Parameter<java.lang.Number>
    +
    Parameter subclass for the double type. Most of the + functionality is already implemented in Parameter, + leaving only construction and type definition to the + subclasses. +

    + This class contains three constructors, two of which are public. + One assumes the parameter is not critical and only takes a name + and initial value, while the other allows the critical flag + to be set as well. The third constructor is protected and allows + the monitor flag to be set as well, allowing subclasses of this class + to be used as monitors. See IntegerMonitor for an example + of this usage. +

    + The validate method is overridden here and left blank since not all + parameters actually require validation, but where validation is + required this method can be anonymously overridden on an instance-to-instance + basis.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      IntegerParameter(int value, + java.lang.String name) +
      Creates a new instance of this class, assuming the parameter + is not critical.
      +
      IntegerParameter(int value, + java.lang.String name, + boolean critical) +
      Creates a new instance of this class.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Integerget() 
      voidvalidate(java.lang.Number newValue) +
      This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntegerParameter

        +
        public IntegerParameter(int value,
        +                        java.lang.String name)
        +
        Creates a new instance of this class, assuming the parameter + is not critical.
        +
        +
        Parameters:
        +
        value - the initial value for this parameter.
        +
        name - the name of this parameter, for GUI display.
        +
        +
      • +
      + + + +
        +
      • +

        IntegerParameter

        +
        public IntegerParameter(int value,
        +                        java.lang.String name,
        +                        boolean critical)
        +
        Creates a new instance of this class.
        +
        +
        Parameters:
        +
        value - the initial value for this parameter.
        +
        name - the name of this parameter, for GUI display.
        +
        critical - true if the parameter is critical.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public java.lang.Integer get()
        +
        +
        Overrides:
        +
        get in class Parameter<java.lang.Number>
        +
        Returns:
        +
        the parameter's current value.
        +
        +
      • +
      + + + +
        +
      • +

        validate

        +
        public void validate(java.lang.Number newValue)
        +
        Description copied from class: Parameter
        +
        This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made. This method + is intended to set the status field according to the + new value, so that the user can be informed if any parameters + are currently set to invalid values.
        +
        +
        Specified by:
        +
        validate in class Parameter<java.lang.Number>
        +
        Parameters:
        +
        newValue - the new value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/Parameter.html b/doc/jcgp/backend/parameters/Parameter.html new file mode 100644 index 0000000..c616601 --- /dev/null +++ b/doc/jcgp/backend/parameters/Parameter.html @@ -0,0 +1,466 @@ + + + + + +Parameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters
+

Class Parameter<T>

+
+
+ +
+
    +
  • +
    +
    Type Parameters:
    +
    T - the data type stored in the parameter.
    +
    +
    +
    Direct Known Subclasses:
    +
    BooleanParameter, DoubleParameter, IntegerParameter
    +
    +
    +
    +
    public abstract class Parameter<T>
    +extends java.lang.Object
    +
    Specifies an abstract model of a module parameter. +

    + Parameters are values which control the operation of modules. + They can be freely modified and accessed by the module in which + they are declared. Additionally, the module may choose to expose + some of its parameters to a user interface, so that information + is displayed. If that is the case, the parameter can be made + read-only by setting the monitor flag (it becomes a parameter + monitor). In addition, settings the critical flag indicates to + the experiment that any changes to the parameter should result in + an experiment-wide reset. +

    + Parameter is abstract. A typical implementation defines + the data type T and initialises the valueProperty field + with a suitable type. For the sake of clarity, it may not be ideal + for a subclass constructor to expose an argument for the monitor + field. Instead, a different class should be created which constructs + the parameter as a monitor, so that the distinction between a regular + parameter and a parameter monitor is more apparent. The boolean, integer + and double implementations of parameter (and their associated monitors) + implement this pattern, refer to them for more details. +

    + The status field holds the current status of the parameter, + which should change whenever the parameter value changes. + In order for this to happen, validate() is called whenever + the parameter status should be updated. This being the case, it should + be overridden on an instance-to-instance basis, as each parameter + will likely have different validity criteria. The type of status is + ParameterStatus, an enum type defining all valid states.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Module
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      TypeProperty and Description
      javafx.beans.property.ReadOnlyProperty<T>value +
      This method is intended for bindings only.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethod and Description
      Tget() 
      ParameterStatusgetStatus() 
      booleanisCritical() 
      booleanisMonitor() 
      voidset(T newValue) +
      Sets the parameter to the specified value, if the property + is not bound.
      +
      java.lang.StringtoString() 
      abstract voidvalidate(T newValue) +
      This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made.
      +
      javafx.beans.property.ReadOnlyProperty<T>valueProperty() +
      This method is intended for bindings only.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Detail

      + + + +
        +
      • +

        value

        +
        public javafx.beans.property.ReadOnlyProperty<T> valueProperty
        +
        This method is intended for bindings only. Changes to the parameter + value should be made using set().
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isMonitor

        +
        public boolean isMonitor()
        +
        +
        Returns:
        +
        true if the parameter is a monitor.
        +
        +
      • +
      + + + +
        +
      • +

        isCritical

        +
        public boolean isCritical()
        +
        +
        Returns:
        +
        true if the parameter is critical.
        +
        +
      • +
      + + + +
        +
      • +

        getStatus

        +
        public ParameterStatus getStatus()
        +
        +
        Returns:
        +
        the current status of the parameter.
        +
        +
      • +
      + + + +
        +
      • +

        valueProperty

        +
        public javafx.beans.property.ReadOnlyProperty<T> valueProperty()
        +
        This method is intended for bindings only. Changes to the parameter + value should be made using set().
        +
      • +
      + + + +
        +
      • +

        get

        +
        public T get()
        +
        +
        Returns:
        +
        the parameter's current value.
        +
        +
      • +
      + + + + + +
        +
      • +

        set

        +
        public void set(T newValue)
        +
        Sets the parameter to the specified value, if the property + is not bound.
        +
        +
        Parameters:
        +
        newValue - the new value for the parameter.
        +
        +
      • +
      + + + + + +
        +
      • +

        validate

        +
        public abstract void validate(T newValue)
        +
        This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made. This method + is intended to set the status field according to the + new value, so that the user can be informed if any parameters + are currently set to invalid values.
        +
        +
        Parameters:
        +
        newValue - the new value.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/ParameterStatus.html b/doc/jcgp/backend/parameters/ParameterStatus.html new file mode 100644 index 0000000..fc216df --- /dev/null +++ b/doc/jcgp/backend/parameters/ParameterStatus.html @@ -0,0 +1,432 @@ + + + + + +ParameterStatus + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters
+

Enum ParameterStatus

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<ParameterStatus>
    +
    +
    +
    +
    public enum ParameterStatus
    +extends java.lang.Enum<ParameterStatus>
    +
    Enum type containing all possible states for parameters. +
    +
      +
    • INVALID: the new parameter value is not valid, + and the experiment will not be allowed to run.
    • +
    • WARNING: the new parameter value is technically valid, + though it might lead to undesirable behaviour.
    • +
    • WARNING_RESET: the new parameter value is technically valid + but will require a reset.
    • +
    • VALID: the new value is valid.
    • +
    +

    + The above definitions are final in the sense that they outline + how parameters are treated by the program depending on their + status (e.g. if any parameters are set to WARNING_RESET, a reset + will automatically be performed when the experiment is run). +
    + In addition to the status itself, this class includes a field + to contain details about the current status. If a GUI is in use, + the contents of the field should be displayed to the user, as well + as some visual indication of the status itself. Both the status + and the message should be updated by each parameter when validate() + is called.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Parameter
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.StringgetDetails() 
      voidsetDetails(java.lang.String details) +
      Sets a new string containing details about the current status.
      +
      static ParameterStatusvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ParameterStatus[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ParameterStatus[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ParameterStatus c : ParameterStatus.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ParameterStatus valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        setDetails

        +
        public void setDetails(java.lang.String details)
        +
        Sets a new string containing details about the current status. + This should be displayed by the GUI, if one is in use.
        +
        +
        Parameters:
        +
        details - an explanation of the current status.
        +
        +
      • +
      + + + +
        +
      • +

        getDetails

        +
        public java.lang.String getDetails()
        +
        +
        Returns:
        +
        the string containing details about the current status.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/class-use/BooleanParameter.html b/doc/jcgp/backend/parameters/class-use/BooleanParameter.html new file mode 100644 index 0000000..7f43c20 --- /dev/null +++ b/doc/jcgp/backend/parameters/class-use/BooleanParameter.html @@ -0,0 +1,167 @@ + + + + + +Uses of Class jcgp.backend.parameters.BooleanParameter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parameters.BooleanParameter

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/class-use/DoubleParameter.html b/doc/jcgp/backend/parameters/class-use/DoubleParameter.html new file mode 100644 index 0000000..9d559b2 --- /dev/null +++ b/doc/jcgp/backend/parameters/class-use/DoubleParameter.html @@ -0,0 +1,167 @@ + + + + + +Uses of Class jcgp.backend.parameters.DoubleParameter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parameters.DoubleParameter

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/class-use/IntegerParameter.html b/doc/jcgp/backend/parameters/class-use/IntegerParameter.html new file mode 100644 index 0000000..75b6c3f --- /dev/null +++ b/doc/jcgp/backend/parameters/class-use/IntegerParameter.html @@ -0,0 +1,237 @@ + + + + + +Uses of Class jcgp.backend.parameters.IntegerParameter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parameters.IntegerParameter

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/class-use/Parameter.html b/doc/jcgp/backend/parameters/class-use/Parameter.html new file mode 100644 index 0000000..7d037b6 --- /dev/null +++ b/doc/jcgp/backend/parameters/class-use/Parameter.html @@ -0,0 +1,267 @@ + + + + + +Uses of Class jcgp.backend.parameters.Parameter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parameters.Parameter

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/class-use/ParameterStatus.html b/doc/jcgp/backend/parameters/class-use/ParameterStatus.html new file mode 100644 index 0000000..d0471f9 --- /dev/null +++ b/doc/jcgp/backend/parameters/class-use/ParameterStatus.html @@ -0,0 +1,177 @@ + + + + + +Uses of Class jcgp.backend.parameters.ParameterStatus + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parameters.ParameterStatus

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/BooleanMonitor.html b/doc/jcgp/backend/parameters/monitors/BooleanMonitor.html new file mode 100644 index 0000000..7b20189 --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/BooleanMonitor.html @@ -0,0 +1,368 @@ + + + + + +BooleanMonitor + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters.monitors
+

Class BooleanMonitor

+
+
+ +
+
    +
  • +
    +
    +
    public class BooleanMonitor
    +extends BooleanParameter
    +
    This is a special type of BooleanParameter which + cannot be modified in the GUI (if the GUI is in use).
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      BooleanMonitor(boolean value, + java.lang.String name) +
      Creates a new instance of this class, assuming the monitor + is not critical.
      +
      BooleanMonitor(boolean value, + java.lang.String name, + boolean critical) +
      Creates a new instance of this class.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BooleanMonitor

        +
        public BooleanMonitor(boolean value,
        +                      java.lang.String name)
        +
        Creates a new instance of this class, assuming the monitor + is not critical.
        +
        +
        Parameters:
        +
        value - the initial value for this monitor.
        +
        name - the name of this monitor, for GUI display.
        +
        +
      • +
      + + + +
        +
      • +

        BooleanMonitor

        +
        public BooleanMonitor(boolean value,
        +                      java.lang.String name,
        +                      boolean critical)
        +
        Creates a new instance of this class.
        +
        +
        Parameters:
        +
        value - the initial value for this monitor.
        +
        name - the name of this monitor, for GUI display.
        +
        critical - true if the monitor is critical.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        validate

        +
        public void validate(java.lang.Boolean newValue)
        +
        Description copied from class: Parameter
        +
        This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made. This method + is intended to set the status field according to the + new value, so that the user can be informed if any parameters + are currently set to invalid values.
        +
        +
        Overrides:
        +
        validate in class BooleanParameter
        +
        Parameters:
        +
        newValue - the new value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/DoubleMonitor.html b/doc/jcgp/backend/parameters/monitors/DoubleMonitor.html new file mode 100644 index 0000000..6c04a90 --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/DoubleMonitor.html @@ -0,0 +1,368 @@ + + + + + +DoubleMonitor + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters.monitors
+

Class DoubleMonitor

+
+
+ +
+
    +
  • +
    +
    +
    public class DoubleMonitor
    +extends DoubleParameter
    +
    This is a special type of DoubleParameter which + cannot be modified in the GUI (if the GUI is in use).
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      DoubleMonitor(double value, + java.lang.String name) +
      Creates a new instance of this class, assuming the monitor + is not critical.
      +
      DoubleMonitor(double value, + java.lang.String name, + boolean critical) +
      Creates a new instance of this class.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DoubleMonitor

        +
        public DoubleMonitor(double value,
        +                     java.lang.String name)
        +
        Creates a new instance of this class, assuming the monitor + is not critical.
        +
        +
        Parameters:
        +
        value - the initial value for this monitor.
        +
        name - the name of this monitor, for GUI display.
        +
        +
      • +
      + + + +
        +
      • +

        DoubleMonitor

        +
        public DoubleMonitor(double value,
        +                     java.lang.String name,
        +                     boolean critical)
        +
        Creates a new instance of this class.
        +
        +
        Parameters:
        +
        value - the initial value for this monitor.
        +
        name - the name of this monitor, for GUI display.
        +
        critical - true if the monitor is critical.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        validate

        +
        public void validate(java.lang.Number newValue)
        +
        Description copied from class: Parameter
        +
        This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made. This method + is intended to set the status field according to the + new value, so that the user can be informed if any parameters + are currently set to invalid values.
        +
        +
        Overrides:
        +
        validate in class DoubleParameter
        +
        Parameters:
        +
        newValue - the new value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/IntegerMonitor.html b/doc/jcgp/backend/parameters/monitors/IntegerMonitor.html new file mode 100644 index 0000000..9ebc2d8 --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/IntegerMonitor.html @@ -0,0 +1,368 @@ + + + + + +IntegerMonitor + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parameters.monitors
+

Class IntegerMonitor

+
+
+ +
+
    +
  • +
    +
    +
    public class IntegerMonitor
    +extends IntegerParameter
    +
    This is a special type of IntegerParameter which + cannot be modified in the GUI (if the GUI is in use).
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      IntegerMonitor(int value, + java.lang.String name) +
      Creates a new instance of this class, assuming the monitor + is not critical.
      +
      IntegerMonitor(int value, + java.lang.String name, + boolean critical) +
      Creates a new instance of this class.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntegerMonitor

        +
        public IntegerMonitor(int value,
        +                      java.lang.String name)
        +
        Creates a new instance of this class, assuming the monitor + is not critical.
        +
        +
        Parameters:
        +
        value - the initial value for this monitor.
        +
        name - the name of this monitor, for GUI display.
        +
        +
      • +
      + + + +
        +
      • +

        IntegerMonitor

        +
        public IntegerMonitor(int value,
        +                      java.lang.String name,
        +                      boolean critical)
        +
        Creates a new instance of this class.
        +
        +
        Parameters:
        +
        value - the initial value for this monitor.
        +
        name - the name of this monitor, for GUI display.
        +
        critical - true if the monitor is critical.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        validate

        +
        public void validate(java.lang.Number newValue)
        +
        Description copied from class: Parameter
        +
        This is a callback method which gets called whenever changes + to parameters (not only its own instance) are made. This method + is intended to set the status field according to the + new value, so that the user can be informed if any parameters + are currently set to invalid values.
        +
        +
        Overrides:
        +
        validate in class IntegerParameter
        +
        Parameters:
        +
        newValue - the new value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/class-use/BooleanMonitor.html b/doc/jcgp/backend/parameters/monitors/class-use/BooleanMonitor.html new file mode 100644 index 0000000..abda05b --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/class-use/BooleanMonitor.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.parameters.monitors.BooleanMonitor + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parameters.monitors.BooleanMonitor

+
+
No usage of jcgp.backend.parameters.monitors.BooleanMonitor
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/class-use/DoubleMonitor.html b/doc/jcgp/backend/parameters/monitors/class-use/DoubleMonitor.html new file mode 100644 index 0000000..4b51550 --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/class-use/DoubleMonitor.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.parameters.monitors.DoubleMonitor + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parameters.monitors.DoubleMonitor

+
+
No usage of jcgp.backend.parameters.monitors.DoubleMonitor
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/class-use/IntegerMonitor.html b/doc/jcgp/backend/parameters/monitors/class-use/IntegerMonitor.html new file mode 100644 index 0000000..a103997 --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/class-use/IntegerMonitor.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.parameters.monitors.IntegerMonitor + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parameters.monitors.IntegerMonitor

+
+
No usage of jcgp.backend.parameters.monitors.IntegerMonitor
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/package-frame.html b/doc/jcgp/backend/parameters/monitors/package-frame.html new file mode 100644 index 0000000..af63177 --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/package-frame.html @@ -0,0 +1,22 @@ + + + + + +jcgp.backend.parameters.monitors + + + + + +

jcgp.backend.parameters.monitors

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/backend/parameters/monitors/package-summary.html b/doc/jcgp/backend/parameters/monitors/package-summary.html new file mode 100644 index 0000000..d7b074c --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/package-summary.html @@ -0,0 +1,159 @@ + + + + + +jcgp.backend.parameters.monitors + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.parameters.monitors

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/package-tree.html b/doc/jcgp/backend/parameters/monitors/package-tree.html new file mode 100644 index 0000000..3b96ca8 --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/package-tree.html @@ -0,0 +1,155 @@ + + + + + +jcgp.backend.parameters.monitors Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.parameters.monitors

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/monitors/package-use.html b/doc/jcgp/backend/parameters/monitors/package-use.html new file mode 100644 index 0000000..c6ae683 --- /dev/null +++ b/doc/jcgp/backend/parameters/monitors/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package jcgp.backend.parameters.monitors + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.parameters.monitors

+
+
No usage of jcgp.backend.parameters.monitors
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/package-frame.html b/doc/jcgp/backend/parameters/package-frame.html new file mode 100644 index 0000000..71d0bf3 --- /dev/null +++ b/doc/jcgp/backend/parameters/package-frame.html @@ -0,0 +1,27 @@ + + + + + +jcgp.backend.parameters + + + + + +

jcgp.backend.parameters

+
+

Classes

+ +

Enums

+ +
+ + diff --git a/doc/jcgp/backend/parameters/package-summary.html b/doc/jcgp/backend/parameters/package-summary.html new file mode 100644 index 0000000..0942c04 --- /dev/null +++ b/doc/jcgp/backend/parameters/package-summary.html @@ -0,0 +1,179 @@ + + + + + +jcgp.backend.parameters + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.parameters

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/package-tree.html b/doc/jcgp/backend/parameters/package-tree.html new file mode 100644 index 0000000..b82ea62 --- /dev/null +++ b/doc/jcgp/backend/parameters/package-tree.html @@ -0,0 +1,155 @@ + + + + + +jcgp.backend.parameters Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.parameters

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parameters/package-use.html b/doc/jcgp/backend/parameters/package-use.html new file mode 100644 index 0000000..d16ea79 --- /dev/null +++ b/doc/jcgp/backend/parameters/package-use.html @@ -0,0 +1,263 @@ + + + + + +Uses of Package jcgp.backend.parameters + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.parameters

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/ChromosomeParser.html b/doc/jcgp/backend/parsers/ChromosomeParser.html new file mode 100644 index 0000000..14862f6 --- /dev/null +++ b/doc/jcgp/backend/parsers/ChromosomeParser.html @@ -0,0 +1,324 @@ + + + + + +ChromosomeParser + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parsers
+

Class ChromosomeParser

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class ChromosomeParser
    +extends java.lang.Object
    +
    This class contains a method for parsing .chr files and another + for writing .chr files from given chromosomes.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ChromosomeParser() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidparse(java.io.File file, + Chromosome chromosome, + Resources resources) +
      Use this method to parse .chr files into a given chromosome.
      +
      static voidsave(java.io.File file, + Chromosome chromosome, + Resources resources) +
      Writes a chromosome into the specified .chr file.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChromosomeParser

        +
        public ChromosomeParser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static void parse(java.io.File file,
        +                         Chromosome chromosome,
        +                         Resources resources)
        +
        Use this method to parse .chr files into a given chromosome. +

        + This is not fully defensive as it doesn't check for number of inputs, + doesn't compare rows and columns individually and doesn't account for levels back. It + is not viable to implement these defensive measures with the chromosome format used + by CGP.
        +
        +
        Parameters:
        +
        file - the .chr file to parse from
        +
        chromosome - the chromosome to configure
        +
        resources - the experiment resources
        +
        +
      • +
      + + + +
        +
      • +

        save

        +
        public static void save(java.io.File file,
        +                        Chromosome chromosome,
        +                        Resources resources)
        +
        Writes a chromosome into the specified .chr file. +

        + The file is written in the standard .chr format and can + be read by the original CGP implementation.
        +
        +
        Parameters:
        +
        file - the file to write to
        +
        chromosome - the chromosome to save
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/FunctionParser.html b/doc/jcgp/backend/parsers/FunctionParser.html new file mode 100644 index 0000000..f7ef21c --- /dev/null +++ b/doc/jcgp/backend/parsers/FunctionParser.html @@ -0,0 +1,301 @@ + + + + + +FunctionParser + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parsers
+

Class FunctionParser

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class FunctionParser
    +extends java.lang.Object
    +
    Contains a static method for parsing functions from a + .par file.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      FunctionParser() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidparse(java.io.File file, + FunctionSet functionSet, + Resources resources) +
      Reads the specified file and attempts to enable + and disable the functions in the FunctionSet + accordingly.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FunctionParser

        +
        public FunctionParser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static void parse(java.io.File file,
        +                         FunctionSet functionSet,
        +                         Resources resources)
        +
        Reads the specified file and attempts to enable + and disable the functions in the FunctionSet + accordingly. +

        + Standard CGP .par files do not contain enough information + to determine if they match the currently selected function set. + For this reason, the parser assumes the function set is correct + and treats functions by their index rather than their name. Any + index outside the bounds of the function set is ignored and a + warning message is printed once parsing is complete.
        +
        +
        Parameters:
        +
        file - the .par file to parse.
        +
        functionSet - the function set whose functions should be modified.
        +
        resources - used for printing console messages.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/ParameterParser.html b/doc/jcgp/backend/parsers/ParameterParser.html new file mode 100644 index 0000000..3dd7c2d --- /dev/null +++ b/doc/jcgp/backend/parsers/ParameterParser.html @@ -0,0 +1,294 @@ + + + + + +ParameterParser + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parsers
+

Class ParameterParser

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class ParameterParser
    +extends java.lang.Object
    +
    Contains a static method for parsing parameters from a + .par file.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ParameterParser() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidparse(java.io.File file, + ModifiableResources resources) +
      Parses the parameters from a specified CGP parameter file and + modifies the experiment resources appropriately.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ParameterParser

        +
        public ParameterParser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static void parse(java.io.File file,
        +                         ModifiableResources resources)
        +
        Parses the parameters from a specified CGP parameter file and + modifies the experiment resources appropriately. +

        + CGP .par files do not follow a very strict convention, so this + parser does its best to cope with format irregularities. Parsing + works even if the parameters are in the wrong order, and unknown + parameters are simply ignored.
        +
        +
        Parameters:
        +
        file - the .par file to parse.
        +
        resources - a reference to the resources object that must be modified.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/TestCaseParser.html b/doc/jcgp/backend/parsers/TestCaseParser.html new file mode 100644 index 0000000..e3dc642 --- /dev/null +++ b/doc/jcgp/backend/parsers/TestCaseParser.html @@ -0,0 +1,296 @@ + + + + + +TestCaseParser + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.parsers
+

Class TestCaseParser

+
+
+ +
+
    +
  • +
    +
    +
    public abstract class TestCaseParser
    +extends java.lang.Object
    +
    Contains a static method for parsing values from a + CGP problem data file. The actual file extension + varies from problem to problem, and is therefore + defined in the experiment's Problem instance.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TestCaseParser() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidparse(java.io.File file, + TestCaseProblem<?> problem, + ModifiableResources resources) +
      Sets the number of inputs and outputs in the resources + to match the given file, and parses each test case + from the file into the specified problem.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TestCaseParser

        +
        public TestCaseParser()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        parse

        +
        public static void parse(java.io.File file,
        +                         TestCaseProblem<?> problem,
        +                         ModifiableResources resources)
        +
        Sets the number of inputs and outputs in the resources + to match the given file, and parses each test case + from the file into the specified problem.
        +
        +
        Parameters:
        +
        file - the problem file to parse.
        +
        problem - the problem into which to parse the problem data.
        +
        resources - a modifiable reference to the experiment's resources
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/class-use/ChromosomeParser.html b/doc/jcgp/backend/parsers/class-use/ChromosomeParser.html new file mode 100644 index 0000000..e75e1c7 --- /dev/null +++ b/doc/jcgp/backend/parsers/class-use/ChromosomeParser.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.parsers.ChromosomeParser + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parsers.ChromosomeParser

+
+
No usage of jcgp.backend.parsers.ChromosomeParser
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/class-use/FunctionParser.html b/doc/jcgp/backend/parsers/class-use/FunctionParser.html new file mode 100644 index 0000000..ae142f1 --- /dev/null +++ b/doc/jcgp/backend/parsers/class-use/FunctionParser.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.parsers.FunctionParser + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parsers.FunctionParser

+
+
No usage of jcgp.backend.parsers.FunctionParser
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/class-use/ParameterParser.html b/doc/jcgp/backend/parsers/class-use/ParameterParser.html new file mode 100644 index 0000000..25ee51d --- /dev/null +++ b/doc/jcgp/backend/parsers/class-use/ParameterParser.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.parsers.ParameterParser + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parsers.ParameterParser

+
+
No usage of jcgp.backend.parsers.ParameterParser
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/class-use/TestCaseParser.html b/doc/jcgp/backend/parsers/class-use/TestCaseParser.html new file mode 100644 index 0000000..6a6fd9e --- /dev/null +++ b/doc/jcgp/backend/parsers/class-use/TestCaseParser.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.parsers.TestCaseParser + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.parsers.TestCaseParser

+
+
No usage of jcgp.backend.parsers.TestCaseParser
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/package-frame.html b/doc/jcgp/backend/parsers/package-frame.html new file mode 100644 index 0000000..6465787 --- /dev/null +++ b/doc/jcgp/backend/parsers/package-frame.html @@ -0,0 +1,23 @@ + + + + + +jcgp.backend.parsers + + + + + +

jcgp.backend.parsers

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/backend/parsers/package-summary.html b/doc/jcgp/backend/parsers/package-summary.html new file mode 100644 index 0000000..bce0483 --- /dev/null +++ b/doc/jcgp/backend/parsers/package-summary.html @@ -0,0 +1,166 @@ + + + + + +jcgp.backend.parsers + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.parsers

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/package-tree.html b/doc/jcgp/backend/parsers/package-tree.html new file mode 100644 index 0000000..0f41a20 --- /dev/null +++ b/doc/jcgp/backend/parsers/package-tree.html @@ -0,0 +1,140 @@ + + + + + +jcgp.backend.parsers Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.parsers

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/parsers/package-use.html b/doc/jcgp/backend/parsers/package-use.html new file mode 100644 index 0000000..f58b655 --- /dev/null +++ b/doc/jcgp/backend/parsers/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package jcgp.backend.parsers + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.parsers

+
+
No usage of jcgp.backend.parsers
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/Chromosome.html b/doc/jcgp/backend/population/Chromosome.html new file mode 100644 index 0000000..ffcb6f8 --- /dev/null +++ b/doc/jcgp/backend/population/Chromosome.html @@ -0,0 +1,742 @@ + + + + + +Chromosome + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.population
+

Class Chromosome

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Comparable<Chromosome>
    +
    +
    +
    +
    public class Chromosome
    +extends java.lang.Object
    +implements java.lang.Comparable<Chromosome>
    +
    This class encapsulates a CGP chromosome. +

    + A chromosome contains a matrix of nodes and arrays of inputs and outputs. + These elements are all interconnected, and actually form the chromosome + network itself. Individual nodes can be retrieved using getNode() + which requires the row and column to be specified. The same works for + inputs and outputs using the associated getters, in which case only the + index is necessary. +

    + In evolutionary computation it is often necessary to make copies of + chromosomes; this can be accomplished in JCGP in two ways. The recommended + way to do this is using copyChromosome() in Population, but alternatively + it can be done by using the Chromosome copy constructor and specifying the + object to copy from, or by using the copyGenes() method. +

    + To illustrate this, given two chromosomes, chr1 and chr2, the following code: +

    + + chr1.copyGenes(chr2); +

    + will modify all of chr1's connections and functions to match those of chr2, without + creating a new instance. In contrast, +

    + + chr1 = new Chromosome(chr2); +

    + creates a new instance of chromosome which is identical to chr2 and assigns it to chr1, + meaning any old references to chr1 that are not updated will still refer to a chromosome + that is not identical to chr2. In practice, the most reliable way is to use the copy method + in Population. Assuming chr1 and chr2 are indexed 1 and 2 in population respectively, +

    + population.copyChromosome(2, 1); +

    + will copy chr2 into chr1 without creating new instances or requiring access to the underlying + chromosome array. Chromosome offers a variety of methods to compare chromosomes as well, + such as compareGenesTo() and compareActiveGenesTo(). Comparable is implemented + to compare fitness value, meaning compareTo() returns a value depending the relative fitness + of the compared chromosomes. +

    + In order to set the chromosome's input values for decoding, setInputs() should be used. A few + utility methods are provided in order to retrieve random elements from the chromosome, which are used + internally to initialise with random connections but also externally by mutators when performing + mutations.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Chromosome(Chromosome clone) +
      Copy constructor.
      +
      Chromosome(Resources resources) +
      Initialise a chromosome with the specified parameters.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleancompareActiveGenesTo(Chromosome chromosome) +
      Does the same as compareGenesto() but only looks + at the active portion of the chromosome.
      +
      booleancompareGenesTo(Chromosome chromosome) +
      Performs a deep comparison between this chromosome and the provided one.
      +
      intcompareTo(Chromosome o) 
      voidcopyGenes(Chromosome clone) +
      Creates a deep copy of the specified chromosome in the + this instance.
      +
      java.util.ArrayList<Node>getActiveNodes() +
      This method computes a list of active nodes (if necessary) and returns it.
      +
      doublegetFitness() 
      InputgetInput(int index) +
      Returns a reference to the indexed input.
      +
      NodegetNode(int row, + int column) +
      Returns a reference to any node, addressed by row and column.
      +
      OutputgetOutput(int index) +
      Returns a reference to the indexed output.
      +
      ConnectiongetRandomConnection() +
      This method will pick a completely random connection, independently + of levels back, including inputs.
      +
      ConnectiongetRandomConnection(int column) +
      Returns a random allowed connection respecting levels back.
      + This method may always pick inputs, as they can be picked + regardless of the column.
      +
      MutableElementgetRandomMutableElement() +
      This method is useful for mutating chromosomes.
      +
      ResourcesgetResources() 
      voidprintNodes() +
      Iterates through the nodes and prints all connections and functions.
      +
      voidrecomputeActiveNodes() +
      This causes the list of active nodes to be recomputed lazily (once it is actually requested).
      +
      voidreinitialiseConnections() +
      Sets random connections and functions across the entire + chromosome.
      +
      voidsetFitness(double newFitness) +
      Sets the fitness of the chromosome.
      +
      voidsetInputs(java.lang.Object... values) +
      Loops through the inputs and sets the specified values, + so that evaluations can be performed.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Chromosome

        +
        public Chromosome(Resources resources)
        +
        Initialise a chromosome with the specified parameters. Random valid connections + are created upon initialisation.
        +
        +
        Parameters:
        +
        resources - the experiment's resources.
        +
        +
      • +
      + + + +
        +
      • +

        Chromosome

        +
        public Chromosome(Chromosome clone)
        +
        Copy constructor. + + Initialise a new chromosome with the exact same connections as a given instance of Chromosome.
        +
        +
        Parameters:
        +
        clone - the chromosome to be copied.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        reinitialiseConnections

        +
        public void reinitialiseConnections()
        +
        Sets random connections and functions across the entire + chromosome. This method can be used more than once for + each instance, if entirely random chromosomes are desired.
        +
      • +
      + + + +
        +
      • +

        copyGenes

        +
        public void copyGenes(Chromosome clone)
        +
        Creates a deep copy of the specified chromosome in the + this instance. In practice, this iterates through the + entire chromosome making equivalent connections and + setting functions to the same values as those in the + specified chromosome. It also sets the fitness of the + copy to the same value as the original. +
        + It is assumed that both chromosomes have the same + topology; while this method will still run if that is not + the case, the effects might be undesirable and null pointer + access might occur.
        +
        +
        Parameters:
        +
        clone - the chromosome to clone.
        +
        +
      • +
      + + + +
        +
      • +

        getNode

        +
        public Node getNode(int row,
        +                    int column)
        +
        Returns a reference to any node, addressed by row and column.
        +
        +
        Parameters:
        +
        row - the row of the node.
        +
        column - the column of the node.
        +
        Returns:
        +
        the addressed node.
        +
        +
      • +
      + + + +
        +
      • +

        getOutput

        +
        public Output getOutput(int index)
        +
        Returns a reference to the indexed output.
        +
        +
        Parameters:
        +
        index - the output index.
        +
        Returns:
        +
        the output reference.
        +
        +
      • +
      + + + +
        +
      • +

        getInput

        +
        public Input getInput(int index)
        +
        Returns a reference to the indexed input.
        +
        +
        Parameters:
        +
        index - the input index.
        +
        Returns:
        +
        the input reference.
        +
        +
      • +
      + + + +
        +
      • +

        getFitness

        +
        public double getFitness()
        +
        +
        Returns:
        +
        the fitness of the chromosome.
        +
        +
      • +
      + + + +
        +
      • +

        setFitness

        +
        public void setFitness(double newFitness)
        +
        Sets the fitness of the chromosome. This method + should be used by the experiment problem when the + population is evaluated in order to assign a fitness + to each individual.
        +
        +
        Parameters:
        +
        newFitness - the fitness to assign.
        +
        +
      • +
      + + + +
        +
      • +

        setInputs

        +
        public void setInputs(java.lang.Object... values)
        +
        Loops through the inputs and sets the specified values, + so that evaluations can be performed. If the number of + elements in the array of values does not match the + number of inputs exactly, an exception is thrown.
        +
        +
        Parameters:
        +
        values - the values the input should take.
        +
        +
      • +
      + + + +
        +
      • +

        getRandomMutableElement

        +
        public MutableElement getRandomMutableElement()
        +
        This method is useful for mutating chromosomes. It returns any + random MutableElement out of the chromosome with equal + probability.
        +
        +
        Returns:
        +
        a random element that can be mutated - node or output.
        +
        +
      • +
      + + + +
        +
      • +

        getRandomConnection

        +
        public Connection getRandomConnection(int column)
        +
        Returns a random allowed connection respecting levels back.
        + This method may always pick inputs, as they can be picked + regardless of the column.
        +
        +
        Parameters:
        +
        column - the column to use as reference.
        +
        Returns:
        +
        a random connection.
        +
        +
      • +
      + + + +
        +
      • +

        getRandomConnection

        +
        public Connection getRandomConnection()
        +
        This method will pick a completely random connection, independently + of levels back, including inputs. It is useful for setting outputs.
        +
        +
        Returns:
        +
        a random connection regardless of levels back.
        +
        +
      • +
      + + + +
        +
      • +

        recomputeActiveNodes

        +
        public void recomputeActiveNodes()
        +
        This causes the list of active nodes to be recomputed lazily (once it is actually requested).
        +
      • +
      + + + +
        +
      • +

        getActiveNodes

        +
        public java.util.ArrayList<Node> getActiveNodes()
        +
        This method computes a list of active nodes (if necessary) and returns it.
        +
        +
        Returns:
        +
        the list of active nodes.
        +
        +
      • +
      + + + +
        +
      • +

        compareGenesTo

        +
        public boolean compareGenesTo(Chromosome chromosome)
        +
        Performs a deep comparison between this chromosome and the provided one. + This is done on a gene-by-gene basis. + + This method returns true if and only if: +
          +
        • the chromosomes being compared are not the same instance;
        • +
        • the connections of the compared chromosomes are not the same instance;
        • +
        • the grid position of the chromosome's elements are the same;
        • +
        +

        + The relationship computed by this method is: +
          +
        • symmetric: a.copyOf(b) == b.copyOf(a);
        • +
        • not reflexive: a.copyOf(a) returns false;
        • +
        • not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + not necessarily true since it is possible that a == c.
        • +
        +
        +
        Parameters:
        +
        chromosome - the chromosome to compare to.
        +
        Returns:
        +
        true if it is a copy of this chromosome, but not the same chromosome.
        +
        +
      • +
      + + + +
        +
      • +

        compareActiveGenesTo

        +
        public boolean compareActiveGenesTo(Chromosome chromosome)
        +
        Does the same as compareGenesto() but only looks + at the active portion of the chromosome.
        +
        +
        Parameters:
        +
        chromosome - the chromosome to compare to.
        +
        Returns:
        +
        true if the two active portions are identical.
        +
        +
      • +
      + + + +
        +
      • +

        printNodes

        +
        public void printNodes()
        +
        Iterates through the nodes and prints all connections and functions. + This is intended for debugging purposes only and does not print to the + GUI console.
        +
      • +
      + + + +
        +
      • +

        getResources

        +
        public Resources getResources()
        +
        +
        Returns:
        +
        a reference to the resources based on which the chromosome was built.
        +
        +
      • +
      + + + +
        +
      • +

        compareTo

        +
        public int compareTo(Chromosome o)
        +
        +
        Specified by:
        +
        compareTo in interface java.lang.Comparable<Chromosome>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/Connection.html b/doc/jcgp/backend/population/Connection.html new file mode 100644 index 0000000..b7b5c07 --- /dev/null +++ b/doc/jcgp/backend/population/Connection.html @@ -0,0 +1,249 @@ + + + + + +Connection + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.population
+

Interface Connection

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    Input, Node
    +
    +
    +
    +
    public interface Connection
    +
    Connection declares the expected behaviour of any + part of a chromosome that can be connected to, specifically + nodes or inputs. Outputs are not connections since they + mark the end of chromosome paths. +

    + This interface provides a way to deal with connections + generically without having to specify whether they are nodes + or inputs. In this way a random connection can be picked and + dealt with more easily, facilitating mutations.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getValue

        +
        java.lang.Object getValue()
        +
        Compute and return the value of this connection. In + the case of inputs no computation is necessary, this + simply returns the value the input is set to. In the + case of nodes, the value is computed based on the + node's function and the value of its own connections.
        +
        +
        Returns:
        +
        the connection's value.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/Gene.html b/doc/jcgp/backend/population/Gene.html new file mode 100644 index 0000000..0a2a9cf --- /dev/null +++ b/doc/jcgp/backend/population/Gene.html @@ -0,0 +1,241 @@ + + + + + +Gene + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.population
+

Class Gene

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    Input, Node, Output
    +
    +
    +
    +
    public abstract class Gene
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Gene() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Gene

        +
        public Gene()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/Input.html b/doc/jcgp/backend/population/Input.html new file mode 100644 index 0000000..1ac3b97 --- /dev/null +++ b/doc/jcgp/backend/population/Input.html @@ -0,0 +1,361 @@ + + + + + +Input + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.population
+

Class Input

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Connection
    +
    +
    +
    +
    public class Input
    +extends java.lang.Object
    +implements Connection
    +
    This is a chromosome input. Inputs are a special + type of connection which simply return a set value. + They do not have connections and instead provide a + starting point for the chromosome's active paths.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Input(int index) +
      Initialises a new input with the current index.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetIndex() 
      java.lang.ObjectgetValue() +
      Compute and return the value of this connection.
      +
      voidsetValue(java.lang.Object newValue) +
      Sets this input's value.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Input

        +
        public Input(int index)
        +
        Initialises a new input with the current index.
        +
        +
        Parameters:
        +
        index - the index of the new input.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setValue

        +
        public void setValue(java.lang.Object newValue)
        +
        Sets this input's value. The new value + will now be returned by this input's + getValue() method.
        +
        +
        Parameters:
        +
        newValue - the value to set.
        +
        +
      • +
      + + + +
        +
      • +

        getIndex

        +
        public int getIndex()
        +
        +
        Returns:
        +
        the input's index.
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public java.lang.Object getValue()
        +
        Description copied from interface: Connection
        +
        Compute and return the value of this connection. In + the case of inputs no computation is necessary, this + simply returns the value the input is set to. In the + case of nodes, the value is computed based on the + node's function and the value of its own connections.
        +
        +
        Specified by:
        +
        getValue in interface Connection
        +
        Returns:
        +
        the connection's value.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/MutableElement.html b/doc/jcgp/backend/population/MutableElement.html new file mode 100644 index 0000000..4af7b7e --- /dev/null +++ b/doc/jcgp/backend/population/MutableElement.html @@ -0,0 +1,306 @@ + + + + + +MutableElement + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.population
+

Interface MutableElement

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    Node, Output
    +
    +
    +
    +
    public interface MutableElement
    +
    MutableElement declares the expected behaviour of any + part of a chromosome that is mutable, more specifically + nodes or outputs. Inputs are not mutable since they don't have + connections or functions. +

    + This interface provides a way to deal with mutable elements + generically without having to specify whether they are nodes + or outputs. In this way a random mutable element can be picked and + dealt with more easily, facilitating mutations.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      booleancopyOf(MutableElement element) +
      Asserts if the specified element is a copy of the elements + this is called on.
      + This method returns true if and only if: + + the elements being compared are not the same instance; + the connections of the compared elements are not the same instance; + the elements have the same function (in the case of Node); + the grid position of the elements themselves are the same; + the grid position of all equivalent connections are the same; + +

      + The relationship computed by this method is: + + symmetric: a.copyOf(b) == b.copyOf(a); + not reflexive: a.copyOf(a) returns false; + not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + not necessarily true since it is possible that a == c. +
      +
      voidsetConnection(int index, + Connection newConnection) +
      This method sets the indexed connection to the specified new connection.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setConnection

        +
        void setConnection(int index,
        +                   Connection newConnection)
        +
        This method sets the indexed connection to the specified new connection. + Implementing classes may choose to ignore the given index (such as in the + case of outputs, which only have one connection).
        +
        +
        Parameters:
        +
        index - the connection index to set.
        +
        newConnection - the chromosome element to connect to.
        +
        +
      • +
      + + + +
        +
      • +

        copyOf

        +
        boolean copyOf(MutableElement element)
        +
        Asserts if the specified element is a copy of the elements + this is called on.
        + This method returns true if and only if: +
          +
        • the elements being compared are not the same instance;
        • +
        • the connections of the compared elements are not the same instance;
        • +
        • the elements have the same function (in the case of Node);
        • +
        • the grid position of the elements themselves are the same;
        • +
        • the grid position of all equivalent connections are the same;
        • +
        +

        + The relationship computed by this method is: +
          +
        • symmetric: a.copyOf(b) == b.copyOf(a);
        • +
        • not reflexive: a.copyOf(a) returns false;
        • +
        • not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + not necessarily true since it is possible that a == c.
        • +
        +
        +
        Parameters:
        +
        element - the mutable element to compare to.
        +
        Returns:
        +
        true if element is a copy of this element.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/Node.html b/doc/jcgp/backend/population/Node.html new file mode 100644 index 0000000..9e7b9a5 --- /dev/null +++ b/doc/jcgp/backend/population/Node.html @@ -0,0 +1,544 @@ + + + + + +Node + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.population
+

Class Node

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Connection, MutableElement
    +
    +
    +
    +
    public class Node
    +extends java.lang.Object
    +implements MutableElement, Connection
    +
    Nodes make up the main part of the chromosome, + where the actual functions are evolved. Each node + contains a function and a number of connections. + The node outputs the result of performing its function + on the values of its connections. Nodes therefore + implement both MutableElement and Connection + since they can be mutated but also connected to. + Nodes are constructed with a fixed number of connections + (determined by the maximum arity of the function set) + and must be reinstantiated if the experiment arity + changes.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Node(Chromosome chromosome, + int row, + int column, + int arity) +
      Constructs a new instance of Node with the + specified parameters.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleancopyOf(MutableElement element) +
      Asserts if the specified element is a copy of the elements + this is called on.
      + This method returns true if and only if: + + the elements being compared are not the same instance; + the connections of the compared elements are not the same instance; + the elements have the same function (in the case of Node); + the grid position of the elements themselves are the same; + the grid position of all equivalent connections are the same; + +

      + The relationship computed by this method is: + + symmetric: a.copyOf(b) == b.copyOf(a); + not reflexive: a.copyOf(a) returns false; + not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + not necessarily true since it is possible that a == c. +
      +
      intgetColumn() 
      ConnectiongetConnection(int index) 
      FunctiongetFunction() 
      intgetRow() 
      java.lang.ObjectgetValue() +
      Compute and return the value of this connection.
      +
      voidinitialise(Function newFunction, + Connection... newConnections) +
      Initialises the node with the specified values.
      +
      voidsetConnection(int index, + Connection newConnection) +
      This method sets the indexed connection to the specified new connection.
      +
      voidsetFunction(Function newFunction) +
      Sets the node function.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Node

        +
        public Node(Chromosome chromosome,
        +            int row,
        +            int column,
        +            int arity)
        +
        Constructs a new instance of Node with the + specified parameters. Nodes must contain their + own row and column for ease of copying.
        +
        +
        Parameters:
        +
        chromosome - the chromosome this node belongs to.
        +
        row - the node's row.
        +
        column - the node's column.
        +
        arity - the maximum arity of the experiment.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setFunction

        +
        public void setFunction(Function newFunction)
        +
        Sets the node function.
        +
        +
        Parameters:
        +
        newFunction - the new function to set.
        +
        +
      • +
      + + + +
        +
      • +

        initialise

        +
        public void initialise(Function newFunction,
        +                       Connection... newConnections)
        +
        Initialises the node with the specified values. + The number of connections passed as argument must + be exactly the same as the experiment arity, or + an IllegalArgumentException will be thrown.
        +
        +
        Parameters:
        +
        newFunction - the node function to set.
        +
        newConnections - the node connections to set.
        +
        +
      • +
      + + + +
        +
      • +

        getColumn

        +
        public int getColumn()
        +
        +
        Returns:
        +
        this node's column.
        +
        +
      • +
      + + + +
        +
      • +

        getRow

        +
        public int getRow()
        +
        +
        Returns:
        +
        this node's row.
        +
        +
      • +
      + + + +
        +
      • +

        getFunction

        +
        public Function getFunction()
        +
        +
        Returns:
        +
        this node's function.
        +
        +
      • +
      + + + +
        +
      • +

        getConnection

        +
        public Connection getConnection(int index)
        +
        +
        Parameters:
        +
        index - the connection to return.
        +
        Returns:
        +
        the indexed connection.
        +
        +
      • +
      + + + +
        +
      • +

        copyOf

        +
        public boolean copyOf(MutableElement element)
        +
        Description copied from interface: MutableElement
        +
        Asserts if the specified element is a copy of the elements + this is called on.
        + This method returns true if and only if: +
          +
        • the elements being compared are not the same instance;
        • +
        • the connections of the compared elements are not the same instance;
        • +
        • the elements have the same function (in the case of Node);
        • +
        • the grid position of the elements themselves are the same;
        • +
        • the grid position of all equivalent connections are the same;
        • +
        +

        + The relationship computed by this method is: +
          +
        • symmetric: a.copyOf(b) == b.copyOf(a);
        • +
        • not reflexive: a.copyOf(a) returns false;
        • +
        • not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + not necessarily true since it is possible that a == c.
        • +
        +
        +
        Specified by:
        +
        copyOf in interface MutableElement
        +
        Parameters:
        +
        element - the mutable element to compare to.
        +
        Returns:
        +
        true if element is a copy of this element.
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public java.lang.Object getValue()
        +
        Description copied from interface: Connection
        +
        Compute and return the value of this connection. In + the case of inputs no computation is necessary, this + simply returns the value the input is set to. In the + case of nodes, the value is computed based on the + node's function and the value of its own connections.
        +
        +
        Specified by:
        +
        getValue in interface Connection
        +
        Returns:
        +
        the connection's value.
        +
        +
      • +
      + + + +
        +
      • +

        setConnection

        +
        public void setConnection(int index,
        +                          Connection newConnection)
        +
        Description copied from interface: MutableElement
        +
        This method sets the indexed connection to the specified new connection. + Implementing classes may choose to ignore the given index (such as in the + case of outputs, which only have one connection).
        +
        +
        Specified by:
        +
        setConnection in interface MutableElement
        +
        Parameters:
        +
        index - the connection index to set.
        +
        newConnection - the chromosome element to connect to.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/Output.html b/doc/jcgp/backend/population/Output.html new file mode 100644 index 0000000..38033e2 --- /dev/null +++ b/doc/jcgp/backend/population/Output.html @@ -0,0 +1,447 @@ + + + + + +Output + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.population
+

Class Output

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    MutableElement
    +
    +
    +
    +
    public class Output
    +extends java.lang.Object
    +implements MutableElement
    +
    This is a chromosome output. Outputs are a special + type of mutable element with a single connection. It + returns the value of its single connection, but it + may not be connected to - it terminates a chromosome + active connection path.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Output(Chromosome chromosome, + int index) +
      Makes a new instance of Output with the + specified arguments.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      java.lang.Objectcalculate() 
      booleancopyOf(MutableElement m) +
      Asserts if the specified element is a copy of the elements + this is called on.
      + This method returns true if and only if: + + the elements being compared are not the same instance; + the connections of the compared elements are not the same instance; + the elements have the same function (in the case of Node); + the grid position of the elements themselves are the same; + the grid position of all equivalent connections are the same; + +

      + The relationship computed by this method is: + + symmetric: a.copyOf(b) == b.copyOf(a); + not reflexive: a.copyOf(a) returns false; + not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + not necessarily true since it is possible that a == c. +
      +
      voidgetActiveNodes(java.util.ArrayList<Node> activeNodes) 
      intgetIndex() 
      ConnectiongetSource() 
      voidsetConnection(int index, + Connection newConnection) +
      When mutating an output, the index parameter + is simply ignored and the output source is + set.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Output

        +
        public Output(Chromosome chromosome,
        +              int index)
        +
        Makes a new instance of Output with the + specified arguments.
        +
        +
        Parameters:
        +
        chromosome - the chromosome this output belongs to.
        +
        index - the output index.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        calculate

        +
        public java.lang.Object calculate()
        +
        +
        Returns:
        +
        the value of the output's source.
        +
        +
      • +
      + + + +
        +
      • +

        getIndex

        +
        public int getIndex()
        +
      • +
      + + + +
        +
      • +

        getSource

        +
        public Connection getSource()
        +
      • +
      + + + +
        +
      • +

        getActiveNodes

        +
        public void getActiveNodes(java.util.ArrayList<Node> activeNodes)
        +
      • +
      + + + + + + + +
        +
      • +

        copyOf

        +
        public boolean copyOf(MutableElement m)
        +
        Description copied from interface: MutableElement
        +
        Asserts if the specified element is a copy of the elements + this is called on.
        + This method returns true if and only if: +
          +
        • the elements being compared are not the same instance;
        • +
        • the connections of the compared elements are not the same instance;
        • +
        • the elements have the same function (in the case of Node);
        • +
        • the grid position of the elements themselves are the same;
        • +
        • the grid position of all equivalent connections are the same;
        • +
        +

        + The relationship computed by this method is: +
          +
        • symmetric: a.copyOf(b) == b.copyOf(a);
        • +
        • not reflexive: a.copyOf(a) returns false;
        • +
        • not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is + not necessarily true since it is possible that a == c.
        • +
        +
        +
        Specified by:
        +
        copyOf in interface MutableElement
        +
        Parameters:
        +
        m - the mutable element to compare to.
        +
        Returns:
        +
        true if element is a copy of this element.
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/Population.html b/doc/jcgp/backend/population/Population.html new file mode 100644 index 0000000..b28fd28 --- /dev/null +++ b/doc/jcgp/backend/population/Population.html @@ -0,0 +1,411 @@ + + + + + +Population + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.population
+

Class Population

+
+
+ +
+
    +
  • +
    +
    +
    public class Population
    +extends java.lang.Object
    +
    This class primarily holds a collection of chromosomes. In addition, + it provides a few utility methods for manipulating and copying + chromosomes, useful for evolutionary strategies. +

    + copyChromosome() is used to create copies of chromosomes, + though it is also possible to create a new instance of population + directly from a seed chromosome using the right constructor. +

    + For convenience, a random chromosome can be retrieved using + getRandomChromosome(), which is guaranteed to use the + experiment's specified seed. If an entirely random population + is needed, reinitialise() should be used to randomise + all chromosomes without creating a new instance of Population.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Population(Chromosome parent, + Resources resources) +
      Initialise a population of copies of the given chromosome.
      +
      Population(Resources resources) +
      Initialise a random population according to the parameters specified + in the resources.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidcopyChromosome(int source, + int target) +
      Copy a chromosome into a different position.
      +
      Chromosomeget(int index) +
      Returns the indexed chromosome.
      +
      ChromosomegetRandomChromosome() 
      voidreinitialise() +
      Loop through all chromosomes and randomise all connections + and functions.
      +
      voidsort() +
      Sorts the population in ascending order of fitness quality.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Population

        +
        public Population(Resources resources)
        +
        Initialise a random population according to the parameters specified + in the resources.
        +
        +
        Parameters:
        +
        resources - the experiment's resources.
        +
        +
      • +
      + + + +
        +
      • +

        Population

        +
        public Population(Chromosome parent,
        +                  Resources resources)
        +
        Initialise a population of copies of the given chromosome.
        +
        +
        Parameters:
        +
        parent - the chromosome to use as a model.
        +
        resources - a reference to the experiment's resources.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        get

        +
        public Chromosome get(int index)
        +
        Returns the indexed chromosome.
        +
        +
        Parameters:
        +
        index - the chromosome to return.
        +
        Returns:
        +
        the indexed chromosome.
        +
        +
      • +
      + + + +
        +
      • +

        getRandomChromosome

        +
        public Chromosome getRandomChromosome()
        +
        +
        Returns:
        +
        a random chromosome from this population.
        +
        +
      • +
      + + + +
        +
      • +

        copyChromosome

        +
        public void copyChromosome(int source,
        +                           int target)
        +
        Copy a chromosome into a different position. + After this returns, the target chromosome has + identical connections and functions to the source + one, though they are separate instances. + + This method does nothing if source == target.
        +
        +
        Parameters:
        +
        source - the chromosome to copy from.
        +
        target - the chromosome to copy to.
        +
        +
      • +
      + + + +
        +
      • +

        reinitialise

        +
        public void reinitialise()
        +
        Loop through all chromosomes and randomise all connections + and functions.
        +
      • +
      + + + +
        +
      • +

        sort

        +
        public void sort()
        +
        Sorts the population in ascending order of fitness quality. + What this means is that the best fitness chromosome will be + in the last position, even though it might have the lowest + fitness value. Fitness orientation as specified in the resources + is respected.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/class-use/Chromosome.html b/doc/jcgp/backend/population/class-use/Chromosome.html new file mode 100644 index 0000000..4245432 --- /dev/null +++ b/doc/jcgp/backend/population/class-use/Chromosome.html @@ -0,0 +1,340 @@ + + + + + +Uses of Class jcgp.backend.population.Chromosome + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.population.Chromosome

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/class-use/Connection.html b/doc/jcgp/backend/population/class-use/Connection.html new file mode 100644 index 0000000..72f2fb4 --- /dev/null +++ b/doc/jcgp/backend/population/class-use/Connection.html @@ -0,0 +1,301 @@ + + + + + +Uses of Interface jcgp.backend.population.Connection + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Interface
jcgp.backend.population.Connection

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/class-use/Gene.html b/doc/jcgp/backend/population/class-use/Gene.html new file mode 100644 index 0000000..d042783 --- /dev/null +++ b/doc/jcgp/backend/population/class-use/Gene.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class jcgp.backend.population.Gene + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.population.Gene

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/class-use/Input.html b/doc/jcgp/backend/population/class-use/Input.html new file mode 100644 index 0000000..61c38ce --- /dev/null +++ b/doc/jcgp/backend/population/class-use/Input.html @@ -0,0 +1,187 @@ + + + + + +Uses of Class jcgp.backend.population.Input + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.population.Input

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/class-use/MutableElement.html b/doc/jcgp/backend/population/class-use/MutableElement.html new file mode 100644 index 0000000..77bf35f --- /dev/null +++ b/doc/jcgp/backend/population/class-use/MutableElement.html @@ -0,0 +1,228 @@ + + + + + +Uses of Interface jcgp.backend.population.MutableElement + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Interface
jcgp.backend.population.MutableElement

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/class-use/Node.html b/doc/jcgp/backend/population/class-use/Node.html new file mode 100644 index 0000000..6dd76ee --- /dev/null +++ b/doc/jcgp/backend/population/class-use/Node.html @@ -0,0 +1,244 @@ + + + + + +Uses of Class jcgp.backend.population.Node + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.population.Node

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/class-use/Output.html b/doc/jcgp/backend/population/class-use/Output.html new file mode 100644 index 0000000..19bd12a --- /dev/null +++ b/doc/jcgp/backend/population/class-use/Output.html @@ -0,0 +1,202 @@ + + + + + +Uses of Class jcgp.backend.population.Output + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.population.Output

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/class-use/Population.html b/doc/jcgp/backend/population/class-use/Population.html new file mode 100644 index 0000000..d98d156 --- /dev/null +++ b/doc/jcgp/backend/population/class-use/Population.html @@ -0,0 +1,265 @@ + + + + + +Uses of Class jcgp.backend.population.Population + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.population.Population

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/package-frame.html b/doc/jcgp/backend/population/package-frame.html new file mode 100644 index 0000000..f000a2f --- /dev/null +++ b/doc/jcgp/backend/population/package-frame.html @@ -0,0 +1,29 @@ + + + + + +jcgp.backend.population + + + + + +

jcgp.backend.population

+
+

Interfaces

+ +

Classes

+ +
+ + diff --git a/doc/jcgp/backend/population/package-summary.html b/doc/jcgp/backend/population/package-summary.html new file mode 100644 index 0000000..ac0ec7b --- /dev/null +++ b/doc/jcgp/backend/population/package-summary.html @@ -0,0 +1,196 @@ + + + + + +jcgp.backend.population + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.population

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/package-tree.html b/doc/jcgp/backend/population/package-tree.html new file mode 100644 index 0000000..d436925 --- /dev/null +++ b/doc/jcgp/backend/population/package-tree.html @@ -0,0 +1,146 @@ + + + + + +jcgp.backend.population Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.population

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/population/package-use.html b/doc/jcgp/backend/population/package-use.html new file mode 100644 index 0000000..0c65c85 --- /dev/null +++ b/doc/jcgp/backend/population/package-use.html @@ -0,0 +1,338 @@ + + + + + +Uses of Package jcgp.backend.population + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.population

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/Console.html b/doc/jcgp/backend/resources/Console.html new file mode 100644 index 0000000..e920f61 --- /dev/null +++ b/doc/jcgp/backend/resources/Console.html @@ -0,0 +1,286 @@ + + + + + +Console + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.resources
+

Interface Console

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    GUIConsole
    +
    +
    +
    +
    public interface Console
    +
    Defines the basic model for a console. +

    + This interface will typically be implemented by a GUI class + and GUI packages such as JavaFX are usually single-threaded. + If the CGP experiment is running on a side thread (which would + be the case so as not to block the entire GUI), updating a GUI + element such as the console from a different thread would lead + to concurrency problems. For this reason, this console is + intended to buffer printed messages and only output them to the + actual GUI control when flush() is called (which is + guaranteed to be done in a thread-safe way by the library).
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethod and Description
      voidflush() +
      Outputs all buffered messages to the console.
      +
      voidprint(java.lang.String s) +
      Prints a string without line break at the end (unless the string + itself specifies one).
      +
      voidprintln(java.lang.String s) +
      Prints a string and automatically adds a line break at the end.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        println

        +
        void println(java.lang.String s)
        +
        Prints a string and automatically adds a line break at the end.
        +
        +
        Parameters:
        +
        s - the string to print.
        +
        +
      • +
      + + + +
        +
      • +

        print

        +
        void print(java.lang.String s)
        +
        Prints a string without line break at the end (unless the string + itself specifies one).
        +
        +
        Parameters:
        +
        s - the string to print.
        +
        +
      • +
      + + + +
        +
      • +

        flush

        +
        void flush()
        +
        Outputs all buffered messages to the console. Only necessary + if concurrent accesses must be avoided.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/ModifiableResources.html b/doc/jcgp/backend/resources/ModifiableResources.html new file mode 100644 index 0000000..c0295f3 --- /dev/null +++ b/doc/jcgp/backend/resources/ModifiableResources.html @@ -0,0 +1,819 @@ + + + + + +ModifiableResources + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.resources
+

Class ModifiableResources

+
+
+ +
+
    +
  • +
    +
    +
    public class ModifiableResources
    +extends Resources
    +
    This subclass of Resources allows modifications to be made. + A read-only cast of this class is passed to modules for safety, + and only classes with access to a JCGP instance may modify + the resources.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ModifiableResources

        +
        public ModifiableResources()
        +
        Creates an instance of this class and initialises + all base parameters to default values. See + createBaseParameters for the exact parameter + initialisation.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setRows

        +
        public void setRows(int rows)
        +
        +
        Parameters:
        +
        rows - the number of rows to set.
        +
        +
      • +
      + + + +
        +
      • +

        setColumns

        +
        public void setColumns(int columns)
        +
        +
        Parameters:
        +
        columns - the number of columns to set.
        +
        +
      • +
      + + + +
        +
      • +

        setInputs

        +
        public void setInputs(int inputs)
        +
        +
        Parameters:
        +
        inputs - the number of inputs to set.
        +
        +
      • +
      + + + +
        +
      • +

        setOutputs

        +
        public void setOutputs(int outputs)
        +
        +
        Parameters:
        +
        outputs - the number of outputs to set.
        +
        +
      • +
      + + + +
        +
      • +

        setPopulationSize

        +
        public void setPopulationSize(int populationSize)
        +
        +
        Parameters:
        +
        populationSize - the population size to set.
        +
        +
      • +
      + + + +
        +
      • +

        setLevelsBack

        +
        public void setLevelsBack(int levelsBack)
        +
        +
        Parameters:
        +
        levelsBack - the levels back to set.
        +
        +
      • +
      + + + +
        +
      • +

        setCurrentGeneration

        +
        public void setCurrentGeneration(int currentGeneration)
        +
        +
        Parameters:
        +
        currentGeneration - the current generation to set.
        +
        +
      • +
      + + + +
        +
      • +

        incrementGeneration

        +
        public void incrementGeneration()
        +
        Adds 1 to the current generation.
        +
      • +
      + + + +
        +
      • +

        setGenerations

        +
        public void setGenerations(int generations)
        +
        +
        Parameters:
        +
        generations - the total generations to set.
        +
        +
      • +
      + + + +
        +
      • +

        setCurrentRun

        +
        public void setCurrentRun(int currentRun)
        +
        +
        Parameters:
        +
        currentRun - the current run to set.
        +
        +
      • +
      + + + +
        +
      • +

        incrementRun

        +
        public void incrementRun()
        +
        Adds 1 to the current generation.
        +
      • +
      + + + +
        +
      • +

        setRuns

        +
        public void setRuns(int runs)
        +
        +
        Parameters:
        +
        runs - the total runs to set.
        +
        +
      • +
      + + + +
        +
      • +

        setArity

        +
        public void setArity(int arity)
        +
        This is called automatically by the experiment when the arity changes.
        +
        +
        Parameters:
        +
        arity - the arity to set.
        +
        +
      • +
      + + + +
        +
      • +

        setSeed

        +
        public void setSeed(int seed)
        +
        +
        Parameters:
        +
        seed - the seed to set.
        +
        +
      • +
      + + + +
        +
      • +

        setReportInterval

        +
        public void setReportInterval(int report)
        +
        +
        Parameters:
        +
        report - the report interval to set.
        +
        +
      • +
      + + + +
        +
      • +

        setFitnessOrientation

        +
        public void setFitnessOrientation(BestFitness newOrientation)
        +
        +
        Parameters:
        +
        newOrientation - the new orientation to set.
        +
        +
      • +
      + + + +
        +
      • +

        getRowsParameter

        +
        public IntegerParameter getRowsParameter()
        +
        +
        Returns:
        +
        the rows parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getColumnsParameter

        +
        public IntegerParameter getColumnsParameter()
        +
        +
        Returns:
        +
        the columns parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getInputsParameter

        +
        public IntegerParameter getInputsParameter()
        +
        +
        Returns:
        +
        the inputs parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getOutputsParameter

        +
        public IntegerParameter getOutputsParameter()
        +
        +
        Returns:
        +
        the outputs parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getPopulationSizeParameter

        +
        public IntegerParameter getPopulationSizeParameter()
        +
        +
        Returns:
        +
        the population size parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getLevelsBackParameter

        +
        public IntegerParameter getLevelsBackParameter()
        +
        +
        Returns:
        +
        the levels back parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentGenerationParameter

        +
        public IntegerParameter getCurrentGenerationParameter()
        +
        +
        Returns:
        +
        the current generation parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getGenerationsParameter

        +
        public IntegerParameter getGenerationsParameter()
        +
        +
        Returns:
        +
        the total generations parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentRunParameter

        +
        public IntegerParameter getCurrentRunParameter()
        +
        +
        Returns:
        +
        the current run parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getRunsParameter

        +
        public IntegerParameter getRunsParameter()
        +
        +
        Returns:
        +
        the total runs parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getArityParameter

        +
        public IntegerParameter getArityParameter()
        +
        +
        Returns:
        +
        the arity parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getSeedParameter

        +
        public IntegerParameter getSeedParameter()
        +
        +
        Returns:
        +
        the seed parameter.
        +
        +
      • +
      + + + +
        +
      • +

        getReportIntervalParameter

        +
        public IntegerParameter getReportIntervalParameter()
        +
        +
        Returns:
        +
        the report interval parameter.
        +
        +
      • +
      + + + +
        +
      • +

        setFunctionSet

        +
        public void setFunctionSet(FunctionSet functionSet)
        +
        Update the current function set.
        +
        +
        Parameters:
        +
        functionSet - the new function set.
        +
        +
      • +
      + + + +
        +
      • +

        setConsole

        +
        public void setConsole(Console console)
        +
        This can be set to null if no extra console is desired.
        +
        +
        Parameters:
        +
        console - the extra console for the experiment to use.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/Resources.html b/doc/jcgp/backend/resources/Resources.html new file mode 100644 index 0000000..0f7e40a --- /dev/null +++ b/doc/jcgp/backend/resources/Resources.html @@ -0,0 +1,804 @@ + + + + + +Resources + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.resources
+

Class Resources

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    ModifiableResources
    +
    +
    +
    +
    public class Resources
    +extends java.lang.Object
    +
    Encapsulates all of the resources based on which the program operates. + Each instance of JCGP contains a single instance of Resources. +

    + The experiment's Resources object is passed to modules as the program operates, and + the actual parameter values can be obtained using getter methods. Note that, for code brevity, + this class's getters do not start with the word "get". For instance, to get the number of rows, + one would use rows() instead of getRows() which doesn't exist. + The fitness orientation of the problem being solved can also be retrieved using fitnessOrientation(). + Evolutionary strategies will typically use this to perform selection. +

    + In addition to parameters, this class also offers utility methods. Any necessary random numbers + should be obtained using getRandomInt() and getRandomDouble() as these methods + use a particular Random object guaranteed to generate random numbers based on the seed + parameter. Functions from the selected function set can be obtained through this class as well. + Finally, printing to the console should be done via the resources using the report and print + methods, so that these prints also get sent to the GUI console (if one is present).
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Parameter
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      Resources() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intarity() 
      intcolumns() 
      intcurrentGeneration() 
      intcurrentRun() 
      BestFitnessfitnessOrientation() 
      intgenerations() 
      FunctiongetFunction(int index) +
      Gets the indexed function out of the + complete set of functions.
      +
      intgetFunctionIndex(Function function) +
      Returns the index of a specified function.
      +
      FunctionSetgetFunctionSet() 
      doublegetRandomDouble() +
      Gets the next random integer using the experiment's random + number generator.
      +
      doublegetRandomDouble(int limit) +
      Gets the next random double using the experiment's random + number generator.
      +
      FunctiongetRandomFunction() +
      Gets a random allowed function from the problem function set.
      +
      intgetRandomInt(int limit) +
      Gets the next random integer using the experiment's random + number generator.
      +
      intinputs() 
      intlevelsBack() 
      intnodes() 
      intoutputs() 
      intpopulationSize() 
      voidprint(java.lang.String message) +
      Prints a message to the consoles ignoring + report interval.
      +
      voidprintln(java.lang.String message) +
      Prints a message to the consoles ignoring + report interval.
      +
      voidreport(java.lang.String message) +
      Prints a message to the consoles taking into account the + report interval parameter.
      +
      intreportInterval() 
      voidreportln(java.lang.String message) +
      Prints a message to the consoles taking into account the + report interval parameter.
      +
      introws() 
      intruns() 
      intseed() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Resources

        +
        public Resources()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        rows

        +
        public int rows()
        +
        +
        Returns:
        +
        the number of rows.
        +
        +
      • +
      + + + +
        +
      • +

        columns

        +
        public int columns()
        +
        +
        Returns:
        +
        the number of columns.
        +
        +
      • +
      + + + +
        +
      • +

        inputs

        +
        public int inputs()
        +
        +
        Returns:
        +
        the number of inputs.
        +
        +
      • +
      + + + +
        +
      • +

        outputs

        +
        public int outputs()
        +
        +
        Returns:
        +
        the number of outputs.
        +
        +
      • +
      + + + +
        +
      • +

        populationSize

        +
        public int populationSize()
        +
        +
        Returns:
        +
        the population size.
        +
        +
      • +
      + + + +
        +
      • +

        levelsBack

        +
        public int levelsBack()
        +
        +
        Returns:
        +
        the levels back value.
        +
        +
      • +
      + + + +
        +
      • +

        nodes

        +
        public int nodes()
        +
        +
        Returns:
        +
        the total number of nodes.
        +
        +
      • +
      + + + +
        +
      • +

        currentGeneration

        +
        public int currentGeneration()
        +
        +
        Returns:
        +
        the current generation.
        +
        +
      • +
      + + + +
        +
      • +

        generations

        +
        public int generations()
        +
        +
        Returns:
        +
        the total number of generations.
        +
        +
      • +
      + + + +
        +
      • +

        currentRun

        +
        public int currentRun()
        +
        +
        Returns:
        +
        the current run.
        +
        +
      • +
      + + + +
        +
      • +

        runs

        +
        public int runs()
        +
        +
        Returns:
        +
        the total number of runs.
        +
        +
      • +
      + + + +
        +
      • +

        arity

        +
        public int arity()
        +
        +
        Returns:
        +
        the maximum arity out of the function set.
        +
        +
      • +
      + + + +
        +
      • +

        seed

        +
        public int seed()
        +
        +
        Returns:
        +
        the random seed being used.
        +
        +
      • +
      + + + +
        +
      • +

        reportInterval

        +
        public int reportInterval()
        +
        +
        Returns:
        +
        the report interval.
        +
        +
      • +
      + + + +
        +
      • +

        fitnessOrientation

        +
        public BestFitness fitnessOrientation()
        +
        +
        Returns:
        +
        the fitness orientation.
        +
        +
      • +
      + + + +
        +
      • +

        getRandomInt

        +
        public int getRandomInt(int limit)
        +
        Gets the next random integer using the experiment's random + number generator. The integer returned will be between 0 (inclusive) + and limit (exclusive).
        +
        +
        Parameters:
        +
        limit - the limit value.
        +
        Returns:
        +
        a random integer between 0 and limit.
        +
        +
      • +
      + + + +
        +
      • +

        getRandomDouble

        +
        public double getRandomDouble(int limit)
        +
        Gets the next random double using the experiment's random + number generator. The double returned will be between 0 (inclusive) + and limit (exclusive).
        +
        +
        Parameters:
        +
        limit - the limit value.
        +
        Returns:
        +
        a random double between 0 and limit.
        +
        +
      • +
      + + + +
        +
      • +

        getRandomDouble

        +
        public double getRandomDouble()
        +
        Gets the next random integer using the experiment's random + number generator. The integer returned will be between 0 (inclusive) + and 1 (exclusive).
        +
        +
        Returns:
        +
        a random integer between 0 and 1.
        +
        +
      • +
      + + + +
        +
      • +

        getRandomFunction

        +
        public Function getRandomFunction()
        +
        Gets a random allowed function from the problem function set. + This function uses getRandomInt() to choose the random + function.
        +
        +
        Returns:
        +
        a random allowed function.
        +
        +
      • +
      + + + +
        +
      • +

        getFunction

        +
        public Function getFunction(int index)
        +
        Gets the indexed function out of the + complete set of functions.
        +
        +
        Parameters:
        +
        index - the function to return.
        +
        Returns:
        +
        the indexed function.
        +
        +
      • +
      + + + +
        +
      • +

        getFunctionSet

        +
        public FunctionSet getFunctionSet()
        +
        +
        Returns:
        +
        the problem's function set.
        +
        +
      • +
      + + + +
        +
      • +

        getFunctionIndex

        +
        public int getFunctionIndex(Function function)
        +
        Returns the index of a specified function. If the function is not found, + -1 is returned.
        +
        +
        Parameters:
        +
        function - the function with unknown index.
        +
        Returns:
        +
        the index of the function, or -1 if it was not found.
        +
        +
      • +
      + + + +
        +
      • +

        reportln

        +
        public void reportln(java.lang.String message)
        +
        Prints a message to the consoles taking into account the + report interval parameter. If no reports are allowed in + the current generation, this does nothing. +
        + This method automatically appends a line break to the message + being printed.
        +
        +
        Parameters:
        +
        message - the message to print.
        +
        +
      • +
      + + + +
        +
      • +

        report

        +
        public void report(java.lang.String message)
        +
        Prints a message to the consoles taking into account the + report interval parameter. If no reports are allowed in + the current generation, this does nothing. +
        + This method does not append a line break to the message + being printed.
        +
        +
        Parameters:
        +
        message - the message to print.
        +
        +
      • +
      + + + +
        +
      • +

        println

        +
        public void println(java.lang.String message)
        +
        Prints a message to the consoles ignoring + report interval. In other words, messages printed + using this method will always appear (though the + GUI console will still need to be flushed). +
        + This method automatically appends a line break to the message + being printed.
        +
        +
        Parameters:
        +
        message - the message to print.
        +
        +
      • +
      + + + +
        +
      • +

        print

        +
        public void print(java.lang.String message)
        +
        Prints a message to the consoles ignoring + report interval. In other words, messages printed + using this method will always appear (though the + GUI console will still need to be flushed). +
        + This method does not append a line break to the message + being printed.
        +
        +
        Parameters:
        +
        message - the message to print.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/class-use/Console.html b/doc/jcgp/backend/resources/class-use/Console.html new file mode 100644 index 0000000..ec17f31 --- /dev/null +++ b/doc/jcgp/backend/resources/class-use/Console.html @@ -0,0 +1,214 @@ + + + + + +Uses of Interface jcgp.backend.resources.Console + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Interface
jcgp.backend.resources.Console

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/class-use/ModifiableResources.html b/doc/jcgp/backend/resources/class-use/ModifiableResources.html new file mode 100644 index 0000000..e2cdfe5 --- /dev/null +++ b/doc/jcgp/backend/resources/class-use/ModifiableResources.html @@ -0,0 +1,234 @@ + + + + + +Uses of Class jcgp.backend.resources.ModifiableResources + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.resources.ModifiableResources

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/class-use/Resources.html b/doc/jcgp/backend/resources/class-use/Resources.html new file mode 100644 index 0000000..823711d --- /dev/null +++ b/doc/jcgp/backend/resources/class-use/Resources.html @@ -0,0 +1,379 @@ + + + + + +Uses of Class jcgp.backend.resources.Resources + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.resources.Resources

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/package-frame.html b/doc/jcgp/backend/resources/package-frame.html new file mode 100644 index 0000000..7ebf77e --- /dev/null +++ b/doc/jcgp/backend/resources/package-frame.html @@ -0,0 +1,25 @@ + + + + + +jcgp.backend.resources + + + + + +

jcgp.backend.resources

+
+

Interfaces

+ +

Classes

+ +
+ + diff --git a/doc/jcgp/backend/resources/package-summary.html b/doc/jcgp/backend/resources/package-summary.html new file mode 100644 index 0000000..baef3b5 --- /dev/null +++ b/doc/jcgp/backend/resources/package-summary.html @@ -0,0 +1,167 @@ + + + + + +jcgp.backend.resources + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.resources

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/package-tree.html b/doc/jcgp/backend/resources/package-tree.html new file mode 100644 index 0000000..c3efe01 --- /dev/null +++ b/doc/jcgp/backend/resources/package-tree.html @@ -0,0 +1,145 @@ + + + + + +jcgp.backend.resources Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.resources

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/resources/package-use.html b/doc/jcgp/backend/resources/package-use.html new file mode 100644 index 0000000..f9efaf7 --- /dev/null +++ b/doc/jcgp/backend/resources/package-use.html @@ -0,0 +1,326 @@ + + + + + +Uses of Package jcgp.backend.resources + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.resources

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/statistics/RunEntry.html b/doc/jcgp/backend/statistics/RunEntry.html new file mode 100644 index 0000000..102e331 --- /dev/null +++ b/doc/jcgp/backend/statistics/RunEntry.html @@ -0,0 +1,354 @@ + + + + + +RunEntry + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.statistics
+

Class RunEntry

+
+
+ +
+
    +
  • +
    +
    +
    public class RunEntry
    +extends java.lang.Object
    +
    This class encapsulates the data contained in a log entry. +

    + Once constructed, data can only be retrieved. Note that + the generation argument in the constructor (and consequently + the value returned by getGeneration() refer to the + last generation when improvement occurred.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    StatisticsLogger
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      RunEntry(int generation, + double fitness, + int active, + boolean successful) +
      Creates a new run entry for a logger.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RunEntry

        +
        public RunEntry(int generation,
        +                double fitness,
        +                int active,
        +                boolean successful)
        +
        Creates a new run entry for a logger.
        +
        +
        Parameters:
        +
        generation - the generation when fitness improvement last occurred.
        +
        fitness - the best fitness achieved.
        +
        active - the number of active nodes in the best solution found.
        +
        successful - whether or not the run found a perfect solution.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGeneration

        +
        public int getGeneration()
        +
        +
        Returns:
        +
        the generation when improvement last occurred.
        +
        +
      • +
      + + + +
        +
      • +

        getFitness

        +
        public double getFitness()
        +
        +
        Returns:
        +
        the best fitness achieved during the run.
        +
        +
      • +
      + + + +
        +
      • +

        isSuccessful

        +
        public boolean isSuccessful()
        +
        +
        Returns:
        +
        true if the run was successful.
        +
        +
      • +
      + + + +
        +
      • +

        getActiveNodes

        +
        public int getActiveNodes()
        +
        +
        Returns:
        +
        the number of active nodes in the best solution found.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/statistics/StatisticsLogger.html b/doc/jcgp/backend/statistics/StatisticsLogger.html new file mode 100644 index 0000000..4c80b52 --- /dev/null +++ b/doc/jcgp/backend/statistics/StatisticsLogger.html @@ -0,0 +1,562 @@ + + + + + +StatisticsLogger + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.backend.statistics
+

Class StatisticsLogger

+
+
+ +
+
    +
  • +
    +
    +
    public class StatisticsLogger
    +extends java.lang.Object
    +
    This is a utility class for logging experiment statistics when doing multiple runs. +

    + Information about each run is added via the logRun() method. The many getters + can be used to obtain statistics about the logged runs, such as success rate and average + fitness. +

    + JCGP uses this class to perform its logging and print out experiment data at the end.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      StatisticsLogger() +
      Create a new statistics logger, use this when resetting is necessary.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      doublegetAverageActiveNodes() +
      Averages the number of active nodes in the + best chromosomes obtained across all runs.
      +
      doublegetAverageActiveNodesStdDev() +
      Calculates the standard deviation of + the number of active nodes in the best solution + in each run.
      +
      doublegetAverageFitness() +
      Averages the best fitness obtained in each run.
      +
      doublegetAverageFitnessStdDev() +
      Calculates the standard deviation of + the best fitness obtained in each run.
      +
      doublegetAverageGenerations() +
      Calculates the average generation out of all runs.
      +
      doublegetAverageGenerationsStdDev() +
      Calculates the standard deviation of + the average number of generations in + each run.
      +
      doublegetAverageSuccessfulGenerations() +
      Calculates the average generation out of successful runs only.
      +
      doublegetAverageSuccessfulGenerationsStdDev() +
      Calculates the standard deviation of + the average number of generations in + each run where a perfect solution was found.
      +
      doublegetHighestFitness() 
      doublegetLowestFitness() 
      intgetSuccessfulRuns() 
      doublegetSuccessRate() +
      Calculates the ratio of successful runs (runs where + a perfect solution was found) to total number of runs.
      +
      voidlogRun(int generation, + double fitness, + int active, + boolean successful) +
      Log a new run.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StatisticsLogger

        +
        public StatisticsLogger()
        +
        Create a new statistics logger, use this when resetting is necessary.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        logRun

        +
        public void logRun(int generation,
        +                   double fitness,
        +                   int active,
        +                   boolean successful)
        +
        Log a new run. Calling any of the statistics getters will + now take this logged run into account as well as all previously + logged runs.
        +
        +
        Parameters:
        +
        generation - the last generation when improvement occurred.
        +
        fitness - the best fitness achieved in the run.
        +
        active - the number of active nodes in the best chromosome found.
        +
        successful - true if a perfect solution was found, false if otherwise.
        +
        +
      • +
      + + + +
        +
      • +

        getAverageFitness

        +
        public double getAverageFitness()
        +
        Averages the best fitness obtained in each run.
        +
        +
        Returns:
        +
        the average fitness.
        +
        +
      • +
      + + + +
        +
      • +

        getAverageFitnessStdDev

        +
        public double getAverageFitnessStdDev()
        +
        Calculates the standard deviation of + the best fitness obtained in each run.
        +
        +
        Returns:
        +
        the standard deviation of average fitnesses.
        +
        +
      • +
      + + + +
        +
      • +

        getAverageActiveNodes

        +
        public double getAverageActiveNodes()
        +
        Averages the number of active nodes in the + best chromosomes obtained across all runs.
        +
        +
        Returns:
        +
        the average number of active nodes.
        +
        +
      • +
      + + + +
        +
      • +

        getAverageActiveNodesStdDev

        +
        public double getAverageActiveNodesStdDev()
        +
        Calculates the standard deviation of + the number of active nodes in the best solution + in each run.
        +
        +
        Returns:
        +
        the standard deviation of active node counts.
        +
        +
      • +
      + + + +
        +
      • +

        getAverageGenerations

        +
        public double getAverageGenerations()
        +
        Calculates the average generation out of all runs. + The generation value in each run corresponds to the + last generation in which improvement happened. +

        + Note that this method includes runs where no perfect + solution was found. For the average number of generations + for perfect solutions only, use getAverageSuccessfulGenerations.
        +
        +
        Returns:
        +
        the average number of generations.
        +
        +
      • +
      + + + +
        +
      • +

        getAverageGenerationsStdDev

        +
        public double getAverageGenerationsStdDev()
        +
        Calculates the standard deviation of + the average number of generations in + each run.
        +
        +
        Returns:
        +
        the standard deviation of the number of generations.
        +
        +
      • +
      + + + +
        +
      • +

        getHighestFitness

        +
        public double getHighestFitness()
        +
        +
        Returns:
        +
        the highest fitness across all runs.
        +
        +
      • +
      + + + +
        +
      • +

        getLowestFitness

        +
        public double getLowestFitness()
        +
        +
        Returns:
        +
        the lowest fitness across all runs.
        +
        +
      • +
      + + + +
        +
      • +

        getSuccessfulRuns

        +
        public int getSuccessfulRuns()
        +
        +
        Returns:
        +
        the number of runs in which a perfect solution was found.
        +
        +
      • +
      + + + +
        +
      • +

        getSuccessRate

        +
        public double getSuccessRate()
        +
        Calculates the ratio of successful runs (runs where + a perfect solution was found) to total number of runs. + A double-precision value between 0 and 1 is returned, + where 0 means 0% success rate and 1 means 100% success rate.
        +
        +
        Returns:
        +
        the success rate across all runs.
        +
        +
      • +
      + + + +
        +
      • +

        getAverageSuccessfulGenerations

        +
        public double getAverageSuccessfulGenerations()
        +
        Calculates the average generation out of successful runs only. + The generation value in each successful run corresponds to the + generation in which the perfect solution was found.
        +
        +
        Returns:
        +
        the average number of generations for perfect solutions.
        +
        +
      • +
      + + + +
        +
      • +

        getAverageSuccessfulGenerationsStdDev

        +
        public double getAverageSuccessfulGenerationsStdDev()
        +
        Calculates the standard deviation of + the average number of generations in + each run where a perfect solution was found.
        +
        +
        Returns:
        +
        the standard deviation of the number of generations in successful runs.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/statistics/class-use/RunEntry.html b/doc/jcgp/backend/statistics/class-use/RunEntry.html new file mode 100644 index 0000000..4aefb02 --- /dev/null +++ b/doc/jcgp/backend/statistics/class-use/RunEntry.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.statistics.RunEntry + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.statistics.RunEntry

+
+
No usage of jcgp.backend.statistics.RunEntry
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/statistics/class-use/StatisticsLogger.html b/doc/jcgp/backend/statistics/class-use/StatisticsLogger.html new file mode 100644 index 0000000..b441141 --- /dev/null +++ b/doc/jcgp/backend/statistics/class-use/StatisticsLogger.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.backend.statistics.StatisticsLogger + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.backend.statistics.StatisticsLogger

+
+
No usage of jcgp.backend.statistics.StatisticsLogger
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/statistics/package-frame.html b/doc/jcgp/backend/statistics/package-frame.html new file mode 100644 index 0000000..1bcde50 --- /dev/null +++ b/doc/jcgp/backend/statistics/package-frame.html @@ -0,0 +1,21 @@ + + + + + +jcgp.backend.statistics + + + + + +

jcgp.backend.statistics

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/backend/statistics/package-summary.html b/doc/jcgp/backend/statistics/package-summary.html new file mode 100644 index 0000000..55579f8 --- /dev/null +++ b/doc/jcgp/backend/statistics/package-summary.html @@ -0,0 +1,150 @@ + + + + + +jcgp.backend.statistics + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.backend.statistics

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/statistics/package-tree.html b/doc/jcgp/backend/statistics/package-tree.html new file mode 100644 index 0000000..1317c96 --- /dev/null +++ b/doc/jcgp/backend/statistics/package-tree.html @@ -0,0 +1,138 @@ + + + + + +jcgp.backend.statistics Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.backend.statistics

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/backend/statistics/package-use.html b/doc/jcgp/backend/statistics/package-use.html new file mode 100644 index 0000000..26ece29 --- /dev/null +++ b/doc/jcgp/backend/statistics/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package jcgp.backend.statistics + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.backend.statistics

+
+
No usage of jcgp.backend.statistics
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/class-use/JCGP.html b/doc/jcgp/class-use/JCGP.html new file mode 100644 index 0000000..7282836 --- /dev/null +++ b/doc/jcgp/class-use/JCGP.html @@ -0,0 +1,164 @@ + + + + + +Uses of Class jcgp.JCGP + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.JCGP

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/GUI.html b/doc/jcgp/gui/GUI.html new file mode 100644 index 0000000..8b879fa --- /dev/null +++ b/doc/jcgp/gui/GUI.html @@ -0,0 +1,707 @@ + + + + + +GUI + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui
+

Class GUI

+
+
+ +
+
    +
  • +
    +
    +
    public class GUI
    +extends javafx.application.Application
    +
    Main class for the graphical user interface (GUI)
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        NEUTRAL_COLOUR

        +
        public static final java.lang.String NEUTRAL_COLOUR
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        HARD_HIGHLIGHT_COLOUR

        +
        public static final java.lang.String HARD_HIGHLIGHT_COLOUR
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        MEDIUM_HIGHLIGHT_COLOUR

        +
        public static final java.lang.String MEDIUM_HIGHLIGHT_COLOUR
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        SOFT_HIGHLIGHT_COLOUR

        +
        public static final java.lang.String SOFT_HIGHLIGHT_COLOUR
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        GOOD_SELECTION_COLOUR

        +
        public static final java.lang.String GOOD_SELECTION_COLOUR
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        NEUTRAL_SELECTION_COLOUR

        +
        public static final java.lang.String NEUTRAL_SELECTION_COLOUR
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        BAD_SELECTION_COLOUR

        +
        public static final java.lang.String BAD_SELECTION_COLOUR
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + +
        +
      • +

        SETTINGS_MIN_WIDTH

        +
        public static final double SETTINGS_MIN_WIDTH
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        CONSOLE_MIN_HEIGHT

        +
        public static final double CONSOLE_MIN_HEIGHT
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GUI

        +
        public GUI()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

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

        start

        +
        public void start(javafx.stage.Stage primaryStage)
        +           throws java.lang.Exception
        +
        +
        Specified by:
        +
        start in class javafx.application.Application
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        runPause

        +
        public void runPause()
        +
      • +
      + + + +
        +
      • +

        step

        +
        public void step()
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
      • +
      + + + +
        +
      • +

        reDraw

        +
        public void reDraw()
        +
      • +
      + + + +
        +
      • +

        updateFunctionSelector

        +
        public void updateFunctionSelector()
        +
      • +
      + + + +
        +
      • +

        isWorking

        +
        public boolean isWorking()
        +
      • +
      + + + +
        +
      • +

        bringFunctionSelector

        +
        public void bringFunctionSelector(javafx.scene.input.MouseEvent event,
        +                                  GUINode node)
        +
      • +
      + + + +
        +
      • +

        getExperiment

        +
        public JCGP getExperiment()
        +
      • +
      + + + + + + + +
        +
      • +

        hideGeneValues

        +
        public void hideGeneValues()
        +
      • +
      + + + +
        +
      • +

        setEvaluating

        +
        public void setEvaluating(boolean value)
        +
      • +
      + + + +
        +
      • +

        getStage

        +
        public javafx.stage.Stage getStage()
        +
      • +
      + + + +
        +
      • +

        flushConsole

        +
        public void flushConsole()
        +
      • +
      + + + +
        +
      • +

        getChromosomeIndex

        +
        public int getChromosomeIndex()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/class-use/GUI.html b/doc/jcgp/gui/class-use/GUI.html new file mode 100644 index 0000000..4f8dc98 --- /dev/null +++ b/doc/jcgp/gui/class-use/GUI.html @@ -0,0 +1,222 @@ + + + + + +Uses of Class jcgp.gui.GUI + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.GUI

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/console/GUIConsole.html b/doc/jcgp/gui/console/GUIConsole.html new file mode 100644 index 0000000..7737d5e --- /dev/null +++ b/doc/jcgp/gui/console/GUIConsole.html @@ -0,0 +1,458 @@ + + + + + +GUIConsole + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.console
+

Class GUIConsole

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget, Console
    +
    +
    +
    +
    public class GUIConsole
    +extends javafx.scene.layout.AnchorPane
    +implements Console
    +
    Console pane used by the GUI to display CGP output messages. + This class realises Console. It consists of a JavaFX + TextArea and a StringBuffer. The buffer is filled + as print messages are queued. Calling flush() writes the + contents of the buffer to the TextArea and empties the buffer.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Console
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javafx.scene.layout.Region

        +USE_COMPUTED_SIZE, USE_PREF_SIZE
      • +
      +
        +
      • + + +

        Fields inherited from class javafx.scene.Node

        +BASELINE_OFFSET_SAME_AS_HEIGHT
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GUIConsole() +
      Creates a new instance of this class.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidflush() +
      Outputs all buffered messages to the console.
      +
      voidprint(java.lang.String s) +
      Prints a string without line break at the end (unless the string + itself specifies one).
      +
      voidprintln(java.lang.String s) +
      Prints a string and automatically adds a line break at the end.
      +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.AnchorPane

        +clearConstraints, getBottomAnchor, getLeftAnchor, getRightAnchor, getTopAnchor, setBottomAnchor, setLeftAnchor, setRightAnchor, setTopAnchor
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Pane

        +getChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GUIConsole

        +
        public GUIConsole()
        +
        Creates a new instance of this class.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        println

        +
        public void println(java.lang.String s)
        +
        Description copied from interface: Console
        +
        Prints a string and automatically adds a line break at the end.
        +
        +
        Specified by:
        +
        println in interface Console
        +
        Parameters:
        +
        s - the string to print.
        +
        +
      • +
      + + + +
        +
      • +

        print

        +
        public void print(java.lang.String s)
        +
        Description copied from interface: Console
        +
        Prints a string without line break at the end (unless the string + itself specifies one).
        +
        +
        Specified by:
        +
        print in interface Console
        +
        Parameters:
        +
        s - the string to print.
        +
        +
      • +
      + + + +
        +
      • +

        flush

        +
        public void flush()
        +
        Description copied from interface: Console
        +
        Outputs all buffered messages to the console. Only necessary + if concurrent accesses must be avoided.
        +
        +
        Specified by:
        +
        flush in interface Console
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/console/class-use/GUIConsole.html b/doc/jcgp/gui/console/class-use/GUIConsole.html new file mode 100644 index 0000000..180634c --- /dev/null +++ b/doc/jcgp/gui/console/class-use/GUIConsole.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.console.GUIConsole + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.console.GUIConsole

+
+
No usage of jcgp.gui.console.GUIConsole
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/console/package-frame.html b/doc/jcgp/gui/console/package-frame.html new file mode 100644 index 0000000..05d367d --- /dev/null +++ b/doc/jcgp/gui/console/package-frame.html @@ -0,0 +1,20 @@ + + + + + +jcgp.gui.console + + + + + +

jcgp.gui.console

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/gui/console/package-summary.html b/doc/jcgp/gui/console/package-summary.html new file mode 100644 index 0000000..220f8cf --- /dev/null +++ b/doc/jcgp/gui/console/package-summary.html @@ -0,0 +1,144 @@ + + + + + +jcgp.gui.console + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.gui.console

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/console/package-tree.html b/doc/jcgp/gui/console/package-tree.html new file mode 100644 index 0000000..068223e --- /dev/null +++ b/doc/jcgp/gui/console/package-tree.html @@ -0,0 +1,157 @@ + + + + + +jcgp.gui.console Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.gui.console

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/console/package-use.html b/doc/jcgp/gui/console/package-use.html new file mode 100644 index 0000000..f419778 --- /dev/null +++ b/doc/jcgp/gui/console/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package jcgp.gui.console + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.gui.console

+
+
No usage of jcgp.gui.console
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/dragresize/HorizontalDragResize.html b/doc/jcgp/gui/dragresize/HorizontalDragResize.html new file mode 100644 index 0000000..4d47043 --- /dev/null +++ b/doc/jcgp/gui/dragresize/HorizontalDragResize.html @@ -0,0 +1,253 @@ + + + + + +HorizontalDragResize + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.dragresize
+

Class HorizontalDragResize

+
+
+ +
+
    +
  • +
    +
    +
    public class HorizontalDragResize
    +extends java.lang.Object
    +
    This class adds horizontal drag resize functionality to any + arbitrary region provided. This is done by using the static + method makeDragResizable(). +

    + This is based on a class by Andrew Till found on: + http://andrewtill.blogspot.co.uk/2012/12/dragging-to-resize-javafx-region.html
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidmakeDragResizable(javafx.scene.layout.Region region) +
      Makes the specified region drag resizable.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        makeDragResizable

        +
        public static void makeDragResizable(javafx.scene.layout.Region region)
        +
        Makes the specified region drag resizable. + This particular implementation only creates a resize + click-and-drag area on the left side of the region. + The resize area is defined by GUI.RESIZE_MARGIN.
        +
        +
        Parameters:
        +
        region - the region to make resizable.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/dragresize/VerticalDragResize.html b/doc/jcgp/gui/dragresize/VerticalDragResize.html new file mode 100644 index 0000000..28faeb5 --- /dev/null +++ b/doc/jcgp/gui/dragresize/VerticalDragResize.html @@ -0,0 +1,253 @@ + + + + + +VerticalDragResize + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.dragresize
+

Class VerticalDragResize

+
+
+ +
+
    +
  • +
    +
    +
    public class VerticalDragResize
    +extends java.lang.Object
    +
    This class adds vertical drag resize functionality to any + arbitrary region provided. This is done by using the static + method makeDragResizable(). +

    + This is based on a class by Andrew Till found on: + http://andrewtill.blogspot.co.uk/2012/12/dragging-to-resize-javafx-region.html
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidmakeDragResizable(javafx.scene.layout.Region region) +
      Makes the specified region drag resizable.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        makeDragResizable

        +
        public static void makeDragResizable(javafx.scene.layout.Region region)
        +
        Makes the specified region drag resizable. + This particular implementation only creates a resize + click-and-drag area on the top side of the region. + The resize area is defined by GUI.RESIZE_MARGIN.
        +
        +
        Parameters:
        +
        region - the region to make resizable.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/dragresize/class-use/HorizontalDragResize.html b/doc/jcgp/gui/dragresize/class-use/HorizontalDragResize.html new file mode 100644 index 0000000..afb6008 --- /dev/null +++ b/doc/jcgp/gui/dragresize/class-use/HorizontalDragResize.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.dragresize.HorizontalDragResize + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.dragresize.HorizontalDragResize

+
+
No usage of jcgp.gui.dragresize.HorizontalDragResize
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/dragresize/class-use/VerticalDragResize.html b/doc/jcgp/gui/dragresize/class-use/VerticalDragResize.html new file mode 100644 index 0000000..e36108f --- /dev/null +++ b/doc/jcgp/gui/dragresize/class-use/VerticalDragResize.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.dragresize.VerticalDragResize + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.dragresize.VerticalDragResize

+
+
No usage of jcgp.gui.dragresize.VerticalDragResize
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/dragresize/package-frame.html b/doc/jcgp/gui/dragresize/package-frame.html new file mode 100644 index 0000000..b26622d --- /dev/null +++ b/doc/jcgp/gui/dragresize/package-frame.html @@ -0,0 +1,21 @@ + + + + + +jcgp.gui.dragresize + + + + + +

jcgp.gui.dragresize

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/gui/dragresize/package-summary.html b/doc/jcgp/gui/dragresize/package-summary.html new file mode 100644 index 0000000..576365e --- /dev/null +++ b/doc/jcgp/gui/dragresize/package-summary.html @@ -0,0 +1,152 @@ + + + + + +jcgp.gui.dragresize + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.gui.dragresize

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/dragresize/package-tree.html b/doc/jcgp/gui/dragresize/package-tree.html new file mode 100644 index 0000000..6c31fb7 --- /dev/null +++ b/doc/jcgp/gui/dragresize/package-tree.html @@ -0,0 +1,138 @@ + + + + + +jcgp.gui.dragresize Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.gui.dragresize

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/dragresize/package-use.html b/doc/jcgp/gui/dragresize/package-use.html new file mode 100644 index 0000000..5a4088d --- /dev/null +++ b/doc/jcgp/gui/dragresize/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package jcgp.gui.dragresize + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.gui.dragresize

+
+
No usage of jcgp.gui.dragresize
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/package-frame.html b/doc/jcgp/gui/package-frame.html new file mode 100644 index 0000000..69571ff --- /dev/null +++ b/doc/jcgp/gui/package-frame.html @@ -0,0 +1,20 @@ + + + + + +jcgp.gui + + + + + +

jcgp.gui

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/gui/package-summary.html b/doc/jcgp/gui/package-summary.html new file mode 100644 index 0000000..ce27245 --- /dev/null +++ b/doc/jcgp/gui/package-summary.html @@ -0,0 +1,144 @@ + + + + + +jcgp.gui + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.gui

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/package-tree.html b/doc/jcgp/gui/package-tree.html new file mode 100644 index 0000000..4efeb4e --- /dev/null +++ b/doc/jcgp/gui/package-tree.html @@ -0,0 +1,141 @@ + + + + + +jcgp.gui Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.gui

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/package-use.html b/doc/jcgp/gui/package-use.html new file mode 100644 index 0000000..d8af6e4 --- /dev/null +++ b/doc/jcgp/gui/package-use.html @@ -0,0 +1,201 @@ + + + + + +Uses of Package jcgp.gui + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.gui

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/ChromosomePane.html b/doc/jcgp/gui/population/ChromosomePane.html new file mode 100644 index 0000000..b9f895a --- /dev/null +++ b/doc/jcgp/gui/population/ChromosomePane.html @@ -0,0 +1,488 @@ + + + + + +ChromosomePane + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.population
+

Class ChromosomePane

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable
    +
    +
    +
    +
    public class ChromosomePane
    +extends javafx.scene.control.ScrollPane
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.control.ScrollPane

        +contentProperty, fitToHeightProperty, fitToWidthProperty, hbarPolicyProperty, hmaxProperty, hminProperty, hvalueProperty, pannableProperty, prefViewportHeightProperty, prefViewportWidthProperty, vbarPolicyProperty, viewportBoundsProperty, vmaxProperty, vminProperty, vvalueProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.control.Control

        +contextMenuProperty, skinProperty, tooltipProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javafx.scene.control.ScrollPane

        +javafx.scene.control.ScrollPane.ScrollBarPolicy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javafx.scene.layout.Region

        +USE_COMPUTED_SIZE, USE_PREF_SIZE
      • +
      +
        +
      • + + +

        Fields inherited from class javafx.scene.Node

        +BASELINE_OFFSET_SAME_AS_HEIGHT
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      booleanisEvaluating() 
      voidrelockOutputs() 
      voidsetInputs(java.lang.Object[] values) 
      voidunlockOutputs() 
      voidupdateGenes(Chromosome chr) 
      voidupdateValues() 
      +
        +
      • + + +

        Methods inherited from class javafx.scene.control.ScrollPane

        +contentProperty, fitToHeightProperty, fitToWidthProperty, getClassCssMetaData, getContent, getControlCssMetaData, getHbarPolicy, getHmax, getHmin, getHvalue, getPrefViewportHeight, getPrefViewportWidth, getVbarPolicy, getViewportBounds, getVmax, getVmin, getVvalue, hbarPolicyProperty, hmaxProperty, hminProperty, hvalueProperty, isFitToHeight, isFitToWidth, isPannable, pannableProperty, prefViewportHeightProperty, prefViewportWidthProperty, setContent, setFitToHeight, setFitToWidth, setHbarPolicy, setHmax, setHmin, setHvalue, setPannable, setPrefViewportHeight, setPrefViewportWidth, setVbarPolicy, setViewportBounds, setVmax, setVmin, setVvalue, vbarPolicyProperty, viewportBoundsProperty, vmaxProperty, vminProperty, vvalueProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.control.Control

        +contextMenuProperty, getBaselineOffset, getContextMenu, getCssMetaData, getSkin, getTooltip, isResizable, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updateGenes

        +
        public void updateGenes(Chromosome chr)
        +
      • +
      + + + +
        +
      • +

        unlockOutputs

        +
        public void unlockOutputs()
        +
      • +
      + + + +
        +
      • +

        relockOutputs

        +
        public void relockOutputs()
        +
      • +
      + + + +
        +
      • +

        setInputs

        +
        public void setInputs(java.lang.Object[] values)
        +
      • +
      + + + +
        +
      • +

        updateValues

        +
        public void updateValues()
        +
      • +
      + + + +
        +
      • +

        isEvaluating

        +
        public boolean isEvaluating()
        +
        +
        Returns:
        +
        the evaluating
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/FunctionSelector.html b/doc/jcgp/gui/population/FunctionSelector.html new file mode 100644 index 0000000..085ad56 --- /dev/null +++ b/doc/jcgp/gui/population/FunctionSelector.html @@ -0,0 +1,408 @@ + + + + + +FunctionSelector + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.population
+

Class FunctionSelector

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    +
    public class FunctionSelector
    +extends javafx.scene.layout.VBox
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.VBox

        +alignmentProperty, fillWidthProperty, spacingProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javafx.scene.layout.Region

        +USE_COMPUTED_SIZE, USE_PREF_SIZE
      • +
      +
        +
      • + + +

        Fields inherited from class javafx.scene.Node

        +BASELINE_OFFSET_SAME_AS_HEIGHT
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrelocateAndShow(javafx.scene.input.MouseEvent event, + GUINode node) 
      voidremakeFunctions(FunctionSet fs) 
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.VBox

        +alignmentProperty, clearConstraints, fillWidthProperty, getAlignment, getClassCssMetaData, getContentBias, getCssMetaData, getMargin, getSpacing, getVgrow, isFillWidth, requestLayout, setAlignment, setFillWidth, setMargin, setSpacing, setVgrow, spacingProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Pane

        +getChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FunctionSelector

        +
        public FunctionSelector(FunctionSet functionSet)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        remakeFunctions

        +
        public void remakeFunctions(FunctionSet fs)
        +
      • +
      + + + +
        +
      • +

        relocateAndShow

        +
        public void relocateAndShow(javafx.scene.input.MouseEvent event,
        +                            GUINode node)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/GUIGene.GUIGeneState.html b/doc/jcgp/gui/population/GUIGene.GUIGeneState.html new file mode 100644 index 0000000..e3987de --- /dev/null +++ b/doc/jcgp/gui/population/GUIGene.GUIGeneState.html @@ -0,0 +1,429 @@ + + + + + +GUIGene.GUIGeneState + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.population
+

Enum GUIGene.GUIGeneState

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static GUIGene.GUIGeneState[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (GUIGene.GUIGeneState c : GUIGene.GUIGeneState.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static GUIGene.GUIGeneState valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/GUIGene.html b/doc/jcgp/gui/population/GUIGene.html new file mode 100644 index 0000000..c0968e4 --- /dev/null +++ b/doc/jcgp/gui/population/GUIGene.html @@ -0,0 +1,634 @@ + + + + + +GUIGene + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.population
+

Class GUIGene

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    Direct Known Subclasses:
    +
    GUIInput, GUINode, GUIOutput
    +
    +
    +
    +
    public abstract class GUIGene
    +extends javafx.scene.Group
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.Group

        +autoSizeChildrenProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class GUIGene.GUIGeneState 
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static doubleNODE_RADIUS 
      static doubleNODE_TEXT 
      static doubleSOCKET_RADIUS 
      static doubleSPACING 
      static doubleTHETA 
      +
        +
      • + + +

        Fields inherited from class javafx.scene.Node

        +BASELINE_OFFSET_SAME_AS_HEIGHT
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GUIGene() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethod and Description
      abstract voidaddLocks(int value) 
      abstract ConnectiongetChangingConnection() 
      intgetLocks() 
      GUIGene.GUIGeneStategetState() 
      booleanisLocked() 
      abstract voidremoveLocks(int value) 
      abstract voidresetState() 
      abstract voidsetChangingConnection(Connection newConnection) 
      abstract voidsetConnectionLine(GUIGene gene) 
      abstract voidsetConnections(GUIGene.GUIGeneState newState) 
      voidsetState(GUIGene.GUIGeneState newState) 
      abstract voidupdateLines() 
      abstract voidupdateText() 
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Group

        +autoSizeChildrenProperty, getChildren, isAutoSizeChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_computeGeomBounds, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, impl_updatePeer, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, maxHeight, maxWidth, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GUIGene

        +
        public GUIGene()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        isLocked

        +
        public boolean isLocked()
        +
      • +
      + + + +
        +
      • +

        getLocks

        +
        public int getLocks()
        +
      • +
      + + + +
        +
      • +

        addLocks

        +
        public abstract void addLocks(int value)
        +
      • +
      + + + +
        +
      • +

        removeLocks

        +
        public abstract void removeLocks(int value)
        +
        +
        Parameters:
        +
        value -
        +
        +
      • +
      + + + +
        +
      • +

        updateLines

        +
        public abstract void updateLines()
        +
      • +
      + + + +
        +
      • +

        setChangingConnection

        +
        public abstract void setChangingConnection(Connection newConnection)
        +
      • +
      + + + +
        +
      • +

        getChangingConnection

        +
        public abstract Connection getChangingConnection()
        +
      • +
      + + + + + + + +
        +
      • +

        resetState

        +
        public abstract void resetState()
        +
      • +
      + + + +
        +
      • +

        setConnectionLine

        +
        public abstract void setConnectionLine(GUIGene gene)
        +
      • +
      + + + +
        +
      • +

        updateText

        +
        public abstract void updateText()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/GUIInput.html b/doc/jcgp/gui/population/GUIInput.html new file mode 100644 index 0000000..1e46a32 --- /dev/null +++ b/doc/jcgp/gui/population/GUIInput.html @@ -0,0 +1,566 @@ + + + + + +GUIInput + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.population
+

Class GUIInput

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    +
    public class GUIInput
    +extends GUIGene
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.Group

        +autoSizeChildrenProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + + + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddLocks(int value) 
      ConnectiongetChangingConnection() 
      voidremoveLocks(int value) 
      voidresetState() 
      voidsetChangingConnection(Connection newConnection) 
      voidsetConnectionLine(GUIGene gene) 
      voidsetConnections(GUIGene.GUIGeneState newState) +
      Set all connections to a given state.
      +
      voidsetState(GUIGene.GUIGeneState newState) 
      voidsetValue(java.lang.Object newValue) 
      voidupdateLines() 
      voidupdateText() 
      + +
        +
      • + + +

        Methods inherited from class javafx.scene.Group

        +autoSizeChildrenProperty, getChildren, isAutoSizeChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_computeGeomBounds, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, impl_updatePeer, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, maxHeight, maxWidth, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/GUINode.html b/doc/jcgp/gui/population/GUINode.html new file mode 100644 index 0000000..01c4ae6 --- /dev/null +++ b/doc/jcgp/gui/population/GUINode.html @@ -0,0 +1,614 @@ + + + + + +GUINode + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.population
+

Class GUINode

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    +
    public class GUINode
    +extends GUIGene
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.Group

        +autoSizeChildrenProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + + + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GUINode(ChromosomePane parentRef, + Node node, + javafx.scene.shape.Line[] connectionLines, + GUI gui) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddLocks(int value) 
      ConnectiongetChangingConnection() 
      NodegetNode() 
      voidremoveLocks(int value) 
      voidresetState() 
      voidsetChangingConnection(Connection newConnection) 
      voidsetConnectionLine(GUIGene gene) 
      voidsetConnections(GUIGene.GUIGeneState newState) 
      voidsetFunction(Function function) 
      voidsetNode(Node newNode) 
      voidsetState(GUIGene.GUIGeneState newState) 
      voidupdateLine(int index) +
      Place the end of the specified line on the output of the associated connection.
      +
      voidupdateLines() +
      Updates the end of all lines to match the associated connections.
      +
      voidupdateText() 
      + +
        +
      • + + +

        Methods inherited from class javafx.scene.Group

        +autoSizeChildrenProperty, getChildren, isAutoSizeChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_computeGeomBounds, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, impl_updatePeer, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, maxHeight, maxWidth, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GUINode

        +
        public GUINode(ChromosomePane parentRef,
        +               Node node,
        +               javafx.scene.shape.Line[] connectionLines,
        +               GUI gui)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        getNode

        +
        public Node getNode()
        +
      • +
      + + + +
        +
      • +

        updateLine

        +
        public void updateLine(int index)
        +
        Place the end of the specified line on the output of the associated connection.
        +
        +
        Parameters:
        +
        index - the line to be updated.
        +
        +
      • +
      + + + +
        +
      • +

        updateLines

        +
        public void updateLines()
        +
        Updates the end of all lines to match the associated connections.
        +
        +
        Specified by:
        +
        updateLines in class GUIGene
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        resetState

        +
        public void resetState()
        +
        +
        Specified by:
        +
        resetState in class GUIGene
        +
        +
      • +
      + + + +
        +
      • +

        addLocks

        +
        public void addLocks(int value)
        +
        +
        Specified by:
        +
        addLocks in class GUIGene
        +
        +
      • +
      + + + +
        +
      • +

        removeLocks

        +
        public void removeLocks(int value)
        +
        +
        Specified by:
        +
        removeLocks in class GUIGene
        +
        +
      • +
      + + + + + + + +
        +
      • +

        updateText

        +
        public void updateText()
        +
        +
        Specified by:
        +
        updateText in class GUIGene
        +
        +
      • +
      + + + +
        +
      • +

        setFunction

        +
        public void setFunction(Function function)
        +
      • +
      + + + +
        +
      • +

        setNode

        +
        public void setNode(Node newNode)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/GUIOutput.html b/doc/jcgp/gui/population/GUIOutput.html new file mode 100644 index 0000000..173f05b --- /dev/null +++ b/doc/jcgp/gui/population/GUIOutput.html @@ -0,0 +1,591 @@ + + + + + +GUIOutput + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.population
+

Class GUIOutput

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    +
    public class GUIOutput
    +extends GUIGene
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.Group

        +autoSizeChildrenProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + + + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GUIOutput(ChromosomePane parentRef, + Output output, + javafx.scene.shape.Line line, + GUI gui) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddLocks(int value) 
      ConnectiongetChangingConnection() 
      voidlock() 
      voidremoveLocks(int value) 
      voidresetState() 
      voidsetChangingConnection(Connection newConnection) 
      voidsetConnectionLine(GUIGene gene) 
      voidsetConnections(GUIGene.GUIGeneState newState) 
      voidsetOutput(Output newOutput) 
      voidsetState(GUIGene.GUIGeneState newState) 
      voidunlock() 
      voidupdateLines() 
      voidupdateText() 
      + +
        +
      • + + +

        Methods inherited from class javafx.scene.Group

        +autoSizeChildrenProperty, getChildren, isAutoSizeChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_computeGeomBounds, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, impl_updatePeer, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, maxHeight, maxWidth, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/PopulationPane.html b/doc/jcgp/gui/population/PopulationPane.html new file mode 100644 index 0000000..28a95bc --- /dev/null +++ b/doc/jcgp/gui/population/PopulationPane.html @@ -0,0 +1,513 @@ + + + + + +PopulationPane + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.population
+

Class PopulationPane

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable
    +
    +
    +
    +
    public class PopulationPane
    +extends javafx.scene.control.TabPane
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.control.TabPane

        +rotateGraphicProperty, selectionModelProperty, sideProperty, tabClosingPolicyProperty, tabMaxHeightProperty, tabMaxWidthProperty, tabMinHeightProperty, tabMinWidthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.control.Control

        +contextMenuProperty, skinProperty, tooltipProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javafx.scene.control.TabPane

        +javafx.scene.control.TabPane.TabClosingPolicy
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javafx.scene.control.TabPane

        +STYLE_CLASS_FLOATING
      • +
      +
        +
      • + + +

        Fields inherited from class javafx.scene.layout.Region

        +USE_COMPUTED_SIZE, USE_PREF_SIZE
      • +
      +
        +
      • + + +

        Fields inherited from class javafx.scene.Node

        +BASELINE_OFFSET_SAME_AS_HEIGHT
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      PopulationPane(GUI gui) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidevaluateTestCase(TestCaseProblem.TestCase<java.lang.Object> testCase) 
      voidhideValues() 
      booleanisEvaluating() 
      voidrelockOutputs() 
      voidremakeTabs() 
      voidsetEvaluating(boolean value) 
      voidunlockOutputs() 
      voidupdateGenes() 
      +
        +
      • + + +

        Methods inherited from class javafx.scene.control.TabPane

        +getClassCssMetaData, getControlCssMetaData, getSelectionModel, getSide, getTabClosingPolicy, getTabMaxHeight, getTabMaxWidth, getTabMinHeight, getTabMinWidth, getTabs, isRotateGraphic, rotateGraphicProperty, selectionModelProperty, setRotateGraphic, setSelectionModel, setSide, setTabClosingPolicy, setTabMaxHeight, setTabMaxWidth, setTabMinHeight, setTabMinWidth, sideProperty, tabClosingPolicyProperty, tabMaxHeightProperty, tabMaxWidthProperty, tabMinHeightProperty, tabMinWidthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.control.Control

        +contextMenuProperty, getBaselineOffset, getContextMenu, getCssMetaData, getSkin, getTooltip, isResizable, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PopulationPane

        +
        public PopulationPane(GUI gui)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        remakeTabs

        +
        public void remakeTabs()
        +
      • +
      + + + +
        +
      • +

        updateGenes

        +
        public void updateGenes()
        +
      • +
      + + + +
        +
      • +

        unlockOutputs

        +
        public void unlockOutputs()
        +
      • +
      + + + +
        +
      • +

        relockOutputs

        +
        public void relockOutputs()
        +
      • +
      + + + + + + + +
        +
      • +

        hideValues

        +
        public void hideValues()
        +
      • +
      + + + +
        +
      • +

        isEvaluating

        +
        public boolean isEvaluating()
        +
      • +
      + + + +
        +
      • +

        setEvaluating

        +
        public void setEvaluating(boolean value)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/class-use/ChromosomePane.html b/doc/jcgp/gui/population/class-use/ChromosomePane.html new file mode 100644 index 0000000..8fc23de --- /dev/null +++ b/doc/jcgp/gui/population/class-use/ChromosomePane.html @@ -0,0 +1,175 @@ + + + + + +Uses of Class jcgp.gui.population.ChromosomePane + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.population.ChromosomePane

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/class-use/FunctionSelector.html b/doc/jcgp/gui/population/class-use/FunctionSelector.html new file mode 100644 index 0000000..fcd369a --- /dev/null +++ b/doc/jcgp/gui/population/class-use/FunctionSelector.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.population.FunctionSelector + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.population.FunctionSelector

+
+
No usage of jcgp.gui.population.FunctionSelector
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/class-use/GUIGene.GUIGeneState.html b/doc/jcgp/gui/population/class-use/GUIGene.GUIGeneState.html new file mode 100644 index 0000000..3abb275 --- /dev/null +++ b/doc/jcgp/gui/population/class-use/GUIGene.GUIGeneState.html @@ -0,0 +1,220 @@ + + + + + +Uses of Class jcgp.gui.population.GUIGene.GUIGeneState + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.population.GUIGene.GUIGeneState

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/class-use/GUIGene.html b/doc/jcgp/gui/population/class-use/GUIGene.html new file mode 100644 index 0000000..e5196a2 --- /dev/null +++ b/doc/jcgp/gui/population/class-use/GUIGene.html @@ -0,0 +1,197 @@ + + + + + +Uses of Class jcgp.gui.population.GUIGene + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.population.GUIGene

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/class-use/GUIInput.html b/doc/jcgp/gui/population/class-use/GUIInput.html new file mode 100644 index 0000000..94ba5d3 --- /dev/null +++ b/doc/jcgp/gui/population/class-use/GUIInput.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.population.GUIInput + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.population.GUIInput

+
+
No usage of jcgp.gui.population.GUIInput
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/class-use/GUINode.html b/doc/jcgp/gui/population/class-use/GUINode.html new file mode 100644 index 0000000..3699a25 --- /dev/null +++ b/doc/jcgp/gui/population/class-use/GUINode.html @@ -0,0 +1,188 @@ + + + + + +Uses of Class jcgp.gui.population.GUINode + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.population.GUINode

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/class-use/GUIOutput.html b/doc/jcgp/gui/population/class-use/GUIOutput.html new file mode 100644 index 0000000..ef18d27 --- /dev/null +++ b/doc/jcgp/gui/population/class-use/GUIOutput.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.population.GUIOutput + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.population.GUIOutput

+
+
No usage of jcgp.gui.population.GUIOutput
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/class-use/PopulationPane.html b/doc/jcgp/gui/population/class-use/PopulationPane.html new file mode 100644 index 0000000..204f1af --- /dev/null +++ b/doc/jcgp/gui/population/class-use/PopulationPane.html @@ -0,0 +1,164 @@ + + + + + +Uses of Class jcgp.gui.population.PopulationPane + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.population.PopulationPane

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/package-frame.html b/doc/jcgp/gui/population/package-frame.html new file mode 100644 index 0000000..5dd90b4 --- /dev/null +++ b/doc/jcgp/gui/population/package-frame.html @@ -0,0 +1,30 @@ + + + + + +jcgp.gui.population + + + + + +

jcgp.gui.population

+
+

Classes

+ +

Enums

+ +
+ + diff --git a/doc/jcgp/gui/population/package-summary.html b/doc/jcgp/gui/population/package-summary.html new file mode 100644 index 0000000..9dacefb --- /dev/null +++ b/doc/jcgp/gui/population/package-summary.html @@ -0,0 +1,181 @@ + + + + + +jcgp.gui.population + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.gui.population

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/package-tree.html b/doc/jcgp/gui/population/package-tree.html new file mode 100644 index 0000000..600ec94 --- /dev/null +++ b/doc/jcgp/gui/population/package-tree.html @@ -0,0 +1,194 @@ + + + + + +jcgp.gui.population Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.gui.population

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/population/package-use.html b/doc/jcgp/gui/population/package-use.html new file mode 100644 index 0000000..84b76e7 --- /dev/null +++ b/doc/jcgp/gui/population/package-use.html @@ -0,0 +1,188 @@ + + + + + +Uses of Package jcgp.gui.population + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.gui.population

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/SettingsPane.html b/doc/jcgp/gui/settings/SettingsPane.html new file mode 100644 index 0000000..ad765ec --- /dev/null +++ b/doc/jcgp/gui/settings/SettingsPane.html @@ -0,0 +1,495 @@ + + + + + +SettingsPane + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.settings
+

Class SettingsPane

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    +
    public class SettingsPane
    +extends javafx.scene.layout.AnchorPane
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class javafx.scene.layout.Region

        +USE_COMPUTED_SIZE, USE_PREF_SIZE
      • +
      +
        +
      • + + +

        Fields inherited from class javafx.scene.Node

        +BASELINE_OFFSET_SAME_AS_HEIGHT
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      SettingsPane(GUI gui) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidapplyParameters() +
      Calls applyValue() on every parameter.
      +
      booleanareParametersValid() 
      TestCaseTablegetTestCaseTable() 
      booleanisExperimentRunning() 
      booleanisResetRequired() 
      voidrevalidateParameters() +
      Calls validate() on every parameter.
      +
      voidupdateControls(boolean running, + boolean finished) +
      Updates all of the controls to their appropriate state based on the status of the + experiment, in order to prevent inappropriate operations if the experiment is + running or finished.
      +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.AnchorPane

        +clearConstraints, getBottomAnchor, getLeftAnchor, getRightAnchor, getTopAnchor, setBottomAnchor, setLeftAnchor, setRightAnchor, setTopAnchor
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Pane

        +getChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SettingsPane

        +
        public SettingsPane(GUI gui)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isExperimentRunning

        +
        public boolean isExperimentRunning()
        +
      • +
      + + + +
        +
      • +

        isResetRequired

        +
        public boolean isResetRequired()
        +
        +
        Returns:
        +
        true if the experiment needs to be reset, false if otherwise.
        +
        +
      • +
      + + + +
        +
      • +

        areParametersValid

        +
        public boolean areParametersValid()
        +
        +
        Returns:
        +
        true if no parameters have their status set to ParameterStatus.INVALID.
        +
        +
      • +
      + + + +
        +
      • +

        revalidateParameters

        +
        public void revalidateParameters()
        +
        Calls validate() on every parameter. This is called whenever a parameter changes, + so that other parameters update their status in case they were dependent on the + changed parameter.
        +
      • +
      + + + +
        +
      • +

        applyParameters

        +
        public void applyParameters()
        +
        Calls applyValue() on every parameter. This is called when a reset occurs, so that + the new value will be used as a reference instead of the old reference value.
        +
      • +
      + + + +
        +
      • +

        updateControls

        +
        public void updateControls(boolean running,
        +                           boolean finished)
        +
        Updates all of the controls to their appropriate state based on the status of the + experiment, in order to prevent inappropriate operations if the experiment is + running or finished.
        +
        +
        Parameters:
        +
        running - true if the experiment is running
        +
        finished - true if the experiment is finished
        +
        +
      • +
      + + + +
        +
      • +

        getTestCaseTable

        +
        public TestCaseTable getTestCaseTable()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/class-use/SettingsPane.html b/doc/jcgp/gui/settings/class-use/SettingsPane.html new file mode 100644 index 0000000..210a4ff --- /dev/null +++ b/doc/jcgp/gui/settings/class-use/SettingsPane.html @@ -0,0 +1,167 @@ + + + + + +Uses of Class jcgp.gui.settings.SettingsPane + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.settings.SettingsPane

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/package-frame.html b/doc/jcgp/gui/settings/package-frame.html new file mode 100644 index 0000000..048067e --- /dev/null +++ b/doc/jcgp/gui/settings/package-frame.html @@ -0,0 +1,20 @@ + + + + + +jcgp.gui.settings + + + + + +

jcgp.gui.settings

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/gui/settings/package-summary.html b/doc/jcgp/gui/settings/package-summary.html new file mode 100644 index 0000000..c34a661 --- /dev/null +++ b/doc/jcgp/gui/settings/package-summary.html @@ -0,0 +1,142 @@ + + + + + +jcgp.gui.settings + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.gui.settings

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/package-tree.html b/doc/jcgp/gui/settings/package-tree.html new file mode 100644 index 0000000..6e0d97e --- /dev/null +++ b/doc/jcgp/gui/settings/package-tree.html @@ -0,0 +1,157 @@ + + + + + +jcgp.gui.settings Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.gui.settings

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/package-use.html b/doc/jcgp/gui/settings/package-use.html new file mode 100644 index 0000000..09022a8 --- /dev/null +++ b/doc/jcgp/gui/settings/package-use.html @@ -0,0 +1,157 @@ + + + + + +Uses of Package jcgp.gui.settings + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.gui.settings

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/GUIBooleanParameter.html b/doc/jcgp/gui/settings/parameters/GUIBooleanParameter.html new file mode 100644 index 0000000..3b92cab --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/GUIBooleanParameter.html @@ -0,0 +1,392 @@ + + + + + +GUIBooleanParameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.settings.parameters
+

Class GUIBooleanParameter

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    +
    public class GUIBooleanParameter
    +extends GUIParameter<java.lang.Boolean>
    +
    This extension of @code{GUIParameter} uses a @code{CheckBox} to display + the value of a @code{BooleanParameter}. It cannot be constructed + directly - instead, use @code{GUIParameter.create()}. +

    + See GUIParameter for more information.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.HBox

        +alignmentProperty, fillHeightProperty, spacingProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrefreshValue() +
      Update the control so it shows the correct value of the parameter.
      +
      + +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.HBox

        +alignmentProperty, clearConstraints, fillHeightProperty, getAlignment, getBaselineOffset, getClassCssMetaData, getContentBias, getCssMetaData, getHgrow, getMargin, getSpacing, isFillHeight, requestLayout, setAlignment, setFillHeight, setHgrow, setMargin, setSpacing, spacingProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Pane

        +getChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        refreshValue

        +
        public void refreshValue()
        +
        Description copied from class: GUIParameter
        +
        Update the control so it shows the correct value of the parameter. This method + is used exclusively by the thread-safe binding created if the module is a monitor.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/GUIDoubleParameter.html b/doc/jcgp/gui/settings/parameters/GUIDoubleParameter.html new file mode 100644 index 0000000..42ad718 --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/GUIDoubleParameter.html @@ -0,0 +1,392 @@ + + + + + +GUIDoubleParameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.settings.parameters
+

Class GUIDoubleParameter

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    +
    public class GUIDoubleParameter
    +extends GUIParameter<java.lang.Number>
    +
    This extension of @code{GUIParameter} uses a @code{TextField} to display + the value of a @code{DoubleParameter}. It cannot be constructed + directly - instead, use @code{GUIParameter.create()}. +

    + See GUIParameter for more information.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.HBox

        +alignmentProperty, fillHeightProperty, spacingProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrefreshValue() +
      Update the control so it shows the correct value of the parameter.
      +
      + +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.HBox

        +alignmentProperty, clearConstraints, fillHeightProperty, getAlignment, getBaselineOffset, getClassCssMetaData, getContentBias, getCssMetaData, getHgrow, getMargin, getSpacing, isFillHeight, requestLayout, setAlignment, setFillHeight, setHgrow, setMargin, setSpacing, spacingProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Pane

        +getChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        refreshValue

        +
        public void refreshValue()
        +
        Description copied from class: GUIParameter
        +
        Update the control so it shows the correct value of the parameter. This method + is used exclusively by the thread-safe binding created if the module is a monitor.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/GUIIntegerParameter.html b/doc/jcgp/gui/settings/parameters/GUIIntegerParameter.html new file mode 100644 index 0000000..8880606 --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/GUIIntegerParameter.html @@ -0,0 +1,392 @@ + + + + + +GUIIntegerParameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.settings.parameters
+

Class GUIIntegerParameter

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    +
    public class GUIIntegerParameter
    +extends GUIParameter<java.lang.Number>
    +
    This extension of @code{GUIParameter} uses a @code{TextField} to display + the value of a @code{IntegerParameter}. It cannot be constructed + directly - instead, use @code{GUIParameter.create()}. +

    + See GUIParameter for more information.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.HBox

        +alignmentProperty, fillHeightProperty, spacingProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrefreshValue() +
      Update the control so it shows the correct value of the parameter.
      +
      + +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.HBox

        +alignmentProperty, clearConstraints, fillHeightProperty, getAlignment, getBaselineOffset, getClassCssMetaData, getContentBias, getCssMetaData, getHgrow, getMargin, getSpacing, isFillHeight, requestLayout, setAlignment, setFillHeight, setHgrow, setMargin, setSpacing, spacingProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Pane

        +getChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        refreshValue

        +
        public void refreshValue()
        +
        Description copied from class: GUIParameter
        +
        Update the control so it shows the correct value of the parameter. This method + is used exclusively by the thread-safe binding created if the module is a monitor.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/GUIParameter.html b/doc/jcgp/gui/settings/parameters/GUIParameter.html new file mode 100644 index 0000000..62e9ffe --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/GUIParameter.html @@ -0,0 +1,575 @@ + + + + + +GUIParameter + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.settings.parameters
+

Class GUIParameter<T>

+
+
+ +
+
    +
  • +
    +
    Type Parameters:
    +
    T - the parameter data type
    +
    +
    +
    All Implemented Interfaces:
    +
    javafx.css.Styleable, javafx.event.EventTarget
    +
    +
    +
    Direct Known Subclasses:
    +
    GUIBooleanParameter, GUIDoubleParameter, GUIIntegerParameter
    +
    +
    +
    +
    public abstract class GUIParameter<T>
    +extends javafx.scene.layout.HBox
    +
    This is the base class for all @code{GUIParameter}s. Using the factory method @code{GUIParameter.create()} + generates an appropriate instance of this class for the specified parameter. +

    + A @code{GUIParameter} is an @code{HBox} containing a @code{Text} for the parameter name + and a @code{Control} for interaction. + It stores an instance of its associated @code{Parameter} object and also contains a @code{Tooltip} for + displaying status information. +

    + Monitor parameters are updated automatically and have their @code{Control} disabled so + that no changes can be made via the GUI. + Non-monitor parameters are updated automatically as well, but may be changed by the user + if the program is not evolving.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    See Also:
    +
    Parameter
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.HBox

        +alignmentProperty, fillHeightProperty, spacingProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Parent

        +impl_traversalEngineProperty, needsLayoutProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.scene.Node

        +blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
      • +
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidapplyValue() +
      Set the current parameter value as the reference value of the @code{GUIParameter}.
      +
      static GUIParameter<?>create(Parameter<?> parameter, + SettingsPane sp) +
      Factory method to create @code{GUIParameter}s from @code{Parameter}s.
      +
      booleanisValid() 
      booleanrequiresReset() +
      Certain parameter changes might require the experiment to be reset, either + because the parameter is critical or because its status requires a reset.
      +
      voidvalidate() +
      Force the parameter to validate its current value, and apply the associated + style to the @code{GUIParameter}.
      +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.HBox

        +alignmentProperty, clearConstraints, fillHeightProperty, getAlignment, getBaselineOffset, getClassCssMetaData, getContentBias, getCssMetaData, getHgrow, getMargin, getSpacing, isFillHeight, requestLayout, setAlignment, setFillHeight, setHgrow, setMargin, setSpacing, spacingProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Pane

        +getChildren
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.layout.Region

        +backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeGeomBounds, impl_createPeer, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapToPixelProperty, widthProperty
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Parent

        +getChildrenUnmodifiable, getImpl_traversalEngine, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, setImpl_traversalEngine
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.scene.Node

        +addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_getAccessible, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_isShowMnemonics, impl_isTreeVisible, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        BASE_TEXT_STYLE

        +
        public static final java.lang.String BASE_TEXT_STYLE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        BASE_CHECKBOX_STYLE

        +
        public static final java.lang.String BASE_CHECKBOX_STYLE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        INVALID_PARAMETER_STYLE

        +
        public static final java.lang.String INVALID_PARAMETER_STYLE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        WARNING_PARAMETER_STYLE

        +
        public static final java.lang.String WARNING_PARAMETER_STYLE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        VALID_PARAMETER_STYLE

        +
        public static final java.lang.String VALID_PARAMETER_STYLE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        create

        +
        public static GUIParameter<?> create(Parameter<?> parameter,
        +                                     SettingsPane sp)
        +
        Factory method to create @code{GUIParameter}s from @code{Parameter}s. + Use this to create an appropriate @code{GUIParameter} from any instance of @code{Parameter}, + rather than manually downcasting the @code{Parameter} object every time.
        +
        +
        Parameters:
        +
        parameter - a parameter for which to generate a @code{GUIParameter}.
        +
        sp - a reference to the @code{SettingsPane}.
        +
        Returns:
        +
        an appropriate instance of @code{GUIParameter}.
        +
        +
      • +
      + + + +
        +
      • +

        isValid

        +
        public boolean isValid()
        +
        +
        Returns:
        +
        true if the current value of the parameter does not prevent the + experiment from running.
        +
        +
      • +
      + + + +
        +
      • +

        validate

        +
        public void validate()
        +
        Force the parameter to validate its current value, and apply the associated + style to the @code{GUIParameter}.
        +
      • +
      + + + +
        +
      • +

        requiresReset

        +
        public boolean requiresReset()
        +
        Certain parameter changes might require the experiment to be reset, either + because the parameter is critical or because its status requires a reset.
        +
        +
        Returns:
        +
        true if an experiment reset is required due to this parameter changing.
        +
        +
      • +
      + + + +
        +
      • +

        applyValue

        +
        public void applyValue()
        +
        Set the current parameter value as the reference value of the @code{GUIParameter}. + The new reference value will be used to determine the validity of the parameter, + should its value change.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/class-use/GUIBooleanParameter.html b/doc/jcgp/gui/settings/parameters/class-use/GUIBooleanParameter.html new file mode 100644 index 0000000..7c50b42 --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/class-use/GUIBooleanParameter.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.settings.parameters.GUIBooleanParameter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.settings.parameters.GUIBooleanParameter

+
+
No usage of jcgp.gui.settings.parameters.GUIBooleanParameter
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/class-use/GUIDoubleParameter.html b/doc/jcgp/gui/settings/parameters/class-use/GUIDoubleParameter.html new file mode 100644 index 0000000..9c2898b --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/class-use/GUIDoubleParameter.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.settings.parameters.GUIDoubleParameter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.settings.parameters.GUIDoubleParameter

+
+
No usage of jcgp.gui.settings.parameters.GUIDoubleParameter
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/class-use/GUIIntegerParameter.html b/doc/jcgp/gui/settings/parameters/class-use/GUIIntegerParameter.html new file mode 100644 index 0000000..8699e2f --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/class-use/GUIIntegerParameter.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class jcgp.gui.settings.parameters.GUIIntegerParameter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.settings.parameters.GUIIntegerParameter

+
+
No usage of jcgp.gui.settings.parameters.GUIIntegerParameter
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/class-use/GUIParameter.html b/doc/jcgp/gui/settings/parameters/class-use/GUIParameter.html new file mode 100644 index 0000000..def915d --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/class-use/GUIParameter.html @@ -0,0 +1,197 @@ + + + + + +Uses of Class jcgp.gui.settings.parameters.GUIParameter + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.settings.parameters.GUIParameter

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/package-frame.html b/doc/jcgp/gui/settings/parameters/package-frame.html new file mode 100644 index 0000000..cefb2da --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/package-frame.html @@ -0,0 +1,23 @@ + + + + + +jcgp.gui.settings.parameters + + + + + +

jcgp.gui.settings.parameters

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/gui/settings/parameters/package-summary.html b/doc/jcgp/gui/settings/parameters/package-summary.html new file mode 100644 index 0000000..4c42757 --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/package-summary.html @@ -0,0 +1,165 @@ + + + + + +jcgp.gui.settings.parameters + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.gui.settings.parameters

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/package-tree.html b/doc/jcgp/gui/settings/parameters/package-tree.html new file mode 100644 index 0000000..10d1b00 --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/package-tree.html @@ -0,0 +1,163 @@ + + + + + +jcgp.gui.settings.parameters Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.gui.settings.parameters

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/parameters/package-use.html b/doc/jcgp/gui/settings/parameters/package-use.html new file mode 100644 index 0000000..1a4faea --- /dev/null +++ b/doc/jcgp/gui/settings/parameters/package-use.html @@ -0,0 +1,159 @@ + + + + + +Uses of Package jcgp.gui.settings.parameters + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.gui.settings.parameters

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/testcase/TestCaseTable.html b/doc/jcgp/gui/settings/testcase/TestCaseTable.html new file mode 100644 index 0000000..d8629d7 --- /dev/null +++ b/doc/jcgp/gui/settings/testcase/TestCaseTable.html @@ -0,0 +1,343 @@ + + + + + +TestCaseTable + + + + + + + + +
+ + + + + + + +
+ + + +
+
jcgp.gui.settings.testcase
+

Class TestCaseTable

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    javafx.event.EventTarget
    +
    +
    +
    +
    public class TestCaseTable
    +extends javafx.stage.Stage
    +
    This is a test case table. For problems that have test cases, + this table shows the test case inputs and outputs. Clicking on + a test case (one is shown per row) applies the values to all + chromosome inputs shows the calculated values throughout the chromosome.
    +
    +
    Author:
    +
    Eduardo Pedroni
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.stage.Stage

        +fullScreenExitHintProperty, fullScreenExitKeyProperty, fullScreenProperty, iconifiedProperty, maxHeightProperty, maximizedProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, titleProperty
      • +
      +
        +
      • + + +

        Properties inherited from class javafx.stage.Window

        +eventDispatcherProperty, focusedProperty, heightProperty, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, sceneProperty, showingProperty, widthProperty, xProperty, yProperty
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TestCaseTable(TestCaseProblem<java.lang.Object> testCaseProblem, + GUI gui) +
      Make a new instance of TestCaseTable.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      javafx.scene.control.TableView<TestCaseProblem.TestCase<java.lang.Object>>getTable() 
      +
        +
      • + + +

        Methods inherited from class javafx.stage.Stage

        +close, fullScreenExitHintProperty, fullScreenExitKeyProperty, fullScreenProperty, getFullScreenExitHint, getFullScreenExitKeyCombination, getIcons, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOwner, getStyle, getTitle, iconifiedProperty, impl_getMXWindowType, impl_setImportant, impl_setPrimary, initModality, initOwner, initStyle, isFullScreen, isIconified, isMaximized, isResizable, maxHeightProperty, maximizedProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, setFullScreen, setFullScreenExitHint, setFullScreenExitKeyCombination, setIconified, setMaxHeight, setMaximized, setMaxWidth, setMinHeight, setMinWidth, setResizable, setScene, setTitle, show, showAndWait, titleProperty, toBack, toFront
      • +
      +
        +
      • + + +

        Methods inherited from class javafx.stage.Window

        +addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getScene, getWidth, getX, getY, heightProperty, hide, impl_getPeer, impl_getWindows, isFocused, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, removeEventFilter, removeEventHandler, requestFocus, sceneProperty, setEventDispatcher, setFocused, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setWidth, setX, setY, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TestCaseTable

        +
        public TestCaseTable(TestCaseProblem<java.lang.Object> testCaseProblem,
        +                     GUI gui)
        +
        Make a new instance of TestCaseTable.
        +
        +
        Parameters:
        +
        testCaseProblem - the TestCaseProblem whose data must be displayed.
        +
        gui - a reference to the GUI.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTable

        +
        public javafx.scene.control.TableView<TestCaseProblem.TestCase<java.lang.Object>> getTable()
        +
        +
        Returns:
        +
        a reference to the actual table of test cases.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/testcase/class-use/TestCaseTable.html b/doc/jcgp/gui/settings/testcase/class-use/TestCaseTable.html new file mode 100644 index 0000000..96cb1f2 --- /dev/null +++ b/doc/jcgp/gui/settings/testcase/class-use/TestCaseTable.html @@ -0,0 +1,164 @@ + + + + + +Uses of Class jcgp.gui.settings.testcase.TestCaseTable + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
jcgp.gui.settings.testcase.TestCaseTable

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/testcase/package-frame.html b/doc/jcgp/gui/settings/testcase/package-frame.html new file mode 100644 index 0000000..eb8b7fe --- /dev/null +++ b/doc/jcgp/gui/settings/testcase/package-frame.html @@ -0,0 +1,20 @@ + + + + + +jcgp.gui.settings.testcase + + + + + +

jcgp.gui.settings.testcase

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/gui/settings/testcase/package-summary.html b/doc/jcgp/gui/settings/testcase/package-summary.html new file mode 100644 index 0000000..04e97f1 --- /dev/null +++ b/doc/jcgp/gui/settings/testcase/package-summary.html @@ -0,0 +1,144 @@ + + + + + +jcgp.gui.settings.testcase + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp.gui.settings.testcase

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/testcase/package-tree.html b/doc/jcgp/gui/settings/testcase/package-tree.html new file mode 100644 index 0000000..a490a72 --- /dev/null +++ b/doc/jcgp/gui/settings/testcase/package-tree.html @@ -0,0 +1,145 @@ + + + + + +jcgp.gui.settings.testcase Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp.gui.settings.testcase

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/gui/settings/testcase/package-use.html b/doc/jcgp/gui/settings/testcase/package-use.html new file mode 100644 index 0000000..961f983 --- /dev/null +++ b/doc/jcgp/gui/settings/testcase/package-use.html @@ -0,0 +1,159 @@ + + + + + +Uses of Package jcgp.gui.settings.testcase + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp.gui.settings.testcase

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/package-frame.html b/doc/jcgp/package-frame.html new file mode 100644 index 0000000..4435a19 --- /dev/null +++ b/doc/jcgp/package-frame.html @@ -0,0 +1,20 @@ + + + + + +jcgp + + + + + +

jcgp

+
+

Classes

+ +
+ + diff --git a/doc/jcgp/package-summary.html b/doc/jcgp/package-summary.html new file mode 100644 index 0000000..c3d775d --- /dev/null +++ b/doc/jcgp/package-summary.html @@ -0,0 +1,144 @@ + + + + + +jcgp + + + + + + + + +
+ + + + + + + +
+ + +
+

Package jcgp

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/package-tree.html b/doc/jcgp/package-tree.html new file mode 100644 index 0000000..37c5ee6 --- /dev/null +++ b/doc/jcgp/package-tree.html @@ -0,0 +1,137 @@ + + + + + +jcgp Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package jcgp

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/jcgp/package-use.html b/doc/jcgp/package-use.html new file mode 100644 index 0000000..39a6934 --- /dev/null +++ b/doc/jcgp/package-use.html @@ -0,0 +1,159 @@ + + + + + +Uses of Package jcgp + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
jcgp

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/overview-frame.html b/doc/overview-frame.html new file mode 100644 index 0000000..1fce504 --- /dev/null +++ b/doc/overview-frame.html @@ -0,0 +1,39 @@ + + + + + +Overview List + + + + + +
All Classes
+
+

Packages

+ +
+

 

+ + diff --git a/doc/overview-summary.html b/doc/overview-summary.html new file mode 100644 index 0000000..1ce3fbb --- /dev/null +++ b/doc/overview-summary.html @@ -0,0 +1,207 @@ + + + + + +Overview + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
jcgp 
jcgp.backend.function 
jcgp.backend.modules 
jcgp.backend.modules.es 
jcgp.backend.modules.mutator 
jcgp.backend.modules.problem 
jcgp.backend.parameters 
jcgp.backend.parameters.monitors 
jcgp.backend.parsers 
jcgp.backend.population 
jcgp.backend.resources 
jcgp.backend.statistics 
jcgp.gui 
jcgp.gui.console 
jcgp.gui.dragresize 
jcgp.gui.population 
jcgp.gui.settings 
jcgp.gui.settings.parameters 
jcgp.gui.settings.testcase 
+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/overview-tree.html b/doc/overview-tree.html new file mode 100644 index 0000000..6c72b1e --- /dev/null +++ b/doc/overview-tree.html @@ -0,0 +1,386 @@ + + + + + +Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/package-list b/doc/package-list new file mode 100644 index 0000000..939ebb8 --- /dev/null +++ b/doc/package-list @@ -0,0 +1,19 @@ +jcgp +jcgp.backend.function +jcgp.backend.modules +jcgp.backend.modules.es +jcgp.backend.modules.mutator +jcgp.backend.modules.problem +jcgp.backend.parameters +jcgp.backend.parameters.monitors +jcgp.backend.parsers +jcgp.backend.population +jcgp.backend.resources +jcgp.backend.statistics +jcgp.gui +jcgp.gui.console +jcgp.gui.dragresize +jcgp.gui.population +jcgp.gui.settings +jcgp.gui.settings.parameters +jcgp.gui.settings.testcase diff --git a/doc/script.js b/doc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/doc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/doc/stylesheet.css b/doc/stylesheet.css new file mode 100644 index 0000000..cebb4fd --- /dev/null +++ b/doc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/src/jcgp/JCGP.java b/src/jcgp/JCGP.java index 213dd06..898f229 100644 --- a/src/jcgp/JCGP.java +++ b/src/jcgp/JCGP.java @@ -38,7 +38,6 @@ import org.reflections.Reflections; * and must implement jcgp.resources.Console. * * @author Eduardo Pedroni - * @see Resources, Module */ public class JCGP { @@ -121,7 +120,7 @@ public class JCGP { * Iterates through all classes in the classpath and builds a list * of instances of all valid evolutionary strategies found. In order * to be included in this list, a class must implement {@code EvolutionaryStrategy} - * and must contain a constructor with a Resources object as its only argument. + * and must contain a constructor with a {@code Resources} object as its only argument. */ private void createEvolutionaryStrategyList() { Set> esList = reflections.getSubTypesOf(EvolutionaryStrategy.class); @@ -159,7 +158,7 @@ public class JCGP { * Iterates through all classes in the classpath and builds a list * of instances of all valid mutators found. In order to be included * in this list, a class must implement {@code Mutator} - * and must contain a constructor with a Resources object as its only argument. + * and must contain a constructor with a {@code Resources} object as its only argument. */ private void createMutatorList() { Set> mutatorList = reflections.getSubTypesOf(Mutator.class); @@ -198,7 +197,7 @@ public class JCGP { * Iterates through all classes in the classpath and builds a list * of instances of all valid problem types found. In order to be included * in this list, a class must implement {@code Problem} - * and must contain a constructor with a Resources object as its only argument. + * and must contain a constructor with a {@code Resources} object as its only argument. */ private void createProblemList() { Set> problemTypes = reflections.getSubTypesOf(Problem.class); @@ -236,7 +235,7 @@ public class JCGP { } /** - * Returns a reference to the ModifiableResources used by the + * Returns a reference to the {@code ModifiableResources} used by the * experiment.
* Use this with care, since changing experiment parameters may * have unintended effects if not done properly. @@ -303,7 +302,7 @@ public class JCGP { /** - * @param mutator the index of the desired mutator. + * @param index the index of the desired mutator. */ public void setMutator(int index) { this.mutator = mutators.get(index); @@ -312,7 +311,7 @@ public class JCGP { /** - * @param evolutionaryStrategy the index of the desired evolutionary strategy. + * @param index the index of the desired evolutionary strategy. */ public void setEvolutionaryStrategy(int index) { this.evolutionaryStrategy = evolutionaryStrategies.get(index); @@ -321,11 +320,12 @@ public class JCGP { /** - * @param problem the index of the desired problem type. + * @param index the index of the desired problem type. */ public void setProblem(int index) { this.problem = problems.get(index); resources.setFunctionSet(problem.getFunctionSet()); + resources.setFitnessOrientation(problem.getFitnessOrientation()); } /** @@ -348,13 +348,14 @@ public class JCGP { if (resources.currentGeneration() < resources.generations()) { // we still have generations left to go - if (problem.isPerfectSolution(population.getFittest())) { + int perfect = problem.perfectSolutionFound(population); + if (perfect >= 0) { // log results - statistics.logRun(resources.currentGeneration(), population.getFittest().getFitness(), population.getFittest().getActiveNodes().size(), true); + statistics.logRun(resources.currentGeneration(), population.get(perfect).getFitness(), population.get(perfect).getActiveNodes().size(), true); resetStatisticsValues(); // solution has been found, start next run - resources.println("[CGP] Solution found, generation " + resources.currentGeneration() + ", chromosome " + population.getFittestIndex() + "\n"); + resources.println("[CGP] Solution found: generation " + resources.currentGeneration() + ", chromosome " + perfect + "\n"); if (resources.currentRun() < resources.runs()) { // there are still runs left @@ -369,17 +370,23 @@ public class JCGP { finished = true; } } else { - if (problem.isImprovement(population.getFittest())) { - printImprovement(); + // solution not found, look for improvement + int improvement = problem.hasImprovement(population); + + if (improvement >= 0) { + // there has been improvement, print it + printImprovement(improvement); lastImprovementGeneration = resources.currentGeneration(); - bestFitnessFound = population.getFittest().getFitness(); - activeNodes = population.getFittest().getActiveNodes().size(); + bestFitnessFound = population.get(improvement).getFitness(); + activeNodes = population.get(improvement).getActiveNodes().size(); } else { + // there has been no improvement, report generation reportGeneration(); } resources.incrementGeneration(); - // solution isn't perfect and we still have generations left, evolve more! - evolutionaryStrategy.evolve(population, mutator, (Resources) resources); + + // we still have generations left, evolve more! + evolutionaryStrategy.evolve(population, mutator); } } else { // the run has ended, tell the user and log it @@ -436,9 +443,9 @@ public class JCGP { * Used internally for reporting improvement, which happens independently of * the report interval parameter. */ - private void printImprovement() { + private void printImprovement(int chromosome) { resources.println("[CGP] Generation: " + resources.currentGeneration() + ", fittest chromosome (" - + population.getFittestIndex() + ") has fitness: " + population.getFittest().getFitness()); + + chromosome + ") has fitness: " + population.get(chromosome).getFitness()); } /** @@ -446,8 +453,8 @@ public class JCGP { * by the report interval parameter. */ private void reportGeneration() { - resources.reportln("[CGP] Generation: " + resources.currentGeneration() + ", fittest chromosome (" - + population.getFittestIndex() + ") has fitness: " + population.getFittest().getFitness()); + resources.reportln("[CGP] Generation: " + resources.currentGeneration() + ", best fitness: " + + problem.getBestFitness()); } /** @@ -545,7 +552,7 @@ public class JCGP { * @param chromosomeIndex the population index into which to parse. */ public void loadChromosome(File file, int chromosomeIndex) { - ChromosomeParser.parse(file, population.getChromosome(chromosomeIndex), resources); + ChromosomeParser.parse(file, population.get(chromosomeIndex), resources); } /** @@ -556,7 +563,7 @@ public class JCGP { * @param chromosomeIndex the index of the chromosome to save. */ public void saveChromosome(File file, int chromosomeIndex) { - ChromosomeParser.save(file, population.getChromosome(chromosomeIndex), resources); + ChromosomeParser.save(file, population.get(chromosomeIndex), resources); } /** diff --git a/src/jcgp/backend/function/DigitalCircuitFunctions.java b/src/jcgp/backend/function/DigitalCircuitFunctions.java index 0d4ae8e..a217eb7 100644 --- a/src/jcgp/backend/function/DigitalCircuitFunctions.java +++ b/src/jcgp/backend/function/DigitalCircuitFunctions.java @@ -5,16 +5,16 @@ package jcgp.backend.function; * (defined as unsigned integer functions in the classic * CGP implementation) defined in static nested classes. *
- * This is the function set used by DigitalCircuitProblem. + * This is the function set used by {@code DigitalCircuitProblem}. * - * @see DigitalCircuiProblem + * @see jcgp.backend.modules.problem.DigitalCircuitProblem * @author Eduardo Pedroni * */ public class DigitalCircuitFunctions extends FunctionSet { /** - * Creates a new instance of DigitalCircuitFunctions. + * Creates a new instance of {@code DigitalCircuitFunctions}. */ public DigitalCircuitFunctions() { registerFunctions( diff --git a/src/jcgp/backend/function/SymbolicRegressionFunctions.java b/src/jcgp/backend/function/SymbolicRegressionFunctions.java index 9c6a3b1..a4750fc 100644 --- a/src/jcgp/backend/function/SymbolicRegressionFunctions.java +++ b/src/jcgp/backend/function/SymbolicRegressionFunctions.java @@ -1,5 +1,7 @@ package jcgp.backend.function; +import jcgp.backend.modules.problem.SymbolicRegressionProblem; + /** * This class contains all symbolic regression functions * (defined as double functions in the classic CGP implementation) @@ -180,7 +182,7 @@ public class SymbolicRegressionFunctions extends FunctionSet { /** * Protected tangent function, in radians. Returns the tangent of input 0. - * If input 0 is less than {@link DoubleArithmetic.}DIVISION_LIMIT, + * If input 0 is less than {@code DoubleArithmetic.DIVISION_LIMIT}, * this returns it unchanged. * * @see Math @@ -317,7 +319,7 @@ public class SymbolicRegressionFunctions extends FunctionSet { /** * Protected natural log function. Returns the natural log of the absolute - * value of input 0. If input 0 is less than {@link DoubleArithmetic.}DIVISION_LIMIT, + * value of input 0. If input 0 is less than {@code DoubleArithmetic.DIVISION_LIMIT}, * this returns it unchanged. * * @see Math @@ -346,7 +348,7 @@ public class SymbolicRegressionFunctions extends FunctionSet { /** * Protected log base 10 function. Returns the log to base 10 the absolute - * value of input 0. If input 0 is less than {@link DoubleArithmetic.}DIVISION_LIMIT, + * value of input 0. If input 0 is less than {@code DoubleArithmetic.DIVISION_LIMIT}, * this returns it unchanged. * * @see Math diff --git a/src/jcgp/backend/function/TravellingSalesmanFunctions.java b/src/jcgp/backend/function/TravellingSalesmanFunctions.java index 06b44bb..8a326b5 100644 --- a/src/jcgp/backend/function/TravellingSalesmanFunctions.java +++ b/src/jcgp/backend/function/TravellingSalesmanFunctions.java @@ -3,9 +3,8 @@ package jcgp.backend.function; /** * This class contains all travelling salesman functions in static nested classes. *
- * This is the function set used by TravellingSalesmanProblem. + * This is the function set to be used by TravellingSalesmanProblem. * - * @see TravellingSalesmanProblem * @author Eduardo Pedroni * */ @@ -113,7 +112,7 @@ public class TravellingSalesmanFunctions extends FunctionSet { /** * Scaled exponential function. Returns the exponential of input 0 - * scaled to the range 0 < x < 1. + * scaled to the range 0 < x > 1. * * @see Math */ @@ -228,7 +227,7 @@ public class TravellingSalesmanFunctions extends FunctionSet { /** * Scaled hypotenuse function. Returns the square root of input 0 squared - * plus input 1 squared, scaled to the range 0 < x < 1. + * plus input 1 squared, scaled to the range 0 < x > 1. * * @see Math */ @@ -257,7 +256,7 @@ public class TravellingSalesmanFunctions extends FunctionSet { /** * Scaled addition returns the sum of inputs 0 and 1 scaled - * to the range 0 < x < 1. + * to the range 0 < x > 1. * */ public static class ScaledAddition extends Function { @@ -285,7 +284,7 @@ public class TravellingSalesmanFunctions extends FunctionSet { /** * Symmetric subtraction returns the absolute difference between inputs 0 and 1, - * scaled to the range 0 < x < 1. + * scaled to the range 0 <; x > 1. * */ public static class SymmetricSubtraction extends Function { diff --git a/src/jcgp/backend/modules/Module.java b/src/jcgp/backend/modules/Module.java index b53184e..a4d36c1 100644 --- a/src/jcgp/backend/modules/Module.java +++ b/src/jcgp/backend/modules/Module.java @@ -3,6 +3,7 @@ package jcgp.backend.modules; import java.util.ArrayList; import jcgp.backend.parameters.Parameter; +import jcgp.backend.resources.Resources; /** * This class defines the expected behaviour of a module. Generally, modules @@ -15,6 +16,9 @@ import jcgp.backend.parameters.Parameter; * In addition, implementations of {@code Module} should specify a module name * in their constructor using {@code setName()}. If a name is not provided, * the simple name of the class will be used. + *
+ * All modules, by definition, contain a reference to the experiment's resources, which + * must be passed at construction. The resources should be accessed with {@code getResources()}. * * @see Parameter * @author Eduardo Pedroni @@ -24,6 +28,17 @@ public abstract class Module { private ArrayList> localParameters = new ArrayList>(); private String name = getClass().getSimpleName(); + private Resources resources; + + /** + * Makes a new instance of this class. This should never + * be called directly, and should instead be used by subclasses. + * + * @param resources a reference to the experiment's resources. + */ + protected Module(Resources resources) { + this.resources = resources; + } /** * This method is used by the GUI in order to build visual @@ -66,6 +81,13 @@ public abstract class Module { this.name = name; } + /** + * @return the experiment's resources. + */ + protected Resources getResources() { + return resources; + } + @Override public String toString() { return name; diff --git a/src/jcgp/backend/modules/es/EvolutionaryStrategy.java b/src/jcgp/backend/modules/es/EvolutionaryStrategy.java index 1a14552..30a3c4a 100644 --- a/src/jcgp/backend/modules/es/EvolutionaryStrategy.java +++ b/src/jcgp/backend/modules/es/EvolutionaryStrategy.java @@ -32,13 +32,22 @@ import jcgp.backend.resources.Resources; */ public abstract class EvolutionaryStrategy extends Module { + /** + * For internal use only, initialises the resources field. + * + * @param resources the experiment's resources. + */ + protected EvolutionaryStrategy(Resources resources) { + super(resources); + } + /** * Performs the selection algorithm and uses the mutator to create * the next generation of solutions. * * @param population the population to evolve. * @param mutator the mutator with which to mutate the promoted individuals. - * @param resources parameters and utilities for optional reference. */ - public abstract void evolve(Population population, Mutator mutator, Resources resources); + public abstract void evolve(Population population, Mutator mutator); + } diff --git a/src/jcgp/backend/modules/es/MuPlusLambda.java b/src/jcgp/backend/modules/es/MuPlusLambda.java index 8186b11..3743ee6 100644 --- a/src/jcgp/backend/modules/es/MuPlusLambda.java +++ b/src/jcgp/backend/modules/es/MuPlusLambda.java @@ -28,21 +28,21 @@ import jcgp.backend.resources.Resources; * */ public class MuPlusLambda extends EvolutionaryStrategy { - + private IntegerParameter mu, lambda; private BooleanParameter report; - + /** * Creates a new instance of MuPlusLambda. * * @param resources a reference to the experiment's resources. */ public MuPlusLambda(final Resources resources) { - super(); + super(resources); mu = new IntegerParameter(1, "Parents (μ)") { @Override public void validate(Number newValue) { - if (newValue.intValue() + lambda.get() != resources.populationSize()) { + if (newValue.intValue() + lambda.get() != getResources().populationSize()) { status = ParameterStatus.INVALID; status.setDetails("Parents + offspring must equal population size."); } else if (newValue.intValue() <= 0) { @@ -53,11 +53,11 @@ public class MuPlusLambda extends EvolutionaryStrategy { } } }; - + lambda = new IntegerParameter(4, "Offspring (λ)") { @Override public void validate(Number newValue) { - if (newValue.intValue() + mu.get() != resources.populationSize()) { + if (newValue.intValue() + mu.get() != getResources().populationSize()) { status = ParameterStatus.INVALID; status.setDetails("Parents + offspring must equal population size."); } else if (newValue.intValue() <= 0) { @@ -68,29 +68,30 @@ public class MuPlusLambda extends EvolutionaryStrategy { } } }; - + report = new BooleanParameter(false, "Report"); - + setName("(μ + λ)"); registerParameters(mu, lambda, report); } - + @Override - public void evolve(Population population, Mutator mutator, Resources resources) { - /* Population is sorted in ascending order of fitness, so leave the last - * mu chromosomes intact - */ - for (int i = 0; i < resources.populationSize() - mu.get(); i++) { + public void evolve(Population population, Mutator mutator) { + // sort the population in order of best fitness + population.sort(); + + // population is now sorted in ascending order of fitness, the last chromosomes are the fittest + for (int i = 0; i < getResources().populationSize() - mu.get(); i++) { // select a random parent out of the lambda offspring individuals - int randomParent = resources.populationSize() - 1 - resources.getRandomInt(mu.get()); - if (report.get()) resources.reportln("[ES] Copying Chr " + randomParent + " to population position " + i); + int randomParent = getResources().populationSize() - 1 - getResources().getRandomInt(mu.get()); + if (report.get()) getResources().reportln("[ES] Copying Chr " + randomParent + " to population position " + i); population.copyChromosome(randomParent, i); - + // mutate selected chromosome - if (report.get()) resources.reportln("[ES] Mutating copied chromosome"); - mutator.mutate(population.getChromosome(i), resources); + if (report.get()) getResources().reportln("[ES] Mutating copied chromosome"); + mutator.mutate(population.get(i)); } - - if (report.get()) resources.reportln("[ES] Generation is complete"); + + if (report.get()) getResources().reportln("[ES] Generation is complete"); } } diff --git a/src/jcgp/backend/modules/es/TournamentSelection.java b/src/jcgp/backend/modules/es/TournamentSelection.java index 209caca..6d467f5 100644 --- a/src/jcgp/backend/modules/es/TournamentSelection.java +++ b/src/jcgp/backend/modules/es/TournamentSelection.java @@ -44,7 +44,7 @@ public class TournamentSelection extends EvolutionaryStrategy { * @param resources a reference to the experiment's resources. */ public TournamentSelection(final Resources resources) { - super(); + super(resources); tournamentSize = new IntegerParameter(1, "Tournament size") { @Override public void validate(Number newValue) { @@ -73,17 +73,22 @@ public class TournamentSelection extends EvolutionaryStrategy { } @Override - public void evolve(Population population, Mutator mutator, Resources resources) { + public void evolve(Population population, Mutator mutator) { /* Create an entirely new population by isolating random subsets of * the original population and choosing the fittest individual within * that subset. Each chosen individual is mutated and copied back into the * population. */ - Chromosome[] newPopulation = new Chromosome[resources.populationSize()]; + + // sort the population by fitness to make things easier + population.sort(); + + // this array holds the new population temporarily, until it is copied over + Chromosome[] newPopulation = new Chromosome[getResources().populationSize()]; // start by selecting all of the chromosomes that will be promoted - for (int i = 0; i < resources.populationSize(); i++) { - if (report.get()) resources.reportln("[ES] Starting tournament " + i); + for (int i = 0; i < getResources().populationSize(); i++) { + if (report.get()) getResources().reportln("[ES] Starting tournament " + i); /* the population is sorted in ascending order of fitness, * meaning the higher the index of the contender, the fitter @@ -91,21 +96,21 @@ public class TournamentSelection extends EvolutionaryStrategy { */ int[] contenders = new int[tournamentSize.get()]; for (int t = 0; t < tournamentSize.get() - 1; t++) { - contenders[t] = resources.getRandomInt(resources.populationSize()); + contenders[t] = getResources().getRandomInt(getResources().populationSize()); } - if (report.get()) resources.reportln("[ES] Selected contenders: " + Arrays.toString(contenders)); + if (report.get()) getResources().reportln("[ES] Selected contenders: " + Arrays.toString(contenders)); Arrays.sort(contenders); - if (report.get()) resources.reportln("[ES] Chr " + contenders[contenders.length - 1] + " wins the tournament, copying and mutating..."); + if (report.get()) getResources().reportln("[ES] Chr " + contenders[contenders.length - 1] + " wins the tournament, copying and mutating..."); // create a copy of the selected chromosome and mutate it - newPopulation[i] = new Chromosome(population.getChromosome(contenders[contenders.length - 1])); - mutator.mutate(newPopulation[i], resources); + newPopulation[i] = new Chromosome(population.get(contenders[contenders.length - 1])); + mutator.mutate(newPopulation[i]); } - if (report.get()) resources.reportln("[ES] Tournaments are finished, copying new chromosomes into population"); + if (report.get()) getResources().reportln("[ES] Tournaments are finished, copying new chromosomes into population"); // newPopulation has been generated, copy into the population - for (int c = 0; c < resources.populationSize(); c++) { - population.getChromosome(c).copyGenes(newPopulation[c]); + for (int c = 0; c < getResources().populationSize(); c++) { + population.get(c).copyGenes(newPopulation[c]); } - if (report.get()) resources.reportln("[ES] Generation is complete"); + if (report.get()) getResources().reportln("[ES] Generation is complete"); } } diff --git a/src/jcgp/backend/modules/mutator/FixedPointMutator.java b/src/jcgp/backend/modules/mutator/FixedPointMutator.java index 5d40c57..1efdd2f 100644 --- a/src/jcgp/backend/modules/mutator/FixedPointMutator.java +++ b/src/jcgp/backend/modules/mutator/FixedPointMutator.java @@ -25,7 +25,7 @@ public class FixedPointMutator extends PointMutator { * @param resources a reference to the experiment's resources. */ public FixedPointMutator(final Resources resources) { - super(); + super(resources); genesMutated = new IntegerParameter(5, "Genes mutated", false, false) { @Override public void validate(Number newValue) { diff --git a/src/jcgp/backend/modules/mutator/Mutator.java b/src/jcgp/backend/modules/mutator/Mutator.java index 02fd70a..56692ef 100644 --- a/src/jcgp/backend/modules/mutator/Mutator.java +++ b/src/jcgp/backend/modules/mutator/Mutator.java @@ -25,14 +25,22 @@ import jcgp.backend.resources.Resources; * */ public abstract class Mutator extends Module { + + /** + * For internal use only, initialises the resources field. + * + * @param resources the experiment's resources. + */ + protected Mutator(Resources resources) { + super(resources); + } /** * Applies mutations to the specified chromosome according * to the parameter values. * * @param chromosome the chromosome to mutate. - * @param resources parameters and utilities for optional reference. */ - public abstract void mutate(Chromosome chromosome, Resources resources); + public abstract void mutate(Chromosome chromosome); } diff --git a/src/jcgp/backend/modules/mutator/PercentPointMutator.java b/src/jcgp/backend/modules/mutator/PercentPointMutator.java index 31a7739..015edf4 100644 --- a/src/jcgp/backend/modules/mutator/PercentPointMutator.java +++ b/src/jcgp/backend/modules/mutator/PercentPointMutator.java @@ -24,12 +24,12 @@ public class PercentPointMutator extends PointMutator { private DoubleParameter mutationRate; /** - * Creates a new instance of PointMutator. + * Creates a new instance of PercentPointMutator. * * @param resources a reference to the experiment's resources. */ public PercentPointMutator(final Resources resources) { - super(); + super(resources); mutationRate = new DoubleParameter(10, "Percent mutation", false, false) { @Override public void validate(Number newValue) { diff --git a/src/jcgp/backend/modules/mutator/PointMutator.java b/src/jcgp/backend/modules/mutator/PointMutator.java index 0223a37..9e421c2 100644 --- a/src/jcgp/backend/modules/mutator/PointMutator.java +++ b/src/jcgp/backend/modules/mutator/PointMutator.java @@ -24,48 +24,57 @@ public abstract class PointMutator extends Mutator { protected IntegerParameter genesMutated; protected BooleanParameter report; + + /** + * For internal use only, initialises the resources field. + * + * @param resources the experiment's resources. + */ + protected PointMutator(Resources resources) { + super(resources); + } @Override - public void mutate(Chromosome chromosome, Resources resources) { - if (report.get()) resources.reportln("[Mutator] Number of mutations to be performed: " + genesMutated.get()); + public void mutate(Chromosome chromosome) { + if (report.get()) getResources().reportln("[Mutator] Number of mutations to be performed: " + genesMutated.get()); // for however many genes must be mutated for (int i = 0; i < genesMutated.get(); i++) { MutableElement m = chromosome.getRandomMutableElement(); - if (report.get()) resources.report("[Mutator] Mutation " + i + " selected " + m + ", "); + if (report.get()) getResources().report("[Mutator] Mutation " + i + " selected " + m + ", "); // outputs and nodes are mutated differently if (m instanceof Output) { - if (report.get()) resources.report("changed source from " + ((Output) m).getSource() + " "); + if (report.get()) getResources().report("changed source from " + ((Output) m).getSource() + " "); // outputs are easy, simply set to a different random connection, any will do m.setConnection(0, chromosome.getRandomConnection()); - if (report.get()) resources.reportln("to " + ((Output) m).getSource()); + if (report.get()) getResources().reportln("to " + ((Output) m).getSource()); } else if (m instanceof Node) { /* nodes are more complicated, first we must decide whether to mutate the function * or a connection * we do this by generating a random int between 0 and 1 + arity */ - int geneType = resources.getRandomInt(1 + resources.arity()); + int geneType = getResources().getRandomInt(1 + getResources().arity()); // if the int is less than 1, mutate function, else mutate connections if (geneType < 1) { - if (report.get()) resources.report("changed function from " + ((Node) m).getFunction() + " "); + if (report.get()) getResources().report("changed function from " + ((Node) m).getFunction() + " "); - ((Node) m).setFunction(resources.getRandomFunction()); + ((Node) m).setFunction(getResources().getRandomFunction()); - if (report.get()) resources.reportln("to " + ((Node) m).getFunction()); + if (report.get()) getResources().reportln("to " + ((Node) m).getFunction()); } else { // if we decided to mutate connection, subtract 1 from geneType so it fits into the arity range geneType -= 1; - if (report.get()) resources.report("changed connection " + geneType + " from " + ((Node) m).getConnection(geneType) + " "); + if (report.get()) getResources().report("changed connection " + geneType + " from " + ((Node) m).getConnection(geneType) + " "); m.setConnection(geneType, chromosome.getRandomConnection(((Node) m).getColumn())); - if (report.get()) resources.reportln("to " + ((Node) m).getConnection(geneType)); + if (report.get()) getResources().reportln("to " + ((Node) m).getConnection(geneType)); } } } diff --git a/src/jcgp/backend/modules/mutator/ProbabilisticMutator.java b/src/jcgp/backend/modules/mutator/ProbabilisticMutator.java index c65fc22..9273558 100644 --- a/src/jcgp/backend/modules/mutator/ProbabilisticMutator.java +++ b/src/jcgp/backend/modules/mutator/ProbabilisticMutator.java @@ -25,17 +25,14 @@ public class ProbabilisticMutator extends Mutator { private DoubleParameter mutationProbability; private BooleanParameter report; - - private Resources resources; - + /** * Creates a new instance of ProbabilisticMutator. * * @param resources a reference to the experiment's resources. */ public ProbabilisticMutator(Resources resources) { - super(); - this.resources = resources; + super(resources); mutationProbability = new DoubleParameter(10, "Mutation probability", false, false) { @Override @@ -56,53 +53,53 @@ public class ProbabilisticMutator extends Mutator { } @Override - public void mutate(Chromosome chromosome, Resources resources) { - if (report.get()) resources.reportln("[Mutator] Starting mutations"); + public void mutate(Chromosome chromosome) { + if (report.get()) getResources().reportln("[Mutator] Starting mutations"); // go through nodes - [rows][columns] - for (int r = 0; r < resources.rows(); r++) { - for (int c = 0; c < resources.columns(); c++) { + for (int r = 0; r < getResources().rows(); r++) { + for (int c = 0; c < getResources().columns(); c++) { // go through all connections - for (int a = 0; a < resources.arity(); a++) { + for (int a = 0; a < getResources().arity(); a++) { if (mutateGene()) { Node n = chromosome.getNode(r, c); - if (report.get()) resources.report("[Mutator] Mutating " + n + + if (report.get()) getResources().report("[Mutator] Mutating " + n + ", changed connection " + a + " from " + n.getConnection(a) + " "); n.setConnection(a, chromosome.getRandomConnection(c)); - if (report.get()) resources.reportln("to " + n.getConnection(a)); + if (report.get()) getResources().reportln("to " + n.getConnection(a)); } } // deal with node function next if (mutateGene()) { Node n = chromosome.getNode(r, c); - if (report.get()) resources.report("[Mutator] Mutating " + n + + if (report.get()) getResources().report("[Mutator] Mutating " + n + ", changed function from " + n.getFunction()); - n.setFunction(resources.getRandomFunction()); + n.setFunction(getResources().getRandomFunction()); - if (report.get()) resources.reportln(" to " + n.getFunction()); + if (report.get()) getResources().reportln(" to " + n.getFunction()); } } } // finally, mutate outputs - for (int o = 0; o < resources.outputs(); o++) { + for (int o = 0; o < getResources().outputs(); o++) { if (mutateGene()) { Output out = chromosome.getOutput(o); - if (report.get()) resources.report("[Mutator] Mutating " + out + + if (report.get()) getResources().report("[Mutator] Mutating " + out + ", changed source from " + out.getSource()); out.setConnection(0, chromosome.getRandomConnection()); - if (report.get()) resources.reportln("to " + out.getSource()); + if (report.get()) getResources().reportln("to " + out.getSource()); } } - if (report.get()) resources.reportln("[Mutator] Mutation finished "); + if (report.get()) getResources().reportln("[Mutator] Mutation finished "); } @@ -115,6 +112,6 @@ public class ProbabilisticMutator extends Mutator { * @return true if a mutation should be performed, false if otherwise. */ private boolean mutateGene() { - return resources.getRandomDouble(100) < mutationProbability.get(); + return getResources().getRandomDouble(100) < mutationProbability.get(); } } diff --git a/src/jcgp/backend/modules/problem/DigitalCircuitProblem.java b/src/jcgp/backend/modules/problem/DigitalCircuitProblem.java index 6654928..0071ed5 100644 --- a/src/jcgp/backend/modules/problem/DigitalCircuitProblem.java +++ b/src/jcgp/backend/modules/problem/DigitalCircuitProblem.java @@ -2,7 +2,6 @@ package jcgp.backend.modules.problem; import jcgp.backend.function.DigitalCircuitFunctions; import jcgp.backend.function.UnsignedInteger; -import jcgp.backend.population.Chromosome; import jcgp.backend.population.Population; import jcgp.backend.resources.Resources; @@ -18,7 +17,7 @@ import jcgp.backend.resources.Resources; * */ public class DigitalCircuitProblem extends TestCaseProblem { - + /** * Construct a new instance of DigitalCircuitProblem. * @@ -30,43 +29,38 @@ public class DigitalCircuitProblem extends TestCaseProblem { setName("Digital circuit"); setFileExtension(".plu"); } - + @Override public void evaluate(Population population, Resources resources) { // for every chromosome in the population for (int i = 0; i < resources.populationSize(); i++) { // assume an initial fitness of 0 int fitness = 0; - + // iterate over every test case for (int t = 0; t < testCases.size(); t++) { - population.getChromosome(i).setInputs((Object[]) testCases.get(t).getInputs()); + population.get(i).setInputs((Object[]) testCases.get(t).getInputs()); // check each output for (int o = 0; o < resources.outputs(); o++) { - Integer output = ((UnsignedInteger) population.getChromosome(i).getOutput(o).calculate()).get(); + Integer output = ((UnsignedInteger) population.get(i).getOutput(o).calculate()).get(); Integer matches = ~(output ^ testCases.get(t).getOutput(o).get()); // check only the relevant bits int bits = (int) Math.pow(2.0, (double) resources.inputs()); for (int b = 0; b < bits; b++) { - if (((matches >>> b) & 1) == 1) { - fitness++; - } + fitness += (matches >>> b) & 1; } } } - + // assign the resulting fitness to the respective individual - population.getChromosome(i).setFitness(fitness); + population.get(i).setFitness(fitness); } - - // sort population - population.sortAscending(); } - + @Override protected double getMaxFitness() { // calculate the fitness by looking at inputs, not number of test cases - double maxFitness = Math.pow(2.0, (double) resources.inputs()) * resources.outputs(); + double maxFitness = Math.pow(2.0, (double) getResources().inputs()) * getResources().outputs(); return maxFitness; } @@ -81,24 +75,30 @@ public class DigitalCircuitProblem extends TestCaseProblem { for (int o = 0; o < outputCases.length; o++) { outputCases[o] = new UnsignedInteger(outputs[o]); } - + return new TestCase(inputCases, outputCases); } - + @Override - public boolean isPerfectSolution(Chromosome fittest) { + public int perfectSolutionFound(Population population) { // higher fitness is better - return fittest.getFitness() >= maxFitness.get(); + for (int i = 0; i < getResources().populationSize(); i++) { + if (population.get(i).getFitness() >= maxFitness.get()) { + return i; + } + } + return -1; } @Override - public boolean isImprovement(Chromosome fittest) { + public int hasImprovement(Population population) { // higher fitness is better - if (fittest.getFitness() > bestFitness.get()) { - bestFitness.set(fittest.getFitness()); - return true; - } else { - return false; + for (int i = 0; i < getResources().populationSize(); i++) { + if (population.get(i).getFitness() > bestFitness.get()) { + bestFitness.set(population.get(i).getFitness()); + return i; + } } + return -1; } } diff --git a/src/jcgp/backend/modules/problem/Problem.java b/src/jcgp/backend/modules/problem/Problem.java index 721b9b3..5f194b5 100644 --- a/src/jcgp/backend/modules/problem/Problem.java +++ b/src/jcgp/backend/modules/problem/Problem.java @@ -6,23 +6,21 @@ import jcgp.backend.function.FunctionSet; import jcgp.backend.modules.Module; import jcgp.backend.parameters.DoubleParameter; import jcgp.backend.parameters.monitors.DoubleMonitor; -import jcgp.backend.population.Chromosome; import jcgp.backend.population.Population; import jcgp.backend.resources.ModifiableResources; import jcgp.backend.resources.Resources; /** - * Defines the general behaviour of a CGP problem. The primary function of Problem + * Defines the general behaviour of a CGP problem. The primary function of {@code Problem} * is to evaluate a population and assign a fitness value to each chromosome. *
- * By convention, the population should be sorted into ascending order of fitness. The - * reason for this is because high fitness is not necessarily better - some problem types - * might treat 0 as the best fitness. In order for the evolutionary strategy to be able to - * pick chromosomes by fitness, the safest way is to sort them such that the last chromosome - * is the fittest. + * Problems are free to define whether better fitness means a higher or lower fitness value. + * In some problem types, it is more convenient to treat fitness 0 as the best possible value. + * This can be done by changing the fitness orientation to {@code BestFitness.HIGH} or {@code BestFitness.LOW} as appropriate. + * Fitness orientation is set to high by default. *

- * When extending this class, the constructor should call a couple methods in order to - * properly construct the problem type: {@code setFunctionSet()} and {@code setFileExtension()}, + * When extending this class, the constructor should call a few methods in order to + * properly construct the problem type: {@code setFunctionSet()}, {@code setFileExtension()} and {@code setFitnessOrientation()}, * with the respective arguments. As with all subclasses of {@code Module}, {@code setName()} and * {@code registerParameters()} should be used where appropriate as well. *

@@ -41,12 +39,18 @@ public abstract class Problem extends Module { private FunctionSet functionSet; private String fileExtension = ".*"; + private BestFitness fitnessOrientation = BestFitness.HIGH; + protected DoubleParameter maxFitness, bestFitness; /** * Initialises the two problem-wide parameters, maxFitness and bestFitness. + * + * @param resources a reference to the experiment's resources. */ - public Problem() { + public Problem(Resources resources) { + super(resources); + maxFitness = new DoubleMonitor(0, "Max fitness"); bestFitness = new DoubleMonitor(0, "Best fitness"); registerParameters(maxFitness, bestFitness); @@ -73,29 +77,26 @@ public abstract class Problem extends Module { public abstract void evaluate(Population population, Resources resources); /** - * Used to assert whether a given chromosome is a perfect solution + * Used to assert whether a given population contains a perfect solution * to the problem. It is up to the problem to define what qualifies * a perfect solution, as some problems (subject ones such as music and * art evolution, for example) might not have perfect solutions at all. - *

- * Note that if this method returns true, the experiment will move on - * to the next run, or finish if no more runs are left. * - * @param candidate the potentially perfect chromosome. - * @return true if the argument is a perfect solution. + * @param population the population to search through for a perfect chromosome. + * @return the perfect solution index, if one exits, -1 if no perfect solution was found. */ - public abstract boolean isPerfectSolution(Chromosome candidate); + public abstract int perfectSolutionFound(Population population); /** - * Used to assert whether a given chromosome is an improvement over + * Used to assert whether a given population has a chromosome that is an improvement over * the current best chromosome. A typical implementation of this method * will simply compare chromosome fitness values, though the problem type * is free to implement this in any way. * - * @param candidate the potentially fitter chromosome. - * @return true if the argument is fitter than the currently fittest chromosome. + * @param population the population potentially containing a fitter chromosome. + * @return the index of the first chromosome in the population that is an improvement, -1 if none is found. */ - public abstract boolean isImprovement(Chromosome candidate); + public abstract int hasImprovement(Population population); /** * Parses the specified file and uses the parsed data to @@ -148,6 +149,20 @@ public abstract class Problem extends Module { return fileExtension; } + /** + * @param newOrientation the new fitness orientation to set. + */ + protected void setFitnessOrientation(BestFitness newOrientation) { + this.fitnessOrientation = newOrientation; + } + + /** + * @return the fitness orientation of this particular problem. + */ + public BestFitness getFitnessOrientation() { + return fitnessOrientation; + } + /** * @return the current best fitness, in other words, the fitness * value of the fittest chromosome in the current generation. diff --git a/src/jcgp/backend/modules/problem/SymbolicRegressionProblem.java b/src/jcgp/backend/modules/problem/SymbolicRegressionProblem.java index 04e9fe8..24c61d6 100644 --- a/src/jcgp/backend/modules/problem/SymbolicRegressionProblem.java +++ b/src/jcgp/backend/modules/problem/SymbolicRegressionProblem.java @@ -4,7 +4,6 @@ import jcgp.backend.function.SymbolicRegressionFunctions; import jcgp.backend.parameters.BooleanParameter; import jcgp.backend.parameters.DoubleParameter; import jcgp.backend.parameters.ParameterStatus; -import jcgp.backend.population.Chromosome; import jcgp.backend.population.Population; import jcgp.backend.resources.Resources; @@ -20,12 +19,12 @@ import jcgp.backend.resources.Resources; *
  • Error threshold: the maximum difference allowed between an * evolved output and the equivalent output from the problem data. * Outputs within the error threshold will be considered correct. - * This is only used if HITS is enabled.
  • + * This is only used if hits is enabled. *
  • Perfection threshold: if the fitness is calculated without - * using the HITS method, it is a decimal value. A solution is + * using the hits method, it is a decimal value. A solution is * considered perfect when the difference between its fitness and * the maximum possible fitness is within the perfection threshold.
  • - *
  • HITS-based fitness: increment the fitness by 1 whenever the + *
  • Hits-based fitness: increment the fitness by 1 whenever the * chromosome output is within the error threshold.
  • * * @@ -79,7 +78,7 @@ public class SymbolicRegressionProblem extends TestCaseProblem { } }; - hitsBasedFitness = new BooleanParameter(true, "HITS-based fitness"); + hitsBasedFitness = new BooleanParameter(false, "Hits-based fitness"); registerParameters(errorThreshold, perfectionThreshold, hitsBasedFitness); } @@ -87,15 +86,15 @@ public class SymbolicRegressionProblem extends TestCaseProblem { @Override public void evaluate(Population population, Resources resources) { // for every chromosome in the population - for (int i = 0; i < resources.populationSize(); i++) { + for (int i = 0; i < getResources().populationSize(); i++) { // assume an initial fitness of 0 double fitness = 0; // for each test case for (int t = 0; t < testCases.size(); t++) { - population.getChromosome(i).setInputs((Object[]) testCases.get(t).getInputs()); + population.get(i).setInputs((Object[]) testCases.get(t).getInputs()); // check each output - for (int o = 0; o < resources.outputs(); o++) { - Double cgpValue = (Double) population.getChromosome(i).getOutput(o).calculate(); + for (int o = 0; o < getResources().outputs(); o++) { + Double cgpValue = (Double) population.get(i).getOutput(o).calculate(); Double dataValue = testCases.get(t).getOutput(o); if (hitsBasedFitness.get()) { if (Math.abs(cgpValue - dataValue) <= errorThreshold.get()) { @@ -107,11 +106,8 @@ public class SymbolicRegressionProblem extends TestCaseProblem { } } // assign the resulting fitness to the respective individual - population.getChromosome(i).setFitness(fitness); + population.get(i).setFitness(fitness); } - - // sort population - population.sortAscending(); } @Override @@ -130,19 +126,27 @@ public class SymbolicRegressionProblem extends TestCaseProblem { } @Override - public boolean isPerfectSolution(Chromosome fittest) { + public int perfectSolutionFound(Population population) { // higher fitness is better - return fittest.getFitness() >= maxFitness.get() - perfectionThreshold.get(); + for (int i = 0; i < getResources().populationSize(); i++) { + if (population.get(i).getFitness() >= maxFitness.get() - perfectionThreshold.get()) { + return i; + } + } + return -1; } @Override - public boolean isImprovement(Chromosome fittest) { + public int hasImprovement(Population population) { // higher fitness is better - if (fittest.getFitness() > bestFitness.get()) { - bestFitness.set(fittest.getFitness()); - return true; - } else { - return false; + for (int i = 0; i < getResources().populationSize(); i++) { + System.out.println("checking for improvement"); + if (population.get(i).getFitness() > bestFitness.get()) { + System.out.println("found a better chr, " + i); + bestFitness.set(population.get(i).getFitness()); + return i; + } } + return -1; } } diff --git a/src/jcgp/backend/modules/problem/TestCaseProblem.java b/src/jcgp/backend/modules/problem/TestCaseProblem.java index c11fab4..69c078d 100644 --- a/src/jcgp/backend/modules/problem/TestCaseProblem.java +++ b/src/jcgp/backend/modules/problem/TestCaseProblem.java @@ -30,7 +30,7 @@ public abstract class TestCaseProblem extends Problem { * contains arrays of inputs and outputs and associated getters. * * @author Eduardo Pedroni - * @param + * @param the data type of the test case. */ public static class TestCase { private U[] inputs; @@ -80,7 +80,6 @@ public abstract class TestCaseProblem extends Problem { } protected ObservableList> testCases; - protected Resources resources; /** * Creates a new TestCaseProblem object. @@ -88,8 +87,7 @@ public abstract class TestCaseProblem extends Problem { * @param resources a reference to the experiment's resources. */ public TestCaseProblem(Resources resources) { - super(); - this.resources = resources; + super(resources); testCases = FXCollections.observableArrayList(); } @@ -139,12 +137,12 @@ public abstract class TestCaseProblem extends Problem { public final void addTestCase(String[] inputs, String[] outputs) { TestCase testCase = parseTestCase(inputs, outputs); - if (testCase.getInputs().length != resources.inputs()) { + if (testCase.getInputs().length != getResources().inputs()) { throw new IllegalArgumentException("Received test case with " + testCase.getInputs().length + - " inputs but need exactly " + resources.inputs()); - } else if (testCase.getOutputs().length != resources.outputs()) { + " inputs but need exactly " + getResources().inputs()); + } else if (testCase.getOutputs().length != getResources().outputs()) { throw new IllegalArgumentException("Received test case with " + testCase.getOutputs().length + - " outputs but need exactly " + resources.outputs()); + " outputs but need exactly " + getResources().outputs()); } else { this.testCases.add(testCase); maxFitness.set(getMaxFitness()); diff --git a/src/jcgp/backend/modules/problem/TravellingSalesmanProblem.java b/src/jcgp/backend/modules/problem/TravellingSalesmanProblem.java deleted file mode 100644 index 94417ae..0000000 --- a/src/jcgp/backend/modules/problem/TravellingSalesmanProblem.java +++ /dev/null @@ -1,56 +0,0 @@ -package jcgp.backend.modules.problem; - -import java.io.File; - -import jcgp.backend.function.TravellingSalesmanFunctions; -import jcgp.backend.population.Chromosome; -import jcgp.backend.population.Population; -import jcgp.backend.resources.ModifiableResources; -import jcgp.backend.resources.Resources; - -/** - * Travelling salesman problem - *

    - * Using this problem type, travelling salesman tours can be evolved. - * {@code parseData()} must be used to load the desired city - * coordinates in the standard .tsp format. - * - * @see TravellingSalesmanFunctions - * @author Eduardo Pedroni - * - */ -public class TravellingSalesmanProblem extends Problem { - - /** - * Construct a new instance of TravellingSalesmanProblem. - * - * @param resources a reference to the experiment's resources. - */ - public TravellingSalesmanProblem(Resources resources) { - setFunctionSet(new TravellingSalesmanFunctions()); - setName("Travelling salesman"); - setFileExtension(".tsp"); - } - - @Override - public void evaluate(Population population, Resources resources) { - // TODO Auto-generated method stub - } - - @Override - public boolean isPerfectSolution(Chromosome fittest) { - // TODO Auto-generated method stub - return false; - } - - @Override - public void parseProblemData(File file, ModifiableResources resources) { - // TODO Auto-generated method stub - } - - @Override - public boolean isImprovement(Chromosome fittest) { - // TODO Auto-generated method stub - return false; - } -} diff --git a/src/jcgp/backend/parameters/BooleanParameter.java b/src/jcgp/backend/parameters/BooleanParameter.java index f0abe50..8c869ac 100644 --- a/src/jcgp/backend/parameters/BooleanParameter.java +++ b/src/jcgp/backend/parameters/BooleanParameter.java @@ -1,6 +1,7 @@ package jcgp.backend.parameters; import javafx.beans.property.SimpleBooleanProperty; +import jcgp.backend.parameters.monitors.BooleanMonitor; /** * Parameter subclass for the boolean type. Most of the diff --git a/src/jcgp/backend/parameters/DoubleParameter.java b/src/jcgp/backend/parameters/DoubleParameter.java index 14b3151..235848f 100644 --- a/src/jcgp/backend/parameters/DoubleParameter.java +++ b/src/jcgp/backend/parameters/DoubleParameter.java @@ -1,6 +1,7 @@ package jcgp.backend.parameters; import javafx.beans.property.SimpleDoubleProperty; +import jcgp.backend.parameters.monitors.DoubleMonitor; /** * Parameter subclass for the double type. Most of the diff --git a/src/jcgp/backend/parameters/IntegerParameter.java b/src/jcgp/backend/parameters/IntegerParameter.java index d0d7328..2c3723a 100644 --- a/src/jcgp/backend/parameters/IntegerParameter.java +++ b/src/jcgp/backend/parameters/IntegerParameter.java @@ -1,6 +1,7 @@ package jcgp.backend.parameters; import javafx.beans.property.SimpleIntegerProperty; +import jcgp.backend.parameters.monitors.IntegerMonitor; /** * Parameter subclass for the double type. Most of the diff --git a/src/jcgp/backend/parameters/Parameter.java b/src/jcgp/backend/parameters/Parameter.java index c04dee9..c605180 100644 --- a/src/jcgp/backend/parameters/Parameter.java +++ b/src/jcgp/backend/parameters/Parameter.java @@ -34,7 +34,7 @@ import javafx.beans.property.ReadOnlyProperty; * will likely have different validity criteria. The type of status is * {@link ParameterStatus}, an enum type defining all valid states. * - * @see Module, ParameterStatus + * @see jcgp.backend.modules.Module * @author Eduardo Pedroni * @param the data type stored in the parameter. */ diff --git a/src/jcgp/backend/parameters/ParameterStatus.java b/src/jcgp/backend/parameters/ParameterStatus.java index 4041cad..558f57f 100644 --- a/src/jcgp/backend/parameters/ParameterStatus.java +++ b/src/jcgp/backend/parameters/ParameterStatus.java @@ -11,6 +11,7 @@ package jcgp.backend.parameters; *
  • WARNING_RESET: the new parameter value is technically valid * but will require a reset.
  • *
  • VALID: the new value is valid.
  • + * *

    * The above definitions are final in the sense that they outline * how parameters are treated by the program depending on their diff --git a/src/jcgp/backend/parsers/ChromosomeParser.java b/src/jcgp/backend/parsers/ChromosomeParser.java index c35b5b9..f5f25ae 100644 --- a/src/jcgp/backend/parsers/ChromosomeParser.java +++ b/src/jcgp/backend/parsers/ChromosomeParser.java @@ -137,8 +137,9 @@ public abstract class ChromosomeParser { * * @param file the file to write to * @param chromosome the chromosome to save + * @param resources a reference to the experiment's resources. */ - public static void save(File file, Chromosome chromosome, ModifiableResources resources) { + public static void save(File file, Chromosome chromosome, Resources resources) { PrintWriter writer; try { writer = new PrintWriter(file); diff --git a/src/jcgp/backend/population/Chromosome.java b/src/jcgp/backend/population/Chromosome.java index b99b817..0dfa801 100644 --- a/src/jcgp/backend/population/Chromosome.java +++ b/src/jcgp/backend/population/Chromosome.java @@ -159,7 +159,8 @@ public class Chromosome implements Comparable { * this instance. In practice, this iterates through the * entire chromosome making equivalent connections and * setting functions to the same values as those in the - * specified chromosome. + * specified chromosome. It also sets the fitness of the + * copy to the same value as the original. *
    * It is assumed that both chromosomes have the same * topology; while this method will still run if that is not @@ -205,6 +206,9 @@ public class Chromosome implements Comparable { System.out.println("Warning: Connection of subtype " + copyOutput.getClass().toString() + " is not explicitly handled by copy constructor."); } } + + // copy fitness as well + this.fitness = clone.getFitness(); } /** @@ -264,7 +268,6 @@ public class Chromosome implements Comparable { * number of inputs exactly, an exception is thrown. * * @param values the values the input should take. - * @throws ParameterMismatchException if the wrong number of values is received. */ public void setInputs(Object ... values) { // if the values provided don't match the specified number of inputs, the user should be warned diff --git a/src/jcgp/backend/population/MutableElement.java b/src/jcgp/backend/population/MutableElement.java index 33f3890..5782a99 100644 --- a/src/jcgp/backend/population/MutableElement.java +++ b/src/jcgp/backend/population/MutableElement.java @@ -44,7 +44,7 @@ public interface MutableElement { *
  • not reflexive: a.copyOf(a) returns false;
  • *
  • not transitive: if a.copyOf(b) is true and b.copyOf(c) is true, a.copyOf(c) is * not necessarily true since it is possible that a == c.
  • - * + * * @param element the mutable element to compare to. * @return true if {@code element} is a copy of this element. */ diff --git a/src/jcgp/backend/population/Population.java b/src/jcgp/backend/population/Population.java index 5d549e9..70cfda8 100644 --- a/src/jcgp/backend/population/Population.java +++ b/src/jcgp/backend/population/Population.java @@ -3,6 +3,7 @@ package jcgp.backend.population; import java.util.Arrays; import java.util.Collections; +import jcgp.backend.modules.problem.BestFitness; import jcgp.backend.resources.Resources; /** @@ -19,16 +20,6 @@ import jcgp.backend.resources.Resources; * experiment's specified seed. If an entirely random population * is needed, {@code reinitialise()} should be used to randomise * all chromosomes without creating a new instance of {@code Population}. - *

    - * By convention the population's chromosomes should always be sorted in - * order of fitness, from worst to best. This cannot be done automatically - * since a higher fitness value does not necessarily mean better fitness; - * some problem types might instead interpret fitness 0 as a perfect solution. - * Sorting the population is done easily using {@code sortAscending()} and - * {@code sortDescending()}, and should be done by the problem type as appropriate. - * It is critical to sort the population after it is evaluated as - * evolutionary strategies will obey the convention and assume the population - * is sorted in order of fitness. * * * @author Eduardo Pedroni @@ -75,7 +66,7 @@ public class Population { * @param index the chromosome to return. * @return the indexed chromosome. */ - public Chromosome getChromosome(int index) { + public Chromosome get(int index) { return chromosomes[index]; } @@ -112,46 +103,19 @@ public class Population { chromosomes[c].reinitialiseConnections(); } } - - /** - * The fittest chromosome, by convention, is the last one - * in the array. Problem evaluation methods are expected to - * sort the population into ascending order of fitness, such - * that the best chromosome is in the last position (size - 1). - * This method assumes that the population is sorted as such - * and returns the last chromosome in the array. - * - * @return the fittest chromosome in the population. - */ - public Chromosome getFittest() { - return chromosomes[chromosomes.length - 1]; - } - - /** - * The fittest chromosome, by convention, is the last one - * in the array. Problem evaluation methods are expected to - * sort the population into ascending order of fitness, such - * that the best chromosome is in the last position (size - 1). - * This method assumes that the population is sorted as such - * and returns the last index in the array. - * - * @return the index of the fittest chromosome. - */ - public int getFittestIndex() { - return chromosomes.length - 1; - } - - /** - * Sort the population into ascending order of fitness. - */ - public void sortAscending() { - Arrays.sort(chromosomes); - } - + /** - * Sort the population into descending order of fitness. + * Sorts the population in ascending order of fitness quality. + * What this means is that the best fitness chromosome will be + * in the last position, even though it might have the lowest + * fitness value. Fitness orientation as specified in the resources + * is respected. */ - public void sortDescending() { - Arrays.sort(chromosomes, Collections.reverseOrder()); + public void sort() { + if (resources.fitnessOrientation() == BestFitness.HIGH) { + Arrays.sort(chromosomes); + } else { + Arrays.sort(chromosomes, Collections.reverseOrder()); + } } } diff --git a/src/jcgp/backend/resources/ModifiableResources.java b/src/jcgp/backend/resources/ModifiableResources.java index 3dab2aa..5df26e2 100644 --- a/src/jcgp/backend/resources/ModifiableResources.java +++ b/src/jcgp/backend/resources/ModifiableResources.java @@ -3,6 +3,7 @@ package jcgp.backend.resources; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import jcgp.backend.function.FunctionSet; +import jcgp.backend.modules.problem.BestFitness; import jcgp.backend.parameters.IntegerParameter; import jcgp.backend.parameters.ParameterStatus; import jcgp.backend.parameters.monitors.IntegerMonitor; @@ -136,6 +137,13 @@ public class ModifiableResources extends Resources { this.reportInterval.set(report); } + /** + * @param newOrientation the new orientation to set. + */ + public void setFitnessOrientation(BestFitness newOrientation) { + this.fitnessOrientation = newOrientation; + } + /** * @return the rows parameter. */ diff --git a/src/jcgp/backend/resources/Resources.java b/src/jcgp/backend/resources/Resources.java index ebd6fb2..59a29ea 100644 --- a/src/jcgp/backend/resources/Resources.java +++ b/src/jcgp/backend/resources/Resources.java @@ -4,6 +4,7 @@ import java.util.Random; import jcgp.backend.function.Function; import jcgp.backend.function.FunctionSet; +import jcgp.backend.modules.problem.BestFitness; import jcgp.backend.parameters.IntegerParameter; /** @@ -15,6 +16,8 @@ import jcgp.backend.parameters.IntegerParameter; * the actual parameter values can be obtained using getter methods. Note that, for code brevity, * this class's getters do not start with the word "get". For instance, to get the number of rows, * one would use {@code rows()} instead of {@code getRows()} which doesn't exist. + * The fitness orientation of the problem being solved can also be retrieved using {@code fitnessOrientation()}. + * Evolutionary strategies will typically use this to perform selection. *

    * In addition to parameters, this class also offers utility methods. Any necessary random numbers * should be obtained using {@code getRandomInt()} and {@code getRandomDouble()} as these methods @@ -23,7 +26,7 @@ import jcgp.backend.parameters.IntegerParameter; * Finally, printing to the console should be done via the resources using the report and print * methods, so that these prints also get sent to the GUI console (if one is present). * - * @see Parameter, Console, FunctionSet + * @see jcgp.backend.parameters.Parameter * @author Eduardo Pedroni * */ @@ -37,6 +40,8 @@ public class Resources { protected Console console; + protected BestFitness fitnessOrientation; + /** * @return the number of rows. */ @@ -135,6 +140,13 @@ public class Resources { return reportInterval.get(); } + /** + * @return the fitness orientation. + */ + public BestFitness fitnessOrientation() { + return fitnessOrientation; + } + /* * Utility functions */ diff --git a/src/jcgp/backend/tests/PopulationTests.java b/src/jcgp/backend/tests/PopulationTests.java index 2f36ce1..21789d7 100644 --- a/src/jcgp/backend/tests/PopulationTests.java +++ b/src/jcgp/backend/tests/PopulationTests.java @@ -46,7 +46,7 @@ public class PopulationTests { int chromosomes = 0; while (true) { try { - population.getChromosome(chromosomes); + population.get(chromosomes); } catch (IndexOutOfBoundsException e) { break; } @@ -64,6 +64,6 @@ public class PopulationTests { // initialise a population with a copy of it population = new Population(oc, resources); // check that the first parent chromosome is identical to, but not the same instance as, the one given - assertTrue("Incorrect chromosome in population.", population.getChromosome(0).compareGenesTo(oc) && population.getChromosome(0) != oc); + assertTrue("Incorrect chromosome in population.", population.get(0).compareGenesTo(oc) && population.get(0) != oc); } } diff --git a/src/jcgp/gui/GUI.java b/src/jcgp/gui/GUI.java index cd4778f..437a739 100644 --- a/src/jcgp/gui/GUI.java +++ b/src/jcgp/gui/GUI.java @@ -257,4 +257,8 @@ public class GUI extends Application { public void flushConsole() { console.flush(); } + + public int getChromosomeIndex() { + return populationPane.getSelectionModel().getSelectedIndex(); + } } diff --git a/src/jcgp/gui/console/GUIConsole.java b/src/jcgp/gui/console/GUIConsole.java index de4b378..b3d037c 100644 --- a/src/jcgp/gui/console/GUIConsole.java +++ b/src/jcgp/gui/console/GUIConsole.java @@ -15,12 +15,25 @@ import javafx.scene.layout.AnchorPane; import jcgp.backend.resources.Console; import jcgp.gui.GUI; +/** + * Console pane used by the GUI to display CGP output messages. + * This class realises {@code Console}. It consists of a JavaFX + * {@code TextArea} and a {@code StringBuffer}. The buffer is filled + * as print messages are queued. Calling {@code flush()} writes the + * contents of the buffer to the {@code TextArea} and empties the buffer. + * + * @see Console + * @author Eduardo Pedroni + * + */ public class GUIConsole extends AnchorPane implements Console { private TextArea textArea = new TextArea("Welcome to JCGP!\n"); - private StringBuffer printBuffer = new StringBuffer(); + /** + * Creates a new instance of this class. + */ public GUIConsole() { super(); textArea.setEditable(false); @@ -31,7 +44,10 @@ public class GUIConsole extends AnchorPane implements Console { * This has not been fixed as of 8/4/2014. * * The following code modifies the EventDispatcher to consume the right mouse - * button click, preventing the default menu from appearing. + * button click, preventing the default menu from appearing. It propagates the mouse + * click further so other elements will respond appropriately. + * + * TODO this should be refactored once the API is updated. */ final EventDispatcher initial = textArea.getEventDispatcher(); textArea.setEventDispatcher(new EventDispatcher() { @@ -76,6 +92,7 @@ public class GUIConsole extends AnchorPane implements Console { new SeparatorMenuItem(), clearConsole)); + // anchor the text area so it resizes automatically AnchorPane.setTopAnchor(textArea, GUI.RESIZE_MARGIN); AnchorPane.setBottomAnchor(textArea, 0.0); AnchorPane.setRightAnchor(textArea, 0.0); diff --git a/src/jcgp/gui/dragresize/HorizontalDragResize.java b/src/jcgp/gui/dragresize/HorizontalDragResize.java index 84c322f..b618b74 100644 --- a/src/jcgp/gui/dragresize/HorizontalDragResize.java +++ b/src/jcgp/gui/dragresize/HorizontalDragResize.java @@ -7,9 +7,11 @@ import javafx.scene.layout.Region; import jcgp.gui.GUI; /** - * - * Decorator pattern. - * + * This class adds horizontal drag resize functionality to any + * arbitrary region provided. This is done by using the static + * method {@code makeDragResizable()}. + *

    + * This is based on a class by Andrew Till found on: * http://andrewtill.blogspot.co.uk/2012/12/dragging-to-resize-javafx-region.html * */ @@ -18,13 +20,29 @@ public class HorizontalDragResize { private boolean dragging = false; private final Region region; + /** + * For internal use only, creates an instance of the actual + * resizer used. + * + * @param region the region to make resizable. + */ private HorizontalDragResize(Region region) { this.region = region; } + /** + * Makes the specified region drag resizable. + * This particular implementation only creates a resize + * click-and-drag area on the left side of the region. + * The resize area is defined by {@code GUI.RESIZE_MARGIN}. + * + * @param region the region to make resizable. + */ public static void makeDragResizable(final Region region) { + // make the instance, this actually performs the resizing final HorizontalDragResize dr = new HorizontalDragResize(region); + // set mouse listeners region.setOnMousePressed(new EventHandler() { @Override public void handle(MouseEvent event) { @@ -52,12 +70,22 @@ public class HorizontalDragResize { } + /** + * If the press happened in the resize area, raise the drag flag. + * + * @param event the associated mouse event. + */ private void mousePressed(MouseEvent event) { if(isInDraggableZone(event)) { dragging = true; } } + /** + * If drag flag is high, resize the region to match the mouse position. + * + * @param event the associated mouse event. + */ private void mouseDragged(MouseEvent event) { if(dragging) { double newWidth = region.getWidth() - event.getX(); @@ -69,20 +97,33 @@ public class HorizontalDragResize { } } + /** + * Change the cursor if the mouse position overlaps with the resize area. + * + * @param event the associated mouse event. + */ private void mouseMoved(MouseEvent event) { if(isInDraggableZone(event) || dragging) { region.setCursor(Cursor.H_RESIZE); - } - else { + } else { region.setCursor(Cursor.DEFAULT); } } + /** + * Finish resizing. + */ private void mouseReleased() { dragging = false; region.setCursor(Cursor.DEFAULT); } + /** + * Assert whether the mouse cursor is in the draggable area defined by {@code GUI.RESIZE_MARGIN}. + * + * @param event the associated mouse event. + * @return true if the mouse position is in the draggable area. + */ private boolean isInDraggableZone(MouseEvent event) { return event.getX() < (GUI.RESIZE_MARGIN); } diff --git a/src/jcgp/gui/dragresize/VerticalDragResize.java b/src/jcgp/gui/dragresize/VerticalDragResize.java index 9397e5d..06186c6 100644 --- a/src/jcgp/gui/dragresize/VerticalDragResize.java +++ b/src/jcgp/gui/dragresize/VerticalDragResize.java @@ -7,7 +7,11 @@ import javafx.scene.layout.Region; import jcgp.gui.GUI; /** - * + * This class adds vertical drag resize functionality to any + * arbitrary region provided. This is done by using the static + * method {@code makeDragResizable()}. + *

    + * This is based on a class by Andrew Till found on: * http://andrewtill.blogspot.co.uk/2012/12/dragging-to-resize-javafx-region.html * */ @@ -16,13 +20,29 @@ public class VerticalDragResize { private boolean dragging = false; private final Region region; + /** + * For internal use only, creates an instance of the actual + * resizer used. + * + * @param region the region to make resizable. + */ private VerticalDragResize(Region region) { this.region = region; } + /** + * Makes the specified region drag resizable. + * This particular implementation only creates a resize + * click-and-drag area on the top side of the region. + * The resize area is defined by {@code GUI.RESIZE_MARGIN}. + * + * @param region the region to make resizable. + */ public static void makeDragResizable(final Region region) { + // make the instance, this actually performs the resizing final VerticalDragResize dr = new VerticalDragResize(region); + // set mouse listeners region.setOnMousePressed(new EventHandler() { @Override public void handle(MouseEvent event) { @@ -50,12 +70,22 @@ public class VerticalDragResize { } + /** + * If the press happened in the resize area, raise the drag flag. + * + * @param event the associated mouse event. + */ private void mousePressed(MouseEvent event) { if(isInDraggableZone(event)) { dragging = true; } } + /** + * If drag flag is high, resize the region to match the mouse position. + * + * @param event the associated mouse event. + */ private void mouseDragged(MouseEvent event) { if(dragging) { double newHeight = region.getHeight() - event.getY(); @@ -67,6 +97,11 @@ public class VerticalDragResize { } } + /** + * Change the cursor if the mouse position overlaps with the resize area. + * + * @param event the associated mouse event. + */ private void mouseMoved(MouseEvent event) { if(isInDraggableZone(event) || dragging) { region.setCursor(Cursor.V_RESIZE); @@ -76,11 +111,20 @@ public class VerticalDragResize { } } + /** + * Finish resizing. + */ private void mouseReleased() { dragging = false; region.setCursor(Cursor.DEFAULT); } + /** + * Assert whether the mouse cursor is in the draggable area defined by {@code GUI.RESIZE_MARGIN}. + * + * @param event the associated mouse event. + * @return true if the mouse position is in the draggable area. + */ private boolean isInDraggableZone(MouseEvent event) { return event.getY() < (GUI.RESIZE_MARGIN); } diff --git a/src/jcgp/gui/population/ChromosomePane.java b/src/jcgp/gui/population/ChromosomePane.java index 4a47f34..d40de2e 100644 --- a/src/jcgp/gui/population/ChromosomePane.java +++ b/src/jcgp/gui/population/ChromosomePane.java @@ -25,6 +25,8 @@ public class ChromosomePane extends ScrollPane { private int rows, columns; + private Object[] testInputs; + private boolean target = false; private PopulationPane parent; @@ -111,20 +113,21 @@ public class ChromosomePane extends ScrollPane { target = newValue; } - public void updateGenes() { + public void updateGenes(Chromosome chr) { for (int r = 0; r < rows; r++) { for (int c = 0; c < columns; c++) { + guiNodes[r][c].setNode(chr.getNode(r, c)); guiNodes[r][c].updateLines(); guiNodes[r][c].updateText(); } } for (int i = 0; i < guiOutputs.length; i++) { + guiOutputs[i].setOutput(chr.getOutput(i)); guiOutputs[i].updateLines(); } if (isEvaluating()) { - evaluate(0); + setInputs(testInputs); } - } public void unlockOutputs() { @@ -144,29 +147,27 @@ public class ChromosomePane extends ScrollPane { } public void setInputs(Object[] values) { + testInputs = values; for (int i = 0; i < guiInputs.length; i++) { guiInputs[i].setValue(values[i]); - guiInputs[i].updateText(); } - evaluate(0); + updateValues(); } - public void evaluate(int start) { - if (start >= 0 || start < columns) { - for (int c = start; c < columns; c++) { - for (int r = 0; r < rows; r++) { - guiNodes[r][c].calculate(); - guiNodes[r][c].updateText(); - } - } - for (int o = 0; o < guiOutputs.length; o++) { - guiOutputs[o].calculate(); - guiOutputs[o].updateText(); - } - } - } +// public void evaluate(int start) { +// if (start >= 0 || start < columns) { +// for (int c = 0; c < columns; c++) { +// for (int r = 0; r < rows; r++) { +// guiNodes[r][c].updateText(); +// } +// } +// for (int o = 0; o < guiOutputs.length; o++) { +// guiOutputs[o].updateText(); +// } +// } +// } - public void hideValues() { + public void updateValues() { for (int i = 0; i < guiInputs.length; i++) { guiInputs[i].updateText(); } diff --git a/src/jcgp/gui/population/GUIGene.java b/src/jcgp/gui/population/GUIGene.java index 3ace150..0eea045 100644 --- a/src/jcgp/gui/population/GUIGene.java +++ b/src/jcgp/gui/population/GUIGene.java @@ -39,8 +39,6 @@ public abstract class GUIGene extends Group { protected ChromosomePane parent; protected int locked = 0; - - protected Object value; public GUIGene() { text.setFont(Font.font("Arial", 12)); @@ -92,9 +90,5 @@ public abstract class GUIGene extends Group { public abstract void setConnectionLine(GUIGene gene); - public Object getValue() { - return value; - } - public abstract void updateText(); } diff --git a/src/jcgp/gui/population/GUIInput.java b/src/jcgp/gui/population/GUIInput.java index 05372c4..fd66ab4 100644 --- a/src/jcgp/gui/population/GUIInput.java +++ b/src/jcgp/gui/population/GUIInput.java @@ -219,14 +219,13 @@ public class GUIInput extends GUIGene { } public void setValue(Object newValue) { - value = newValue; input.setValue(newValue); } @Override public void updateText() { if (parent.isEvaluating()) { - text.setText("I: " + input.getIndex() + "\n" + value.toString()); + text.setText("I: " + input.getIndex() + "\n" + input.getValue().toString()); } else { text.setText("I: " + input.getIndex()); } diff --git a/src/jcgp/gui/population/GUINode.java b/src/jcgp/gui/population/GUINode.java index 6dfeaa4..d3ae27f 100644 --- a/src/jcgp/gui/population/GUINode.java +++ b/src/jcgp/gui/population/GUINode.java @@ -398,7 +398,8 @@ public class GUINode extends GUIGene { public void setChangingConnection(Connection newConnection) { node.setConnection(connectionIndex, newConnection); if (parent.isEvaluating()) { - parent.evaluate(node.getColumn()); + parent.updateValues(); +// parent.evaluate(node.getColumn()); } } @@ -452,24 +453,23 @@ public class GUINode extends GUIGene { public void updateText() { if (parent.isEvaluating()) { - text.setText(node.getFunction() + "\n" + value.toString()); + text.setText(node.getFunction() + "\n" + node.getValue().toString()); } else { text.setText(node.getFunction().toString()); } } - - public void calculate() { - value = node.getValue(); - } public void setFunction(Function function) { node.setFunction(function); if (parent.isEvaluating()) { - calculate(); - parent.evaluate(node.getColumn()); +// parent.evaluate(node.getColumn()); + parent.updateValues(); } else { updateText(); } - + } + + public void setNode(Node newNode) { + node = newNode; } } diff --git a/src/jcgp/gui/population/GUIOutput.java b/src/jcgp/gui/population/GUIOutput.java index 29752cd..5a76298 100644 --- a/src/jcgp/gui/population/GUIOutput.java +++ b/src/jcgp/gui/population/GUIOutput.java @@ -267,10 +267,7 @@ public class GUIOutput extends GUIGene { @Override public void setChangingConnection(Connection newConnection) { output.setConnection(0, newConnection); - if (parent.isEvaluating()) { - calculate(); - updateText(); - } + updateText(); } @Override @@ -308,19 +305,19 @@ public class GUIOutput extends GUIGene { setLocked(true); } } - - public void calculate() { - value = output.getSource().getValue(); - } @Override public void updateText() { if (parent.isEvaluating()) { - text.setText("O: " + output.getIndex() + "\n" + value.toString()); + text.setText("O: " + output.getIndex() + "\n" + output.getSource().getValue().toString()); } else { text.setText("O: " + output.getIndex()); } } + public void setOutput(Output newOutput) { + output = newOutput; + } + } diff --git a/src/jcgp/gui/population/PopulationPane.java b/src/jcgp/gui/population/PopulationPane.java index 5fa6067..4b1b7f8 100644 --- a/src/jcgp/gui/population/PopulationPane.java +++ b/src/jcgp/gui/population/PopulationPane.java @@ -27,7 +27,7 @@ public class PopulationPane extends TabPane { Tab tab; ChromosomePane cp; for (int i = 0; i < jcgp.getResources().populationSize(); i++) { - cp = new ChromosomePane(jcgp.getPopulation().getChromosome(i), gui, this); + cp = new ChromosomePane(jcgp.getPopulation().get(i), gui, this); tab = new Tab("Chr " + i); tab.setContent(cp); getTabs().add(tab); @@ -39,7 +39,7 @@ public class PopulationPane extends TabPane { evaluateTestCase(currentTestCase); } for (int i = 0; i < getTabs().size(); i++) { - ((ChromosomePane) getTabs().get(i).getContent()).updateGenes(); + ((ChromosomePane) getTabs().get(i).getContent()).updateGenes(gui.getExperiment().getPopulation().get(i)); } } @@ -73,7 +73,7 @@ public class PopulationPane extends TabPane { public void hideValues() { evaluating = false; for (int i = 0; i < getTabs().size(); i++) { - ((ChromosomePane) getTabs().get(i).getContent()).hideValues(); + ((ChromosomePane) getTabs().get(i).getContent()).updateValues(); } } diff --git a/src/jcgp/gui/settings/SettingsPane.java b/src/jcgp/gui/settings/SettingsPane.java index 802c1f1..2898dc3 100644 --- a/src/jcgp/gui/settings/SettingsPane.java +++ b/src/jcgp/gui/settings/SettingsPane.java @@ -255,7 +255,7 @@ public class SettingsPane extends AnchorPane { } private Button makeTestCaseButton() { - Button b = new Button("Show data1"); + Button b = new Button("Show data"); b.setOnAction(new EventHandler() { @Override public void handle(ActionEvent event) { @@ -331,7 +331,7 @@ public class SettingsPane extends AnchorPane { fc.getExtensionFilters().add(new ExtensionFilter("All files", "*.*")); File chrFile = fc.showOpenDialog(gui.getStage()); if (chrFile != null) { - gui.getExperiment().loadChromosome(chrFile, 0); + gui.getExperiment().loadChromosome(chrFile, gui.getChromosomeIndex()); gui.reDraw(); } gui.flushConsole(); @@ -346,7 +346,7 @@ public class SettingsPane extends AnchorPane { fc.getExtensionFilters().add(new ExtensionFilter("All files", "*.*")); File chrFile = fc.showSaveDialog(gui.getStage()); if (chrFile != null) { - gui.getExperiment().saveChromosome(chrFile, 0); + gui.getExperiment().saveChromosome(chrFile, gui.getChromosomeIndex()); } gui.flushConsole(); } @@ -474,6 +474,9 @@ public class SettingsPane extends AnchorPane { parameter.applyValue(); } updateArity(); + if (testCaseTable != null) { + testCaseTable.close(); + } } /** diff --git a/src/jcgp/gui/settings/parameters/GUIParameter.java b/src/jcgp/gui/settings/parameters/GUIParameter.java index 3009340..f896fa3 100644 --- a/src/jcgp/gui/settings/parameters/GUIParameter.java +++ b/src/jcgp/gui/settings/parameters/GUIParameter.java @@ -23,7 +23,7 @@ import jcgp.gui.settings.SettingsPane; * This is the base class for all @code{GUIParameter}s. Using the factory method @code{GUIParameter.create()} * generates an appropriate instance of this class for the specified parameter. *

    - * @code{GUIParameter} is an @code{HBox} containing a @code{Text} for the parameter name + * A @code{GUIParameter} is an @code{HBox} containing a @code{Text} for the parameter name * and a @code{Control} for interaction. * It stores an instance of its associated @code{Parameter} object and also contains a @code{Tooltip} for * displaying status information. diff --git a/src/jcgp/gui/settings/testcase/TestCaseTable.java b/src/jcgp/gui/settings/testcase/TestCaseTable.java index d4c1ff9..d4f789c 100644 --- a/src/jcgp/gui/settings/testcase/TestCaseTable.java +++ b/src/jcgp/gui/settings/testcase/TestCaseTable.java @@ -20,7 +20,10 @@ import jcgp.backend.resources.Resources; import jcgp.gui.GUI; /** - * + * This is a test case table. For problems that have test cases, + * this table shows the test case inputs and outputs. Clicking on + * a test case (one is shown per row) applies the values to all + * chromosome inputs shows the calculated values throughout the chromosome. * * @author Eduardo Pedroni * @@ -29,17 +32,27 @@ public class TestCaseTable extends Stage { private TableView> table; + /** + * Make a new instance of {@code TestCaseTable}. + * + * @param testCaseProblem the {@code TestCaseProblem} whose data must be displayed. + * @param gui a reference to the GUI. + */ public TestCaseTable(final TestCaseProblem testCaseProblem, final GUI gui) { super(); Resources resources = gui.getExperiment().getResources(); + // create the actual table view table = new TableView>(); + // get test cases from problem ObservableList> testCaseList = testCaseProblem.getTestCases(); + // prepare input and output columns ArrayList, String>> inputs = new ArrayList, String>>(resources.inputs()); ArrayList, String>> outputs = new ArrayList, String>>(resources.outputs()); + // create input columns TableColumn, String> tc; for (int i = 0; i < resources.inputs(); i++) { tc = new TableColumn, String>("I: " + i); @@ -48,13 +61,16 @@ public class TestCaseTable extends Stage { tc.setCellValueFactory(new Callback,String>, ObservableValue>() { @Override public ObservableValue call(CellDataFeatures, String> param) { + // create a new string property and give it the test case value, no need for dynamic binding - this wont change often return new SimpleStringProperty(param.getValue().getInput(index).toString()); } }); tc.setSortable(false); + // set column width so all columns are distributed across the width of the stage tc.prefWidthProperty().bind(table.widthProperty().divide(resources.inputs() + resources.outputs())); } + // create output columns for (int o = 0; o < resources.outputs(); o++) { tc = new TableColumn, String>("O: " + o); outputs.add(tc); @@ -62,37 +78,46 @@ public class TestCaseTable extends Stage { tc.setCellValueFactory(new Callback,String>, ObservableValue>() { @Override public ObservableValue call(CellDataFeatures, String> param) { + // create a new string property and give it the test case value, no need for dynamic binding - this wont change often return new SimpleStringProperty(param.getValue().getOutput(index).toString()); } }); tc.setSortable(false); + // set column width so all columns are distributed across the width of the stage tc.prefWidthProperty().bind(table.widthProperty().divide(resources.inputs() + resources.outputs())); } + // add created columns table.getColumns().addAll(inputs); table.getColumns().addAll(outputs); + // populate table with actual data table.setItems(testCaseList); + // apply test case values when a new test case is selected table.getSelectionModel().selectedItemProperty().addListener(new ChangeListener>() { @Override - public void changed( - ObservableValue> observable, TestCase oldValue, TestCase newValue) { + public void changed(ObservableValue> observable, TestCase oldValue, TestCase newValue) { gui.evaluateTestCase(newValue); } }); + // when the stage is closed, clear the selection + // this doesn't work if the stage is closed by the program for some reason... setOnCloseRequest(new EventHandler() { @Override public void handle(WindowEvent event) { gui.hideGeneValues(); - table.getSelectionModel().select(null); + table.getSelectionModel().clearSelection(); } }); setScene(new Scene(table)); } + /** + * @return a reference to the actual table of test cases. + */ public TableView> getTable() { return table; } -- cgit v1.2.3