de.grogra.graph
public abstract class Cache extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Cache.Entry |
| Modifier and Type | Field and Description |
|---|---|
protected GraphState |
gs |
| Constructor and Description |
|---|
Cache(GraphState gs) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearUnused() |
protected abstract Cache.Entry |
createEntry(java.lang.Object object,
boolean asNode,
ContextDependent dependent,
java.lang.Object strategy) |
GraphState |
getGraphState() |
java.lang.Object |
getValue(java.lang.Object object,
boolean asNode,
ContextDependent dependent,
java.lang.Object strategy) |
protected final GraphState gs
public Cache(GraphState gs)
public void clear()
public void clearUnused()
protected abstract Cache.Entry createEntry(java.lang.Object object, boolean asNode, ContextDependent dependent, java.lang.Object strategy)
public GraphState getGraphState()
public java.lang.Object getValue(java.lang.Object object,
boolean asNode,
ContextDependent dependent,
java.lang.Object strategy)