GeneticCell extends BaseCell implements OutflowNodeHandler, InflowNodeHandler { public Color getColor() { return color; } GeneticCell(int _state, ArrayList<GeneticCell> parents, int mutateLevel);  GeneticCell(int _state, ArrayList<GeneticCell> parents);  GeneticCell(int _state, GeneticNetworkBuilderInterface _builder); GeneticCell incubate(); Color getColor(); String[] getListOfInflowNodes(); int getInflowNodeValue(String key); String[] getListOfOutflowNodes(); void handleOutputNode(String key, int value); static final Attribute attr_ActivationValue; public DGRN dgrn; public int neighborCount; }
@Test public void testColorizeAfterEnoughTicks() throws Exception { GeneticCell testCell = new GeneticCell(0, new TestCell1()); Color color_0 = new Color(testCell.getColor()); testCell.dgrn.tick(); testCell.dgrn.tick(); testCell.dgrn.tick(); testCell.dgrn.tick(); Color color_f = testCell.getColor(); logger.debug("0:" + color_0 + " f: " + color_f); assert (color_0.r < color_f.r); assert (color_0.g < color_f.g); assert (color_0.b < color_f.b); }