org.semanticweb.HermiT.hierarchy
Class RoleSubsumptionCache

java.lang.Object
  extended by 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

Nested Class Summary
protected static class RoleSubsumptionCache.RoleInfo
           
 
Field Summary
protected  java.util.Set<Role> m_allRoles
           
protected  AtomicRole m_bottomRole
           
protected  boolean m_hasInverse
           
protected  Reasoner m_reasoner
           
protected  java.util.Map<Role,RoleSubsumptionCache.RoleInfo> m_roleInfos
           
protected  Tableau m_tmpTableau
           
protected  AtomicRole m_topRole
           
 
Constructor Summary
RoleSubsumptionCache(Reasoner reasoner, boolean hasInverse, java.util.Set<Role> allRoles, AtomicRole bottomRole, AtomicRole topRole)
           
 
Method Summary
 boolean canGetAllSubsumersEasily()
           
 java.util.Set<Role> getAllKnownSubsumers(Role role)
           
protected  RoleSubsumptionCache.RoleInfo getRoleInfo(Role role)
           
 boolean isSatisfiable(Role role)
           
protected  boolean isSatisfiable(Role role, boolean updatePossibleSubsumers, Tableau tableau)
           
 boolean isSubDataRoleOf(Role subRole, Role superRole)
           
 boolean isSubObjectRoleOf(Role subRole, Role superRole)
           
 boolean isSubsumedBy(Role subrole, Role superrole)
           
protected  void updateKnownSubsumers(Role subrole, Tableau tableau)
           
protected  void updatePossibleSubsumers(Tableau tableau)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RoleSubsumptionCache

public RoleSubsumptionCache(Reasoner reasoner,
                            boolean hasInverse,
                            java.util.Set<Role> allRoles,
                            AtomicRole bottomRole,
                            AtomicRole topRole)
Method Detail

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)