TWEANN implements Network { public void draw(DrawingPanel panel) { draw(panel, false); } TWEANN(int numIn, int numOut, boolean featureSelective, int ftype, int numModes, int archetypeIndex);  TWEANN(TWEANNGenotype g); long getId(); static boolean preferenceNeuron(); @Override int[] getModuleUsage(); @Override int numInputs(); @Override int numOutputs(); @Override int effectiveNumOutputs(); @Override int numModules(); int neuronsPerModule(); @Override boolean isMultitask(); boolean isStandardMultitask(); boolean isHierarchicalMultitask(); @Override void chooseMode(int mode); @Override int lastModule(); @Override double[] process(double[] inputs); @Override double[] moduleOutput(int mode); @SuppressWarnings("unchecked") @Override void flush(); @Override String toString(); void draw(DrawingPanel panel); void draw(DrawingPanel panel, boolean showInnovationNumbers); void animateSubstrate(); void draw(DrawingPanel panel, boolean showInnovationNumbers, boolean showWeights); void drawAllLinks(Graphics2D g, boolean showInnovationNumbers, boolean showWeights); static int NETWORK_VIEW_DIM; static final int NODE_DIM; static final int DISPLAY_BORDER; static final int LINK_CURVE_OFFSET; static DrawingPanel panel; static DrawingPanel inputPanel; static DrawingPanel preferenceNeuronPanel; static List<DrawingPanel> subsPanel; static ArrayList<Double>[] preferenceActivationHistory; public int[] moduleAssociations; public ArrayList<Node> nodes; public int[] moduleUsage; public int chosenModule; public boolean canDraw; final int archetypeIndex; final int outputStart; }
@Test public void testHyperNEATDrawingPanel() { MMNEAT.clearClasses(); Parameters.initializeParameterCollections(new String[]{"io:false", "netio:false","allowMultipleFunctions:true", "recurrency:false", "hyperNEAT:true"}); DrawingPanel p = new DrawingPanel(TWEANN.NETWORK_VIEW_DIM, TWEANN.NETWORK_VIEW_DIM, "p7"); TWEANN t1 = tg1.getPhenotype(); t1.draw(p); p.getFrame().setVisible(false); }