|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFitnessEvaluation.externalInterpreters.ParityProblem.EvenFiveParBSF
public abstract class EvenFiveParBSF
Class implementing the functions called by the Even Five Parity problem
| Constructor Summary | |
|---|---|
EvenFiveParBSF()
Creates a new instance of EvenFiveParityHelpFile |
|
| Method Summary | |
|---|---|
abstract int |
expr(int d0,
int d1,
int d2,
int d3,
int d4)
Abstract method to override for evaluating input expression. |
int |
getFitness()
Calculates the fitness by comparing the input expression to all possible cases. |
int |
not(int x)
Negates the input, 1 becomes 0, 0 becomes 1 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvenFiveParBSF()
| Method Detail |
|---|
public int not(int x)
throws java.lang.ArithmeticException
x - input
java.lang.ArithmeticException - if input is not 0 or 1public int getFitness()
public abstract int expr(int d0,
int d1,
int d2,
int d3,
int d4)
d0 - inputd1 - inputd2 - inputd3 - inputd4 - input
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||