Class Operation<T>

java.lang.Object
net.bmahe.genetics4j.gp.Operation<T>
Direct Known Subclasses:
CoefficientOperation, ImmutableOperation, InputOperation

@Immutable public abstract class Operation<T> extends Object
  • Constructor Details

    • Operation

      public Operation()
  • Method Details

    • getName

      @Parameter public abstract String getName()
    • acceptedTypes

      @Parameter public abstract List<Class> acceptedTypes()
    • returnedType

      @Parameter public abstract Class returnedType()
    • compute

      @Parameter @Auxiliary public abstract BiFunction<T[],Object[],Object> compute()
    • getPrettyName

      @Default public String getPrettyName()
    • apply

      public Object apply(T[] input, Object[] parameters)
    • getArity

      public int getArity()
    • isTerminal

      public boolean isTerminal()