net.obsearch.index.utils
Class AbstractNewLineCommandLineShort<O extends OBShort,I extends IndexShort<O>,A extends Ambient<O,I>>

java.lang.Object
  extended by net.obsearch.index.utils.AbstractCommandLine<O,I,A>
      extended by net.obsearch.index.utils.AbstractNewLineCommandLine<O,I,A>
          extended by net.obsearch.index.utils.AbstractNewLineCommandLineShort<O,I,A>
Type Parameters:
O - Object that we are handling
I - The index that stores all data
A - The ambient that controls the index.
All Implemented Interfaces:
org.opt4j.core.problem.Evaluator<org.opt4j.benchmark.DoubleString>

public abstract class AbstractNewLineCommandLineShort<O extends OBShort,I extends IndexShort<O>,A extends Ambient<O,I>>
extends AbstractNewLineCommandLine<O,I,A>

In this command line helper, data is separated by newlines and Index and objects are of type short.

Author:
Arnoldo Jose Muller-Molina

Nested Class Summary
 
Nested classes/interfaces inherited from class net.obsearch.index.utils.AbstractCommandLine
AbstractCommandLine.Mode
 
Field Summary
protected  boolean histogram
           
protected  File histogramFile
           
protected  ArrayList<O> seq
           
 
Fields inherited from class net.obsearch.index.utils.AbstractNewLineCommandLine
maxLoad
 
Fields inherited from class net.obsearch.index.utils.AbstractCommandLine
approxEvalEp, approxEvalRecall, bulkMode, experimentName, experimentResultFileName, experimentSet, iterations, k, maxQueries, mode, optNumChildren, optNumParents, optPopulationSize, pivots, props, queries, r, time, validate
 
Constructor Summary
AbstractNewLineCommandLineShort()
           
 
Method Summary
protected abstract  Class<O> obtainClass()
           
protected  void searchObject(I index, O object, Statistics other)
          The subclass implements this method and decides to print or do something with the result.
protected  void searchObjectApprox(I index, O object, Statistics other)
          Search object in approx mode.
 
Methods inherited from class net.obsearch.index.utils.AbstractNewLineCommandLine
addObjects, instantiate, isValidObject, searchObjects
 
Methods inherited from class net.obsearch.index.utils.AbstractCommandLine
add, closeAll, create, evaluate, expDetails, expName, getCreator, getIndex, getObjectives, getReference, initProperties, instantiateAmbient, instantiateNewAmbient, isApproxMode, processUserCommands, search, searchAux, updateIndexConfig, updateParams, writeAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

histogram

protected boolean histogram

histogramFile

protected File histogramFile

seq

protected ArrayList<O extends OBShort> seq
Constructor Detail

AbstractNewLineCommandLineShort

public AbstractNewLineCommandLineShort()
Method Detail

searchObjectApprox

protected void searchObjectApprox(I index,
                                  O object,
                                  Statistics other)
                           throws NotFrozenException,
                                  IllegalIdException,
                                  OutOfRangeException,
                                  InstantiationException,
                                  IllegalAccessException,
                                  OBException,
                                  IOException
Description copied from class: AbstractNewLineCommandLine
Search object in approx mode.

Specified by:
searchObjectApprox in class AbstractNewLineCommandLine<O extends OBShort,I extends IndexShort<O>,A extends Ambient<O,I>>
Parameters:
index - The index to be searched.
object - The object to search.
Throws:
NotFrozenException
IllegalIdException
OutOfRangeException
InstantiationException
IllegalAccessException
OBException
IOException

obtainClass

protected abstract Class<O> obtainClass()

searchObject

protected void searchObject(I index,
                            O object,
                            Statistics other)
                     throws NotFrozenException,
                            IllegalIdException,
                            OutOfRangeException,
                            InstantiationException,
                            IllegalAccessException,
                            OBException,
                            IOException
Description copied from class: AbstractNewLineCommandLine
The subclass implements this method and decides to print or do something with the result.

Specified by:
searchObject in class AbstractNewLineCommandLine<O extends OBShort,I extends IndexShort<O>,A extends Ambient<O,I>>
Parameters:
index - The index to be searched.
object - The object to search.
Throws:
NotFrozenException
IllegalIdException
OutOfRangeException
InstantiationException
IllegalAccessException
OBException
IOException


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.