Class Index | File Index

Classes


Class de.aitools.js.Vocabulary

Container for terms and unique ids
Defined in: Vocabulary.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Represents a data-structure that stores unique occurrences of terms in a central storage mapped to specific numeric identifiers
Method Summary
Method Attributes Method Name and Description
 
add(term)
Adds a string into the de.aitools.js.Vocabulary instance and returns a unique id of it for later use
 
Clears all data-structures with this de.aitools.js.Vocabulary instance
 
contains(term)
Returns a boolean whether the term exists in the de.aitools.js.Vocabulary or not
 
getId(term)
Returns the unique identifier of the given string
 
getTerm(id)
Returns the term for the given unique id
 
Reset the content of the de.aitools.js.Vocabulary instance
 
size()
Returns the number of terms within the de.aitools.js.Vocabulary
Class Detail
de.aitools.js.Vocabulary()
Represents a data-structure that stores unique occurrences of terms in a central storage mapped to specific numeric identifiers
Author: Alexander Kuemmel alexander.kuemmel@uni-weimar.de, Christian Fricke christian.fricke@uni-weimar.de.
Method Detail
{Number} add(term)
Adds a string into the de.aitools.js.Vocabulary instance and returns a unique id of it for later use
Parameters:
{String} term
The string value to add
Returns:
{Number} Unique term identifier

clear()
Clears all data-structures with this de.aitools.js.Vocabulary instance

{Boolean} contains(term)
Returns a boolean whether the term exists in the de.aitools.js.Vocabulary or not
Parameters:
{String} term
String value
Returns:
{Boolean}

{Number} getId(term)
Returns the unique identifier of the given string
Parameters:
{String} term
A string value within the de.aitools.js.Vocabulary
Returns:
{Number} Unique term identifier

{String} getTerm(id)
Returns the term for the given unique id
Parameters:
{Number} id
A unique numeric identifier
Returns:
{String} Stored term

reset()
Reset the content of the de.aitools.js.Vocabulary instance

{Number} size()
Returns the number of terms within the de.aitools.js.Vocabulary
Returns:
{Number}

Documentation generated by JsDoc Toolkit 2.4.0 on Wed May 30 2012 16:21:04 GMT+0200 (CEST)