ix.test
Class MakeDistanceTable
java.lang.Object
ix.test.MakeDistanceTable
public class MakeDistanceTable
- extends java.lang.Object
Produces a distance table from state information in a plan.
As a standalone application, this class reads in a plan,
looks at type assertions in the state to work out what things
are "places", then produces a full distance table for those
places, using any existing distance values in the state,
with "LONG" as the default (so that it's distinct from a "long"
that was already in the table but can easily be turned into "long"
in an editor).
Method Summary |
(package private) java.util.SortedSet |
findAllPlaces(java.util.Map state)
|
static void |
main(java.lang.String[] argv)
|
(package private) void |
outDist(java.lang.Object from,
java.lang.Object to,
java.lang.Object value)
|
(package private) void |
outputDistance(java.util.Map state,
java.lang.Object from,
java.lang.Object to)
|
(package private) void |
outputTable(java.util.Map state)
|
(package private) void |
println(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRANSPORT_DISTANCE
static final Symbol TRANSPORT_DISTANCE
TYPE
static final Symbol TYPE
placeTypes
java.util.List placeTypes
MakeDistanceTable
MakeDistanceTable()
outputTable
void outputTable(java.util.Map state)
outputDistance
void outputDistance(java.util.Map state,
java.lang.Object from,
java.lang.Object to)
outDist
void outDist(java.lang.Object from,
java.lang.Object to,
java.lang.Object value)
findAllPlaces
java.util.SortedSet findAllPlaces(java.util.Map state)
println
void println(java.lang.String s)
main
public static void main(java.lang.String[] argv)