|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cbr.service.PrivilegedFindAction
Used to make privileged calls to the find()
method of a PicsStore
.
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 |
private PicsStore store_
PicsStore
that is called.
private FeatureVector v_
FeatureVector
to compare against.
private float threshold_
private int max_
Constructor Detail |
public PrivilegedFindAction(PicsStore store, FeatureVector v, float threshold, int max)
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 |
public Object run() throws Exception
run
in interface PrivilegedExceptionAction
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |