Package jasima.shopSim.prioRules.gp
Class GPRuleBase
- java.lang.Object
-
- jasima.shopSim.core.PR
-
- jasima.shopSim.prioRules.gp.GPRuleBase
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
GECCO2010_genSeed_10reps,GECCO2010_genSeed_2reps,GECCO2010_lookahead,WSC2010_GPRuleSize199,WSC2010_GPRuleSize98
public abstract class GPRuleBase extends PR
Abstract base class that can be used for rules generated with Genetic Programming. In addition to standardPRit only defines static methods for some commonly used arithmetic functions.- Author:
- Torsten Hildebrandt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GPRuleBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static doubleabs(double v1)static doubleadd(double v1, double v2)abstract doublecalcPrio(PrioRuleTarget j)Returns the priority value ofentry.static doublediv(double v1, double v2)static doubledivProtected(double v1, double v2)static doubleifte(double cond, double ifVal, double elseVal)static doublemax(double v1, double v2)static doublemin(double v1, double v2)static doublemul(double v1, double v2)static doubleneg(double v1)static doublesub(double v1, double v2)-
Methods inherited from class jasima.shopSim.core.PR
arrivesTooLate, beforeCalc, clone, getName, getOwner, getTieBreaker, init, keepIdle, primaryRule, setFinalTieBreaker, setOwner, setTieBreaker, toString
-
-
-
-
Method Detail
-
calcPrio
public abstract double calcPrio(PrioRuleTarget j)
Description copied from class:PRReturns the priority value ofentry. This method has to be overwritten by a priority rule.
-
ifte
public static final double ifte(double cond, double ifVal, double elseVal)
-
add
public static final double add(double v1, double v2)
-
mul
public static final double mul(double v1, double v2)
-
div
public static final double div(double v1, double v2)
-
divProtected
public static final double divProtected(double v1, double v2)
-
sub
public static final double sub(double v1, double v2)
-
max
public static final double max(double v1, double v2)
-
min
public static final double min(double v1, double v2)
-
neg
public static final double neg(double v1)
-
abs
public static final double abs(double v1)
-
-