GODPAPER | All Packages | All Classes | Index | Frames No Frames |
AbstractEvolvableFactory

Package | com.suckatmath.machinelearning.genetic.impl
Class | public class AbstractEvolvableFactory
Inheritance | AbstractEvolvableFactory Object
Implements | EvolvableFactory
Subclasses | EvolvableStringFactory

Convenience base class for EvolvableFactories. Not required, but useful. uses an example genome as a template. Don't use this directly. Extend it.

Public Properties

| Property | Defined By
--- | --- | ---
|  | exampleGenome : Genome template genome to use. | AbstractEvolvableFactory

Public Methods

| Method | Defined By
--- | --- | ---
|  | AbstractEvolvableFactory(g:Genome) | AbstractEvolvableFactory
|  | buildEvolvable(g:Genome):Evolvable As implemented, this is useless. | AbstractEvolvableFactory
|  | makeEvolvable(g:Genome = null):Evolvable create a new Evolvable | AbstractEvolvableFactory
|  | makeRandomEvolvable():Evolvable | AbstractEvolvableFactory

Property Detail

exampleGenome | property

`public var exampleGenome:Genome`

template genome to use. makeEvolvable can call newRandom on this.

Constructor Detail

AbstractEvolvableFactory | () | Constructor

`public function AbstractEvolvableFactory(g:Genome)`

Parameters

| `g:Genome` — Genome to use as example

Method Detail

buildEvolvable | () | method

`public function buildEvolvable(g:Genome):Evolvable`

As implemented, this is useless. Override it with something that builds Evolvables you want.

Parameters

| `g:Genome`

Returns

| `Evolvable` —

makeEvolvable | () | method |

`public function makeEvolvable(g:Genome = null):Evolvable`

create a new Evolvable

Parameters

| `g:Genome` (default = `null`)`` — - if not given, will use exampleGenome

Returns

| `Evolvable`

makeRandomEvolvable | () | method |

`public function makeRandomEvolvable():Evolvable`

Returns

| `Evolvable`

Thu Jan 16 2014, 01:11 PM +08:00