Class Registries
java.lang.Object
fr.inria.rules.integraal.api.external.registries.Registries
Aggregates the registries used by an external API environment.
-
Constructor Summary
ConstructorsConstructorDescriptionRegistries(boolean individualizedRules, boolean individualizedQueries) Creates the registries for one environment. -
Method Summary
Modifier and TypeMethodDescriptionReturns the analyser registry.Returns the answer iterator registry.Returns the compilation registry.getFactBase(String key) Returns the fact base associated with the given key.Returns the fact base collection registry.Returns the fact base registry.Returns the query registry.Returns the query associated with the given key.Returns the query collection registry.Returns the rule associated with the given key.getRuleBase(String key) Returns the rule base associated with the given key.Returns the rule base registry.getRules()Returns the rule registry.booleanIndicates whether this instance stores queries individually.booleanIndicates whether this instance stores rules individually.static voidTemporary entry point for manual registry checks.
-
Constructor Details
-
Registries
public Registries(boolean individualizedRules, boolean individualizedQueries) Creates the registries for one environment.- Parameters:
individualizedRules- whether rules should also be stored individuallyindividualizedQueries- whether queries should also be stored individually
-
-
Method Details
-
hasIndividualizedRules
public boolean hasIndividualizedRules()Indicates whether this instance stores rules individually.- Returns:
trueif individual rule storage is enabled
-
hasIndividualizedQueries
public boolean hasIndividualizedQueries()Indicates whether this instance stores queries individually.- Returns:
trueif individual query storage is enabled
-
getFactBases
Returns the fact base registry.- Returns:
- the fact base registry
-
getFactBase
-
getRules
-
getRule
-
getQueries
Returns the query registry.- Returns:
- the query registry
-
getQuery
Returns the query associated with the given key.- Parameters:
key- the query key- Returns:
- the stored query
-
getRuleBases
Returns the rule base registry.- Returns:
- the rule base registry
-
getRuleBase
-
getQueryCollections
Returns the query collection registry.- Returns:
- the query collection registry
-
getFactBaseCollections
Returns the fact base collection registry.- Returns:
- the fact base collection registry
-
getAnswerIterators
Returns the answer iterator registry.- Returns:
- the answer iterator registry
-
getCompilations
Returns the compilation registry.- Returns:
- the compilation registry
-
getAnalysers
Returns the analyser registry.- Returns:
- the analyser registry
-
main
Temporary entry point for manual registry checks.- Parameters:
args- command-line arguments
-