Menu

Commit [r12293]  Maximize  Restore  History

I tried to make the "PositionInfo" mechanics configurable ...

... since I wanted to be able to switch on/off an adaptive way to compute the orthogonal offset (for driving "on the right"). (*)

I did this by pulling apart the pure data class, and the construction mechanism which converts graph coordinates (link,distance) to Euclidean coordinates (x,y).  The construction mechanism is now called "AgentSnapshotInfoFactory"; "PositionInfo" is now the default implementation of "AgentSnapshotInfo".  The factory has static methods that do the past (non-configurable) behavior; and it is meant to also be instantiable (and thus configurable in a non-static way).

In the end, I ended up making (*) the non-configurable default behavior, so I did not go to the end with making the AgentSnapshotInfoFactory configurable.  But the mechanics is now there. Since I think it is useful, I leave it in place.

===

In the process, I made Gregors PositionInfo a separate implementation of AgentSnapshotInfo rather than something inherited. It essentially already was a separate implementation anyways.

===

I also exchanged the sequence of the otfvis tests, since the QSim_MVI test depended on the LiveVis test.

Also made those tests use the "queue" instead of the "equiDist" method, since I think it gives more information.

vsp_nagel 2010-08-09

changed /matsim/trunk/src/main/java/org/matsim/vis/snapshots/writers/AgentSnapshotInfo.java
changed /matsim/trunk/src/main/java/org/matsim/vis/snapshots/writers/AgentSnapshotInfoFactory.java
changed /matsim/trunk/src/main/java/org/matsim/vis/snapshots/writers/PositionInfo.java
renamed /matsim/trunk/src/test/java/org/matsim/vis/otfvis/checklists/T0_StartControler.java -> /matsim/trunk/src/test/java/org/matsim/vis/otfvis/checklists/T2_StartControler.java
renamed /matsim/trunk/src/test/java/org/matsim/vis/otfvis/checklists/T2_LiveVis.java -> /matsim/trunk/src/test/java/org/matsim/vis/otfvis/checklists/T0_LiveVis.java
changed /matsim/trunk/src/test/java/org/matsim/vis/snapshots/PositionInfoTest.java
changed /matsim/trunk/test/input/org/matsim/vis/otfvis/checklists/config-qsim.xml
changed /matsim/trunk/test/input/org/matsim/vis/otfvis/checklists/config.xml
changed /playgrounds/trunk/gregor/src/main/java/playground/gregor/snapshots/writers/PositionInfo.java
removed /playgrounds/trunk/kai/src/main/java/playground/kai/otfvis/OTFDoubleMVI.java
added /playgrounds/trunk/kai/src/main/java/playground/kai/test/Test3.java
/matsim/trunk/src/main/java/org/matsim/vis/snapshots/writers/AgentSnapshotInfo.java Diff Switch to side-by-side view
Loading...
/matsim/trunk/src/main/java/org/matsim/vis/snapshots/writers/AgentSnapshotInfoFactory.java Diff Switch to side-by-side view
Loading...
/matsim/trunk/src/main/java/org/matsim/vis/snapshots/writers/PositionInfo.java Diff Switch to side-by-side view
Loading...
/matsim/trunk/src/test/java/org/matsim/vis/snapshots/PositionInfoTest.java Diff Switch to side-by-side view
Loading...
/matsim/trunk/test/input/org/matsim/vis/otfvis/checklists/config-qsim.xml Diff Switch to side-by-side view
Loading...
/matsim/trunk/test/input/org/matsim/vis/otfvis/checklists/config.xml Diff Switch to side-by-side view
Loading...
/playgrounds/trunk/gregor/src/main/java/playground/gregor/snapshots/writers/PositionInfo.java Diff Switch to side-by-side view
Loading...
/playgrounds/trunk/kai/src/main/java/playground/kai/test/Test3.java Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.