|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.googlecode.sarasvati.impl.BaseEngine com.googlecode.sarasvati.mem.MemEngine
public class MemEngine
Constructor Summary | |
---|---|
MemEngine()
Creates a new MemEngine with the default application context. |
|
MemEngine(boolean useGlobalGraphCache)
Creates a new MemEngine with the default application context. |
|
MemEngine(String applicationContext)
Creates a new MemEngine with the given application context. |
|
MemEngine(String applicationContext,
boolean useGlobalGraphCache)
Creates a new MemEngine with the given application context. |
|
MemEngine(String applicationContext,
MemGraphRepository repository)
Creates a new MemEngine with the given application context. |
Method Summary | |
---|---|
MemGraphFactory |
getFactory()
Returns an appropriate GraphFactory for this Engine . |
GraphLoader<MemGraph> |
getLoader()
Returns an appropriate GraphLoader for this Engine . |
GraphLoader<MemGraph> |
getLoader(GraphValidator validator)
Returns an appropriate GraphLoader for this Engine . |
MemGraphRepository |
getRepository()
Returns an appropriate GraphRepository for this Engine . |
MemEngine |
newEngine()
Creates a new engine base on the same parameters as this. |
Methods inherited from class com.googlecode.sarasvati.impl.BaseEngine |
---|
addExecutionListener, addExecutionListener, addGlobalCustomNodeType, addNodeType, backtrack, cancelProcess, complete, completeAsynchronous, completeWithNewTokenSet, evaluateGuard, executeQueuedArcTokens, finalizeCancel, finalizeComplete, fireEvent, getParentEngine, newEngine, newJoinLangEnv, newRubricEnv, removeExecutionListener, removeExecutionListener, setupScriptEnv, startProcess, startProcess, startProcess |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemEngine()
public MemEngine(boolean useGlobalGraphCache)
useGlobalGraphCache
- Specifies whether this engine should
use the global graph cache, or a
cache specific to this instance.public MemEngine(String applicationContext)
applicationContext
- The application contextpublic MemEngine(String applicationContext, boolean useGlobalGraphCache)
applicationContext
- The application contextuseGlobalGraphCache
- Specifies whether this engine should
use the global graph cache, or a
cache specific to this instance.public MemEngine(String applicationContext, MemGraphRepository repository)
applicationContext
- The application contextrepository
- The repository to use for loading graphs and as a graph sourceMethod Detail |
---|
public MemGraphFactory getFactory()
Engine
GraphFactory
for this Engine
. Subclasses
may override this provide customer behavior.
GraphFactory
which will generate the appropriate types for this Engine
.public MemGraphRepository getRepository()
Engine
GraphRepository
for this Engine
. Subclasses
may override this to provide custom behavior.
GraphRepository
for this Engine
public GraphLoader<MemGraph> getLoader()
Engine
GraphLoader
for this Engine
. Subclasses
may override this provide customer behavior.
Equivalent to getLoader( null )
GraphLoader
which, by default, will use the factory and repository from this engine.public GraphLoader<MemGraph> getLoader(GraphValidator validator)
Engine
GraphLoader
for this Engine
. Subclasses
may override this provide customer behavior.
GraphLoader
which, by default, will use the factory and repository from this engine.public MemEngine newEngine()
BaseEngine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |