Package edu.gsu.cs.dmlab.factory
Class BasicIndexFactory
- java.lang.Object
-
- edu.gsu.cs.dmlab.factory.BasicIndexFactory
-
- All Implemented Interfaces:
ISTIndexFactory
public class BasicIndexFactory extends Object implements ISTIndexFactory
This class provides a way of constructing objects for event indexing of IEvent objects, or indexing of ITrack objects, and constructing anything that those indexes might need. 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 IEvent or ITrack objects that intersect each spatial coordinate based on time.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description BasicIndexFactory(int regionDimension, int regionDiv, org.joda.time.Duration frameSpan)
Constructor, constructs a new BasicIndexFactory object (there should only be one of these objects in the application).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISTTrackingEventIndexer
getEventIndexer(List<ISTTrackingEvent> regionalList)
Produces a new IEventIndexer that indexes the IEvent objects passed in.ISTTrackingTrajectoryIndexer
getTrackIndexer(List<ISTTrackingTrajectory> trackList)
Produces a new ITrackIndexer that indexes the ITrack objects passed in.
-
-
-
Constructor Detail
-
BasicIndexFactory
public BasicIndexFactory(int regionDimension, int regionDiv, org.joda.time.Duration frameSpan)
Constructor, constructs a new BasicIndexFactory object (there should only be one of these objects in the application).- Parameters:
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 indexed objects to fit inside the spatial domain specified by the regionDimension parameter.frameSpan
- The length of a frame in the index. This is used to compute the expected change in detections per frame in the IEventIndexer objects.
-
-
Method Detail
-
getEventIndexer
public ISTTrackingEventIndexer getEventIndexer(List<ISTTrackingEvent> regionalList)
Description copied from interface:ISTIndexFactory
Produces a new IEventIndexer that indexes the IEvent objects passed in.- Specified by:
getEventIndexer
in interfaceISTIndexFactory
- Parameters:
regionalList
- The IEvent objects to be indexed.- Returns:
- A new IEventIndexer containing the passed in IEvnet objects.
-
getTrackIndexer
public ISTTrackingTrajectoryIndexer getTrackIndexer(List<ISTTrackingTrajectory> trackList)
Description copied from interface:ISTIndexFactory
Produces a new ITrackIndexer that indexes the ITrack objects passed in.- Specified by:
getTrackIndexer
in interfaceISTIndexFactory
- Parameters:
trackList
- The ISTTrackingTrajectory objects to be indexed.- Returns:
- A new ITrackIndexer containing the passed in ITrack objects.
-
-