|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
absurdist.LinkSimCacheHash
LinkSimCache implemented as a Hashtable
LinkSimCache| Nested Class Summary |
| Nested classes inherited from class java.util.Hashtable |
|
| Constructor Summary | |
(package private) |
LinkSimCacheHash()
|
| Method Summary | |
double |
get(Link lo,
Link ln)
Retrieves the value representing Sim(lo,ln), or NaN if none was stored) |
double |
put(Link lo,
Link ln,
double val)
Stores the value representing Sim(lo,ln). |
void |
setSizes(int loCnt,
int lnCnt)
No effect |
int |
size()
Returns the number of values stored |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
LinkSimCacheHash()
| Method Detail |
public double put(Link lo,
Link ln,
double val)
put in interface LinkSimCache
public double get(Link lo,
Link ln)
get in interface LinkSimCache
public void setSizes(int loCnt,
int lnCnt)
setSizes in interface LinkSimCacheloCnt - How many distinct values for the first argument
to put() are expected.lnCnt - How many distinct values for the second argument
to put() are expected.public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||