gov.llnl.ontology.mains
Class DecentralizedSearch

java.lang.Object
  extended by gov.llnl.ontology.mains.DecentralizedSearch

public class DecentralizedSearch
extends Object

Author:
Keith Stevens

Nested Class Summary
static class DecentralizedSearch.DistanceMatrix
           
static class DecentralizedSearch.TagGraph
           
 
Constructor Summary
DecentralizedSearch()
           
 
Method Summary
static void main(String[] args)
           
static DecentralizedSearch.DistanceMatrix readSynsetDistances(String distanceFile, int numSynsets, OntologyReader reader)
           
static DecentralizedSearch.TagGraph readTagGraph(String tagGraphFile)
           
static Map<String,String> readTagMapping(String tagMapFile)
           
static Set<edu.ucla.sspace.util.Pair<Set<String>>> readTagPairs(String tagPairFile)
           
static Set<String> readTags(String tagList)
           
static int searchFromNeighbors(Set<String> nextTags, Set<String> goalTags, int maxLength, DecentralizedSearch.TagGraph graph, DecentralizedSearch.DistanceMatrix distanceMatrix, OntologyReader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecentralizedSearch

public DecentralizedSearch()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

searchFromNeighbors

public static int searchFromNeighbors(Set<String> nextTags,
                                      Set<String> goalTags,
                                      int maxLength,
                                      DecentralizedSearch.TagGraph graph,
                                      DecentralizedSearch.DistanceMatrix distanceMatrix,
                                      OntologyReader reader)

readTagMapping

public static Map<String,String> readTagMapping(String tagMapFile)
                                         throws Exception
Throws:
Exception

readTagPairs

public static Set<edu.ucla.sspace.util.Pair<Set<String>>> readTagPairs(String tagPairFile)
                                                                throws Exception
Throws:
Exception

readTags

public static Set<String> readTags(String tagList)

readTagGraph

public static DecentralizedSearch.TagGraph readTagGraph(String tagGraphFile)
                                                 throws Exception
Throws:
Exception

readSynsetDistances

public static DecentralizedSearch.DistanceMatrix readSynsetDistances(String distanceFile,
                                                                     int numSynsets,
                                                                     OntologyReader reader)
                                                              throws Exception
Throws:
Exception


Copyright © 2010-2011. All Rights Reserved.