Class InputDataScenario
java.lang.Object
fr.inria.rules.integraal.component_builder.InputDataScenario
- All Implemented Interfaces:
IInputDataScenario
Represents a scenario for specifying the input of an InteGraal service (e.g.,
saturation). Provides mechanisms to set and retrieve data (facts, rules,
queries, mapping, and federation).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMutable wrapper used to track optional scenario values and their origin names. -
Constructor Summary
ConstructorsConstructorDescriptionInputDataScenario(String scenarioName) Constructs a new InputDataScenario with the specified name. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Retrieves the name of the scenario.voidsetFactbase(FactBase fb) default voidsetFactBaseFromInputDLGP(Object inputObject) Sets the fact base object from an object that represents a DLGP string.voidsetFactbasePaths(String... paths) voidvoidsetHybridRulebase(RuleBase rbSat, RuleBase rbRew) voidsetHybridRulebasePaths(Collection<String> rulebasePathsSat, Collection<String> rulebasePathsRew) voidsetMappingbasePaths(String... paths) default voidsetQuerybase(Query query) Sets the query base object, if not already set.voidsetQuerybase(Collection<Query> qb) voidsetQuerybasePaths(String... paths) voidsetRulebase(RuleBase rb) voidsetRulebasePaths(String... paths) voidsetStrikeLength(int value) toString()
-
Constructor Details
-
InputDataScenario
Constructs a new InputDataScenario with the specified name.- Parameters:
scenarioName- The name of the scenario.
-
-
Method Details
-
getName
Description copied from interface:IInputDataScenarioRetrieves the name of the scenario.- Specified by:
getNamein interfaceIInputDataScenario- Returns:
- The name of the scenario.
-
toString
-
getFactBase
-
getFactbasePaths
-
setFactbase
-
setFactbasePaths
-
getRuleBase
-
getRulebasePath
-
setRulebase
-
setRulebasePaths
-
getQueryBase
-
getQuerybasePaths
-
setQuerybase
-
setStrikeLength
public void setStrikeLength(int value) -
getStrikeLength
-
setQuerybasePaths
-
getMappingbasePaths
-
setMappingbasePaths
-
getFederatedFactBase
- Throws:
Exception
-
setFederatedFactBase
-
getHybridRulebaseSat
-
getHybridRulebaseRew
-
getHybridRulebaseSatPaths
-
getHybridRulebaseRewPaths
-
setHybridRulebase
-
setHybridRulebasePaths
public void setHybridRulebasePaths(Collection<String> rulebasePathsSat, Collection<String> rulebasePathsRew) -
getAllReferencedFilePaths
-
setFactBaseFromInputDLGP
Sets the fact base object from an object that represents a DLGP string.- Parameters:
inputObject- an object that can be turn into DLGP ; required not null
-
setQuerybase
-