On Thu, Feb 14, 2013 at 10:37 AM, Nick Malleson <[log in to unmask]> wrote:
I'm using GeoMason to make a city simulation (agents walking along roads
between houses) but might have come across a bug. I want to get the road
network (a sim.​field.​network.Network object) from the field (a sim.​util.​
geo.​GeomPlanarGraph object) to find out if the graph is connected or not.
But the call to 'network.getNetwork()' causes the ClassCastException below.
You can re-create this bug in CampusWorld but putting
'network.getNetwork();' anywhere (e.g. I currently have it as the first
thing to be done after the super.start() call in the CampusWorld.start()
method). See the output from CapusWorld below.
Any ideas?