driver
Class spatial

java.lang.Object
  extended by driver.spatial

public class spatial
extends java.lang.Object

Spatial data structure benchmark.

Version:
$Id: spatial.java,v 1.5 2004/04/06 16:07:42 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
private static class spatial.cmdlineOpts
          Parsed command-line options.
 
Field Summary
private static int MODE_SPATIAL_GRID
          benchmark binning types.
private static int MODE_SPATIAL_HIER
          benchmark binning types.
private static int MODE_SPATIAL_LINEAR
          benchmark binning types.
private static java.lang.String MODE_SPATIAL_STRING_GRID
          benchmark binning type strings.
private static java.lang.String MODE_SPATIAL_STRING_HIER
          benchmark binning type strings.
private static java.lang.String MODE_SPATIAL_STRING_LINEAR
          benchmark binning type strings.
static java.lang.String VERSION
          benchmark version.
 
Constructor Summary
spatial()
           
 
Method Summary
static Field createSim(Location.Location2D bounds, Spatial spatial, long nodes)
          Initialize simulation field.
static void main(java.lang.String[] args)
          Benchmark entry point: spatial data structure performance.
private static spatial.cmdlineOpts parseCommandLineOptions(java.lang.String[] args)
          Parse command-line options.
private static void showUsage()
          Print benchmark command-line syntax.
private static void showVersion()
          Print benchmark version information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
benchmark version.

See Also:
Constant Field Values

MODE_SPATIAL_LINEAR

private static final int MODE_SPATIAL_LINEAR
benchmark binning types.

See Also:
Constant Field Values

MODE_SPATIAL_GRID

private static final int MODE_SPATIAL_GRID
benchmark binning types.

See Also:
Constant Field Values

MODE_SPATIAL_HIER

private static final int MODE_SPATIAL_HIER
benchmark binning types.

See Also:
Constant Field Values

MODE_SPATIAL_STRING_LINEAR

private static final java.lang.String MODE_SPATIAL_STRING_LINEAR
benchmark binning type strings.

See Also:
Constant Field Values

MODE_SPATIAL_STRING_GRID

private static final java.lang.String MODE_SPATIAL_STRING_GRID
benchmark binning type strings.

See Also:
Constant Field Values

MODE_SPATIAL_STRING_HIER

private static final java.lang.String MODE_SPATIAL_STRING_HIER
benchmark binning type strings.

See Also:
Constant Field Values
Constructor Detail

spatial

public spatial()
Method Detail

showVersion

private static void showVersion()
Print benchmark version information.


showUsage

private static void showUsage()
Print benchmark command-line syntax.


parseCommandLineOptions

private static spatial.cmdlineOpts parseCommandLineOptions(java.lang.String[] args)
                                                    throws jargs.gnu.CmdLineParser.OptionException
Parse command-line options.

Parameters:
args - command-line parameters
Returns:
parsed command-line options
Throws:
CmdLineParser.OptionException - invalid option encountered

createSim

public static Field createSim(Location.Location2D bounds,
                              Spatial spatial,
                              long nodes)
Initialize simulation field.

Parameters:
bounds - size of field
spatial - binning radio container
nodes - number of nodes
Returns:
simulation field

main

public static void main(java.lang.String[] args)
Benchmark entry point: spatial data structure performance.

Parameters:
args - command-line parameters