Menu

Commit [r7436]  Maximize  Restore  History

(1)

// for (Link link : ((NetworkRoute) leg.getRoute()).getLinks()) {
/* I regularly got an exception with the above line:
* Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.matsim.core.population.routes.GenericRouteImpl
* at org.matsim.vis.otfvis.opengl.queries.QuerySpinne.collectLinksFromTrip(QuerySpinne.java:XXX)
* ...
* I assume that it comes from the fact that some routes are not network routes (but, say, pt routes).
* So I included an "instanceof NetworkRoute" before the cast at two places (maybe there are more).

(2) replaced "i%2" by "instanceof Leg/Act" at one place (probably there are more).

(3) replaced "trip only" by "leg only" since that was what it was really doing.

vsp_nagel 2009-06-16

changed /matsim/trunk/src/org/matsim/vis/otfvis/opengl/queries/QuerySpinne.java
/matsim/trunk/src/org/matsim/vis/otfvis/opengl/queries/QuerySpinne.java Diff Switch to side-by-side view
Loading...