cbr.agent
Class CCVIncubatorAgent

java.lang.Object
  extended byde.fhg.igd.semoa.agent.RoundtripAgent
      extended bycbr.agent.CCVIncubatorAgent
All Implemented Interfaces:
Runnable, Serializable

public class CCVIncubatorAgent
extends RoundtripAgent

This incubator agent hops off to a picture server and creates an index of feature vectors of the pictures it finds there. Then it registers a finder for pictures based on the extracted features. Indexing is done according to the 'Color Coherence Vector' scheme published by Pass et al.

The property hop.final must point to the destination server where pictures are indexed and the finder service shall be registered.

The path of the PicsFinder that shall be registered, and the path of the local PicsSource must be configured in the agent's properties.

The properties are:

hop.final = <URL>
The destination server's URL.
finder = <string>
The path where the PicsFinder is expected to be published.
pics = <string>
The path here the PicsSource is expected to be published.

Version:
"$Id: CCVIncubatorAgent.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Patric Kabus, Volker Roth
See Also:
Serialized Form

Field Summary
static String NAME_IDX
          The name of the index file.
static String NAME_TMP
          The name of the temporary index file.
 
Fields inherited from class de.fhg.igd.semoa.agent.RoundtripAgent
debug_, env_, MAX_RETRIES, mob_, start_, time_, vars_
 
Constructor Summary
CCVIncubatorAgent()
           
 
Method Summary
protected  void finish()
          This method locates the local PicsSource and creates an index of feature vectors for the pictures returned by it.
protected  void perform()
          This method just prints a short message indicating the current hop.
 
Methods inherited from class de.fhg.igd.semoa.agent.RoundtripAgent
getHopNumber, onRunning, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_IDX

public static final String NAME_IDX
The name of the index file.

See Also:
Constant Field Values

NAME_TMP

public static final String NAME_TMP
The name of the temporary index file.

See Also:
Constant Field Values
Constructor Detail

CCVIncubatorAgent

public CCVIncubatorAgent()
Method Detail

perform

protected void perform()
                throws Exception
This method just prints a short message indicating the current hop. This agent does meaningful work only at its destination.

Overrides:
perform in class RoundtripAgent
Throws:
Exception - if something's wrong.

finish

protected void finish()
               throws Exception
This method locates the local PicsSource and creates an index of feature vectors for the pictures returned by it. The the agent registers a PicsFinder service that can be used by other agents in order to search pictures based on examples or feature vectors. Some properties must be set for the agent to perform correctly.

The path where the PicsFinder that shall be registered, and the path to the local PicsSource must be configured in the agent's properties.

The properties are:

finder = <string>
The path where the PicsFinder is expected to be published.
pics = <string>
The path where the PicsSource is expected to be published.

Overrides:
finish in class RoundtripAgent
Throws:
if - somethong's wrong.
Exception


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.