|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gpsys.Primitive
|
+--gpsys.Function
|
+--gpsys.primitives.Or
BOOLEAN or(BOOLEAN b1, BOOLEAN b2)Or is a boolean function that returns the logical "or" of both arguments. Note that Or is NOT lazy, so that both arguments are still evaluated even if the first argument is True.
Type,
Primitive,
Function, Serialized Form| Fields inherited from class gpsys.Function |
argTypes |
| Fields inherited from class gpsys.Primitive |
type |
| Constructor Summary | |
Or()
Construct an instance of the Or Function. |
|
| Method Summary | |
boolean |
evaluateBoolean(Individual i,
Gene[] arguments)
Perform the logical Or of both arguments and return the result. |
Primitive |
instance()
Creates an instance of this Function. |
java.lang.String |
toString()
Returns a String representation of this Function. |
| Methods inherited from class gpsys.Function |
evaluateByte,
evaluateChar,
evaluateDouble,
evaluateFloat,
evaluateInt,
evaluateLong,
evaluateObject,
evaluateShort |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Or()
| Method Detail |
public final boolean evaluateBoolean(Individual i,
Gene[] arguments)
throws EvaluationException
i - The individual being evaluated.arguments - The Gene trees representing the arguments to be Ored.public final Primitive instance()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||