Package org.semanticweb.owlapi.reasoner
Class SimpleConfiguration
java.lang.Object
org.semanticweb.owlapi.reasoner.SimpleConfiguration
- All Implemented Interfaces:
Serializable
,OWLReasonerConfiguration
A simple configuration with the general options.
- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SimpleConfiguration
(long timeOut) SimpleConfiguration
(FreshEntityPolicy freshEntityPolicy, long timeOut) SimpleConfiguration
(ReasonerProgressMonitor progressMonitor) SimpleConfiguration
(ReasonerProgressMonitor progressMonitor, long timeOut) SimpleConfiguration
(ReasonerProgressMonitor progressMonitor, FreshEntityPolicy freshEntityPolicy, long timeOut, IndividualNodeSetPolicy individualNodeSetPolicy) -
Method Summary
Modifier and TypeMethodDescriptionGets the fresh entity policy that should be used.Gets theIndividualNodeSetPolicy
which determines howNodeSet
s of named individuals are returned from the reasoner.Gets a progress monitor that the reasoner may update with information about the progress of its reasoning process.long
Gets the timeout in milliseconds for basic single reasoner operations (satisfiability check time out).
-
Constructor Details
-
SimpleConfiguration
public SimpleConfiguration()Default constructor. -
SimpleConfiguration
- Parameters:
progressMonitor
- the progress monitor to use
-
SimpleConfiguration
- Parameters:
progressMonitor
- the progress monitor to usetimeOut
- the timeout in milliseconds
-
SimpleConfiguration
public SimpleConfiguration(ReasonerProgressMonitor progressMonitor, FreshEntityPolicy freshEntityPolicy, long timeOut, IndividualNodeSetPolicy individualNodeSetPolicy) - Parameters:
progressMonitor
- the progress monitor to usefreshEntityPolicy
- the policy for fresh entitiestimeOut
- the timeout in millisecondsindividualNodeSetPolicy
- the policy for individual nodes
-
SimpleConfiguration
- Parameters:
freshEntityPolicy
- the policy for fresh entitiestimeOut
- the timeout in milliseconds
-
SimpleConfiguration
public SimpleConfiguration(long timeOut) - Parameters:
timeOut
- the timeout in milliseconds
-
-
Method Details
-
getProgressMonitor
Description copied from interface:OWLReasonerConfiguration
Gets a progress monitor that the reasoner may update with information about the progress of its reasoning process.- Specified by:
getProgressMonitor
in interfaceOWLReasonerConfiguration
- Returns:
- A progress monitor. By default this returns
NullReasonerProgressMonitor
-
getTimeOut
public long getTimeOut()Description copied from interface:OWLReasonerConfiguration
Gets the timeout in milliseconds for basic single reasoner operations (satisfiability check time out). If the value is equal toLong.MAX_VALUE
then this means that the reasoner should never time out.
The reasoner will monitor the elapsed time during a satisfiability check (attempt to build a model for example) and if the elapsed time exceeds the timeout then it will abort the test as soon as possible and terminate all reasoning. ATimeOutException
will be thrown in the thread that invoked the last reasoner operation.
Note that this is not a timeout for method calls such as "getSubClasses", which may involve many satisfiability (or other basic reasoning task) checks, the sum of which may well exceed the timeout.- Specified by:
getTimeOut
in interfaceOWLReasonerConfiguration
- Returns:
- The time out in milliseconds. By default this is set to the value of
Long.MAX_VALUE
, which means the reasoner SHOULD NOT timeout.
-
getFreshEntityPolicy
Description copied from interface:OWLReasonerConfiguration
Gets the fresh entity policy that should be used. By default this is set toFreshEntityPolicy.ALLOW
.- Specified by:
getFreshEntityPolicy
in interfaceOWLReasonerConfiguration
- Returns:
- The fresh entity policy.
-
getIndividualNodeSetPolicy
Description copied from interface:OWLReasonerConfiguration
Gets theIndividualNodeSetPolicy
which determines howNodeSet
s of named individuals are returned from the reasoner.- Specified by:
getIndividualNodeSetPolicy
in interfaceOWLReasonerConfiguration
- Returns:
- The
IndividualNodeSetPolicy
that should be used. By default the policy isIndividualNodeSetPolicy.BY_NAME
i.e. by default individuals that are the same as each other are not grouped into the same node within a node set.
-