it.unimo.dbgroup.momis.annotationOntology
Class OntologyManagerCacheSynset

java.lang.Object
  extended byit.unimo.dbgroup.momis.annotationOntology.OntologyManagerCache
      extended byit.unimo.dbgroup.momis.annotationOntology.OntologyManagerCacheSynset

public class OntologyManagerCacheSynset
extends OntologyManagerCache

Cache used by the OntologyManager for Synsets

Author:
Alberto Corni (Aug 2003)

Field Summary
private  java.util.Map _cacheSynset_lemmaSynsets
          
Key.
private  java.util.Map _cacheSynset_RelationshipSource
          
Key.
private  java.util.Map _cacheSynsetIdentifier
          
Key.
 
Fields inherited from class it.unimo.dbgroup.momis.annotationOntology.OntologyManagerCache
 
Constructor Summary
OntologyManagerCacheSynset(OntologyManager ontologyManager)
           
 
Method Summary
 void clear()
          clean the cache
 java.util.Vector getLemmaSynsets(OntologySynset ontologySynset)
           
 java.util.Vector getRelationshipWhereSourceIs(OntologySynset ontologySynset)
           
 OntologySynset getSynset(java.lang.Object synsetIdentifier)
           
private  void putInCache(OntologySynset ontologySynset)
          The correct way to add an entry to the cache
 
Methods inherited from class it.unimo.dbgroup.momis.annotationOntology.OntologyManagerCache
getOntologyManager, setOntologyManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cacheSynsetIdentifier

private java.util.Map _cacheSynsetIdentifier

Key. OntologySynsetIdentifier
value. the OntologySynset


_cacheSynset_lemmaSynsets

private java.util.Map _cacheSynset_lemmaSynsets

Key. OntologySynsetIdentifier
value. A vector of OntologyLemmaSynsets related to the given Synset


_cacheSynset_RelationshipSource

private java.util.Map _cacheSynset_RelationshipSource

Key. OntologySynsetIdentifier
value. A vector of OntologyRelationship where the Key Synset is Source for the relation

Constructor Detail

OntologyManagerCacheSynset

public OntologyManagerCacheSynset(OntologyManager ontologyManager)
Method Detail

getSynset

public OntologySynset getSynset(java.lang.Object synsetIdentifier)
                         throws java.lang.Exception
Parameters:
synsetIdentifier - the object identifier for the synset
Throws:
java.lang.Exception

getLemmaSynsets

public java.util.Vector getLemmaSynsets(OntologySynset ontologySynset)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getRelationshipWhereSourceIs

public java.util.Vector getRelationshipWhereSourceIs(OntologySynset ontologySynset)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

putInCache

private void putInCache(OntologySynset ontologySynset)
The correct way to add an entry to the cache


clear

public void clear()
clean the cache

Specified by:
clear in class OntologyManagerCache


Universita' di Modena e Reggio Emilia