$search

instruction::opencyc::CycCache Class Reference

List of all members.

Public Member Functions

List< String > ask (String synset)
void load () throws IOException
void save () throws Exception
void tell (String synset, List< String > concepts)

Static Public Attributes

static final String ATTR_VALUE = "value"
static final String TAG_CACHE = "cyccache"
static final String TAG_CONCEPT = "cycconcept"
static final String TAG_SYNSET = "synsetid"

Package Attributes

Map< String, List< String > > map = new HashMap<String, List<String>>()

Detailed Description

Definition at line 20 of file CycCache.java.


Member Function Documentation

List<String> instruction::opencyc::CycCache::ask ( String  synset  )  [inline]

Checks if the Synset-ID synset already has been cached

Parameters:
synset 
Returns:
null if the Synset-ID has not been found in the cache

Definition at line 51 of file CycCache.java.

void instruction::opencyc::CycCache::load (  )  throws IOException [inline]

Loads the cache file etc/cyccache.xml

Exceptions:
IOException 
@throws Exception

Definition at line 64 of file CycCache.java.

void instruction::opencyc::CycCache::save (  )  throws Exception [inline]

Saves the cache to the file etc/cyccache.xml

Exceptions:
Exception 

Definition at line 122 of file CycCache.java.

void instruction::opencyc::CycCache::tell ( String  synset,
List< String >  concepts 
) [inline]

Puts a new list of Cyc concept names to be associated with the Synset-ID synset to the cache

Parameters:
synset 
concepts 

Definition at line 39 of file CycCache.java.


Member Data Documentation

final String instruction::opencyc::CycCache::ATTR_VALUE = "value" [static]

Definition at line 28 of file CycCache.java.

Map<String, List<String> > instruction::opencyc::CycCache::map = new HashMap<String, List<String>>() [package]

Definition at line 30 of file CycCache.java.

final String instruction::opencyc::CycCache::TAG_CACHE = "cyccache" [static]

Definition at line 22 of file CycCache.java.

final String instruction::opencyc::CycCache::TAG_CONCEPT = "cycconcept" [static]

Definition at line 26 of file CycCache.java.

final String instruction::opencyc::CycCache::TAG_SYNSET = "synsetid" [static]

Definition at line 24 of file CycCache.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


comp_ehow
Author(s): Moritz Tenorth, Daniel Nyga
autogenerated on Mon Dec 3 21:28:16 2012