Class BasicTrackIndexer

  • All Implemented Interfaces:
    IIndexer<ISTTrackingTrajectory>, ISTTrackingTrajectoryIndexer

    public class BasicTrackIndexer
    extends AbsMatIndexer<ISTTrackingTrajectory>
    implements ISTTrackingTrajectoryIndexer
    This class provides event indexing for ISTTrackingTrajectory objects. The indexing is based on a grid of ArrayLists, where the grid represents the space over which the index is valid. The ArrayLists in each location of the grid are used to sort the ISTTrackingTrajectory objects that intersect each spatial coordinate based on time.
    Author:
    Thaddeus Gholston, Data Mining Lab, Georgia State University
    • Constructor Detail

      • BasicTrackIndexer

        public BasicTrackIndexer​(List<ISTTrackingTrajectory> list,
                                 int regionDimension,
                                 int regionDiv,
                                 int numThreads)
                          throws IllegalArgumentException
        Constructor, constructs a new BasicTrackindexer.
        Parameters:
        list - The list of tracks to index.
        regionDimension - The length for both the x and y spatial domain. For example x will be valid for [0, regionDimension].
        regionDiv - The divisor used to down size each of the ISTTrackingTrajectory objects to fit inside the spatial domain specified by the regionDimension parameter.
        numThreads - The number of threads to use when processing batch. -1 for all available > 0 for a specific number. JavaEE doesn't seem to like more than one thread, so only use 1 for applications built for web application servers.
        Throws:
        IllegalArgumentException - When any of the passed in arguments are null, or if the regionDimension is less than 1 same with divisor.