public class KStarCache extends java.lang.Object implements java.io.Serializable, RevisionHandler
Modifier and Type | Class and Description |
---|---|
class |
KStarCache.CacheTable
A custom hashtable class to support the caching system.
|
class |
KStarCache.TableEntry
Hashtable collision list.
|
Constructor and Description |
---|
KStarCache() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(double key)
Checks if the specified key maps with an entry in the cache table
|
KStarCache.TableEntry |
getCacheValues(double key)
Returns the values in the cache mapped by the specified key
|
java.lang.String |
getRevision()
Returns the revision string.
|
void |
store(double key,
double value,
double pmiss)
Stores the specified values in the cahce table for easy retrieval.
|
public void store(double key, double value, double pmiss)
key
- attribute value used key to lookup the cache table.value
- cache parameter: attribute scale/stop parameter.pmiss
- cache parameter: transformation probability to
attribute with missing value.public boolean containsKey(double key)
key
- the key to map with an entry in the hashtable.public KStarCache.TableEntry getCacheValues(double key)
key
- the key used to retrieve the table entry.public java.lang.String getRevision()
getRevision
in interface RevisionHandler