|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectgeneticWedge.gp.Component
geneticWedge.gp.function.Function
geneticWedge.gp.function.TwoInputFunction
public abstract class TwoInputFunction
Abstract parent of all binary functions. Subclasses should throw an InvalidInputSizeException if the length of the array sent to getOutput() is not 2.
Constructor Summary | |
---|---|
TwoInputFunction()
The constructor sets the number of inputs required to 2 |
|
TwoInputFunction(int complexity)
This constructor allows the creation of Functions with assigned complexity values, rather than the default values. |
Method Summary | |
---|---|
abstract boolean |
isCommutative()
non-abstract subclasses must implement this method. |
Methods inherited from class geneticWedge.gp.function.Function |
---|
getComplexity, getNoOfInputs, getOutput, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TwoInputFunction()
public TwoInputFunction(int complexity)
Method Detail |
---|
public abstract boolean isCommutative()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |