org.vizzini.ai.geneticalgorithm
Class AbstractFitnessCase

java.lang.Object
  extended by org.vizzini.ai.geneticalgorithm.AbstractFitnessCase
All Implemented Interfaces:
IFitnessCase
Direct Known Subclasses:
DefaultFitnessCase

public abstract class AbstractFitnessCase
extends Object
implements IFitnessCase

Provides base functionality for a fitness case in a genetic algorithm.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
AbstractFitnessCase()
           
 
Method Summary
 Object getInput(String name)
          Return the input with the given name.
 int getInputCount()
           
 Object getOutput(String name)
          Return the output with the given name.
 int getOutputCount()
           
 void setInput(String name, Object value)
          Set the input with the given name to the given value.
 void setOutput(String name, Object value)
          Set the output with the given name to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFitnessCase

public AbstractFitnessCase()
Method Detail

getInput

public Object getInput(String name)
Return the input with the given name.

Specified by:
getInput in interface IFitnessCase
Since:
v0.3

getInputCount

public int getInputCount()
Specified by:
getInputCount in interface IFitnessCase
Returns:
Return inputCount.
Since:
v0.3

getOutput

public Object getOutput(String name)
Return the output with the given name.

Specified by:
getOutput in interface IFitnessCase
Since:
v0.3

getOutputCount

public int getOutputCount()
Specified by:
getOutputCount in interface IFitnessCase
Returns:
Return outputCount.
Since:
v0.3

setInput

public void setInput(String name,
                     Object value)
Set the input with the given name to the given value.

Specified by:
setInput in interface IFitnessCase
Parameters:
name - Name.
value - Value.
Since:
v0.3

setOutput

public void setOutput(String name,
                      Object value)
Set the output with the given name to the given value.

Specified by:
setOutput in interface IFitnessCase
Parameters:
name - Name.
value - Value.
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02