@Test public void testCylindricalGrid() throws Exception { int length = 8, width = 7; Structure result = (new CylindricalGrid()).generate(new GridParameters(Arrays.asList(Integer.toString(length), Integer.toString(width)))); assertTrue(result instanceof DirectedGraph); assertEquals(length*width,result.getVertices().size()); assertEquals(length*width+(length-1)*width,result.getEdges().size()); }
public abstract Structure generate(AlgorithmParameters p) throws Exception;
Generator { public abstract Structure generate(AlgorithmParameters p) throws Exception; }
Generator { public abstract Structure generate(AlgorithmParameters p) throws Exception;  }
Generator { public abstract Structure generate(AlgorithmParameters p) throws Exception;  AlgorithmParameters getParameters(); abstract Structure generate(AlgorithmParameters p); GeneratorDescription getDescription(); }
Generator { public abstract Structure generate(AlgorithmParameters p) throws Exception;  AlgorithmParameters getParameters(); abstract Structure generate(AlgorithmParameters p); GeneratorDescription getDescription();  }