|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.impl.empire.model.ReasoningServiceImpl.IndividualTranslator.TranslationCache
private class ReasoningServiceImpl.IndividualTranslator.TranslationCache
Contains cache of translation results.
Field Summary | |
---|---|
private java.util.Map<ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping,java.util.Collection<com.hp.hpl.jena.rdf.model.Statement>> |
contents
Maps a pair (class + individual) onto the result of its translation (collection of statements) |
private java.util.Map<ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping,ValidationException> |
validationExceptions
|
Constructor Summary | |
---|---|
private |
ReasoningServiceImpl.IndividualTranslator.TranslationCache()
|
Method Summary | |
---|---|
void |
cache(aterm.ATermAppl clazz,
aterm.ATermAppl individual,
java.util.Collection<com.hp.hpl.jena.rdf.model.Statement> translation)
Stores the results of translation of the given class and individual. |
void |
cacheValidationException(aterm.ATermAppl clazz,
aterm.ATermAppl individual,
ValidationException exception)
|
java.util.Collection<com.hp.hpl.jena.rdf.model.Statement> |
getCached(aterm.ATermAppl clazz,
aterm.ATermAppl individual)
Gets the cached translation results for the given class and individual |
boolean |
isCached(aterm.ATermAppl clazz,
aterm.ATermAppl individual)
Checks whether the results for the given class and individual are already cached |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map<ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping,java.util.Collection<com.hp.hpl.jena.rdf.model.Statement>> contents
private java.util.Map<ReasoningServiceImpl.ReasoningTaskBase.ClassIndividualMapping,ValidationException> validationExceptions
Constructor Detail |
---|
private ReasoningServiceImpl.IndividualTranslator.TranslationCache()
Method Detail |
---|
public boolean isCached(aterm.ATermAppl clazz, aterm.ATermAppl individual)
clazz
- the classindividual
- the individual
public java.util.Collection<com.hp.hpl.jena.rdf.model.Statement> getCached(aterm.ATermAppl clazz, aterm.ATermAppl individual) throws ValidationException
clazz
- the classindividual
- the individual
ValidationException
public void cache(aterm.ATermAppl clazz, aterm.ATermAppl individual, java.util.Collection<com.hp.hpl.jena.rdf.model.Statement> translation)
clazz
- the classindividual
- the individualtranslation
- the translation resultspublic void cacheValidationException(aterm.ATermAppl clazz, aterm.ATermAppl individual, ValidationException exception)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |