org.semanticweb.HermiT.hierarchy
Class RoleSubsumptionCache
java.lang.Object
org.semanticweb.HermiT.hierarchy.RoleSubsumptionCache
- All Implemented Interfaces:
- java.io.Serializable
public class RoleSubsumptionCache
- extends java.lang.Object
- implements java.io.Serializable
A cache for role subsumption and role satisfiability tests. This class also maintains the set of known and possible subsumers
for a role. This information can be used to optimize classification.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_reasoner
protected final Reasoner m_reasoner
m_tmpTableau
protected Tableau m_tmpTableau
m_roleInfos
protected final java.util.Map<Role,RoleSubsumptionCache.RoleInfo> m_roleInfos
m_hasInverse
protected final boolean m_hasInverse
m_allRoles
protected final java.util.Set<Role> m_allRoles
m_bottomRole
protected final AtomicRole m_bottomRole
m_topRole
protected final AtomicRole m_topRole
RoleSubsumptionCache
public RoleSubsumptionCache(Reasoner reasoner,
boolean hasInverse,
java.util.Set<Role> allRoles,
AtomicRole bottomRole,
AtomicRole topRole)
canGetAllSubsumersEasily
public boolean canGetAllSubsumersEasily()
getAllKnownSubsumers
public java.util.Set<Role> getAllKnownSubsumers(Role role)
isSatisfiable
public boolean isSatisfiable(Role role)
isSatisfiable
protected boolean isSatisfiable(Role role,
boolean updatePossibleSubsumers,
Tableau tableau)
isSubsumedBy
public boolean isSubsumedBy(Role subrole,
Role superrole)
isSubObjectRoleOf
public boolean isSubObjectRoleOf(Role subRole,
Role superRole)
isSubDataRoleOf
public boolean isSubDataRoleOf(Role subRole,
Role superRole)
updateKnownSubsumers
protected void updateKnownSubsumers(Role subrole,
Tableau tableau)
updatePossibleSubsumers
protected void updatePossibleSubsumers(Tableau tableau)
getRoleInfo
protected RoleSubsumptionCache.RoleInfo getRoleInfo(Role role)