uk.ac.manchester.cs.owl.explanation.JustificationCacheManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.protege.explanation Show documentation
Show all versions of org.protege.explanation Show documentation
A plug-in that adds explanation facilities to the Protege Desktop ontology editor
package uk.ac.manchester.cs.owl.explanation;
import java.util.HashMap;
import java.util.Map;
/**
* Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 20/03/2012
*/
public class JustificationCacheManager {
private Map caches = new HashMap();
public JustificationCacheManager() {
for(JustificationType type : JustificationType.values()) {
caches.put(type, new JustificationCache());
}
}
public JustificationCache getJustificationCache(JustificationType justificationType) {
return caches.get(justificationType);
}
public void clear() {
for(JustificationCache cache : caches.values()) {
cache.clear();
}
}
}