From: Erik V. <eri...@xs...> - 2010-04-07 18:55:19
|
Stefan, When trying Network Info, I'm getting an exception: java.lang.UnsupportedClassVersionError: Bad version number in .class file on line 589 in ORPanel.executeNetworkInfo(): NetworkGraphBuilder nwGraph = new NetworkGraphBuilder(); Could this be another Java 5/6 clash? Another glitch: in NetworkGraphBuilder.iterator, Eclipse consider the @Override annotation to be an error. I had to remove it to make this class compile. Could you check if that annotation can and should be removed indeed? Erik. -----Original Message----- From: ste...@we... [mailto:ste...@we...] Sent: Monday 05 April 2010 21:13 To: Development game Subject: [Rails-devel] Map Correction, Network Info, Export Just a short update about my commit yesterday, collecting all my changes since the last release. All stuff is pretty rough so far. 1) Map Correction Activating map correction (Administrator => allows to up- and downgrade any hex of the map free of any restriction (except that the tile must exist in the potential upgrade path of the initial tile of the hex). Tokens are not handled so far (especially for those cases where tokens have to be relaid). Implementation is analog to cash corrections: MapCorrectionManager creates and executes MapCorrectionActions. The intermediate steps of tile laying are handled by the Manager class as well (different to the LayTileAction, where the intermediate steps are controlled by the UI classes). 2) Network Info As a preliminary step to route connectivity and route calculation the map and tile information is used to built a network graph. A visualization can be displayed in the MapPanel under Info => NetworkInfo for the complete map or the routes available for each company. Based on the JGraphT library for the datastructure and JGraph for the visual part. It might be necessary to add those to the Eclipse classpath manually, if building through Eclipse. The ant build script is adapted. Implementation: NetworkEdges and -Vertexes are the buidling blocks. NetworkIterator implements the rules for a DFS iterator for the specific rules to traverse an 18xx map. NetworkGraphBuilder contains methods to generate and visualize the graph. 3) Export Allows to export the map as CSV-File with HexID, TileID and Orientation. Stefan ---------------------------------------------------------------------------- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |