public abstract class AbstractLiveLinkShape<T> extends LinkShape implements Cloneable, org.marid.logging.LogSupport
org.marid.logging.LogSupport.Log| Modifier and Type | Field and Description |
|---|---|
protected static AtomicLong |
COUNTER |
protected Point |
in |
protected List<T> |
list |
protected Point |
out |
protected Rectangle[] |
rectangles |
LOGGERS| Constructor and Description |
|---|
AbstractLiveLinkShape(BlockComponent.Output output,
BlockComponent.Input input) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
bestSpecie() |
protected abstract T |
crossover(T male,
T female,
ThreadLocalRandom random) |
protected abstract T |
defaultSpecie() |
protected void |
doGA(int incubatorSize) |
protected abstract double |
fitness(T specie) |
protected void |
init(int species) |
protected abstract void |
mutate(T specie,
ThreadLocalRandom random) |
void |
update() |
equals, getColor, getInputType, getOutputType, getShape, hashCode, isAssociatedWith, isValid, paint, paint, popupMenu, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitconfig, fine, finer, finest, info, log, log, logger, severe, severe, warning, warningprotected volatile Point out
protected volatile Point in
protected volatile Rectangle[] rectangles
protected static final AtomicLong COUNTER
public AbstractLiveLinkShape(BlockComponent.Output output, BlockComponent.Input input)
protected void init(int species)
protected T bestSpecie()
protected abstract T defaultSpecie()
protected abstract T crossover(T male, T female, ThreadLocalRandom random)
protected abstract void mutate(T specie, ThreadLocalRandom random)
protected abstract double fitness(T specie)
protected void doGA(int incubatorSize)
Copyright © 2012–2015 MARID software development group. All rights reserved.