1 10 package org.jgap.gp.terminal; 11 12 import org.jgap.*; 13 import org.jgap.gp.*; 14 import org.jgap.gp.impl.*; 15 16 23 public class NOP 24 extends MathCommand { 25 26 private final static String CVS_REVISION = "$Revision: 1.6 $"; 27 28 public NOP(final GPConfiguration a_conf) 29 throws InvalidConfigurationException { 30 this(a_conf, 0); 31 } 32 33 public NOP(final GPConfiguration a_conf, int a_subReturnType) 34 throws InvalidConfigurationException { 35 super(a_conf, 0, CommandGene.VoidClass, a_subReturnType, null); 36 } 37 38 public String toString() { 39 return "NOP"; 40 } 41 42 48 public String getName() { 49 return "NOP (NO Operation)"; 50 } 51 52 public void execute_void(ProgramChromosome c, int n, Object [] args) { 53 ; 56 } 57 } 58 | Popular Tags |