Raccoon.SE
Class SearchEngine

java.lang.Object
  extended byRaccoon.SE.SearchEngine

public class SearchEngine
extends java.lang.Object

Author:
Qi Zhong

Field Summary
static int INSTANCE_PATTERN
           
static int RELATION_PATTERN
           
static int SCHEMA_PATTERN
           
 
Constructor Summary
SearchEngine()
           
 
Method Summary
 AttributeMappingAnswer attributeMapping(java.lang.String nodeID, PVSchema searchSchema, PVSchema resultSchema)
          method for attribute mapping retrieve local data and sent it to remote node to do the mapping
 AttributeMappingAnswer rmAttributeMapping(PVRelation sourceRelation, PVSchema targetSchema)
          called by remote node and do the local attribute mapping
 SearchAnswer rmSearch(SearchCriteria criteria)
          called by local network module of this node to be reponsible for the remote search request
 SearchAnswer search(PVSchema schema, int searchType)
           
 SearchAnswer search(SearchCriteria criteria)
          caled by GUI to search for similar resources from other peer nodes
 SearchAnswer search(java.lang.String relationName, int searchType)
           
 void setNetModule(NetModuleImpl newNetModule)
           
 void setQueryEngine(QueryEngine newQE)
           
 void setResourceManager(ResourceManager newRM)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELATION_PATTERN

public static final int RELATION_PATTERN
See Also:
Constant Field Values

SCHEMA_PATTERN

public static final int SCHEMA_PATTERN
See Also:
Constant Field Values

INSTANCE_PATTERN

public static final int INSTANCE_PATTERN
See Also:
Constant Field Values
Constructor Detail

SearchEngine

public SearchEngine()
Method Detail

setNetModule

public void setNetModule(NetModuleImpl newNetModule)

setResourceManager

public void setResourceManager(ResourceManager newRM)

setQueryEngine

public void setQueryEngine(QueryEngine newQE)

search

public SearchAnswer search(SearchCriteria criteria)
caled by GUI to search for similar resources from other peer nodes

Returns:
SE.SearchAnswer

search

public SearchAnswer search(java.lang.String relationName,
                           int searchType)

search

public SearchAnswer search(PVSchema schema,
                           int searchType)

rmSearch

public SearchAnswer rmSearch(SearchCriteria criteria)
called by local network module of this node to be reponsible for the remote search request

Returns:
SE.SearchAnswer

attributeMapping

public AttributeMappingAnswer attributeMapping(java.lang.String nodeID,
                                               PVSchema searchSchema,
                                               PVSchema resultSchema)
method for attribute mapping retrieve local data and sent it to remote node to do the mapping


rmAttributeMapping

public AttributeMappingAnswer rmAttributeMapping(PVRelation sourceRelation,
                                                 PVSchema targetSchema)
called by remote node and do the local attribute mapping