cbr.service
Class PrivilegedFindAction

java.lang.Object
  extended bycbr.service.PrivilegedFindAction
All Implemented Interfaces:
PrivilegedExceptionAction

public class PrivilegedFindAction
extends Object
implements PrivilegedExceptionAction

Used to make privileged calls to the find() method of a PicsStore.

Version:
"$Id: PrivilegedFindAction.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth

Field Summary
private  int max_
          The maximum number of results to return.
private  PicsStore store_
          The PicsStore that is called.
private  float threshold_
          The threshold for the distance.
private  FeatureVector v_
          The FeatureVector to compare against.
 
Constructor Summary
PrivilegedFindAction(PicsStore store, FeatureVector v, float threshold, int max)
          Creates an instance that calls the given PicsStore.
 
Method Summary
 Object run()
          Executes the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store_

private PicsStore store_
The PicsStore that is called.


v_

private FeatureVector v_
The FeatureVector to compare against.


threshold_

private float threshold_
The threshold for the distance.


max_

private int max_
The maximum number of results to return. An artificial maximum of 128 entries is enforced by this class.

Constructor Detail

PrivilegedFindAction

public PrivilegedFindAction(PicsStore store,
                            FeatureVector v,
                            float threshold,
                            int max)
Creates an instance that calls the given PicsStore.

Parameters:
store - The PicsStore to call.
v - The FeatureVector to use as the query.
threshold - The maximum distance.
max - The maximum number of results.
Method Detail

run

public Object run()
           throws Exception
Executes the action.

Specified by:
run in interface PrivilegedExceptionAction
Throws:
Exception


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.