The reporting depends on the
Reporter class that is used and the type of the output file. The
DefaultDataGenerator uses the class
PositionReporter (the source code of both classes and of other
Reporter classes are included in the source code download). The type of output file is determined by the contructor of the
Reporter class considering the file extension. The two print methods determine the reported parameters. For details, take a look into the source code of the relevant
This is possible by modifying the values of the attribute
lifetime in the class
ExternalObjectClasses (its source code is included in the source code download). The values of this array are set by the constructor. In the default implementation they are set to 10. Use
There are several versions of the generator. If you use the version
ConstantDataGenerator instead of the
DefaultDataGenerator, the class
ConstantObjectGenerator controls the number of moving objects (for details see its source code which is included in the source code download). The batch file starting the generator must be modified accordingly.
This is controlled by the class
ObjectClasses (its source code is included in the source code download). The speed is defined by the attribute
speed and set by the constructor.
In case of the "Oldenburg" and the "San Joaquin" file, they have no meaning.
If you use the
ShapefileNetworkFileManager for generating the network files, the data space of the coordinates will be transformed into a rectangle (0,0) x (resolution, resolution). You'll get the original coordinates by performing the inverse transformation.
If you use the
TigerManager for generating the network files (or the "San Francisco" file):
Depending on the tiger file version (or if the text input files have become Unix/Linux text files), the record size or/and the record format of the file may differ. To solve this problem, you have to adapt the methods
read in the class
Last update: 2006-03-09