public class LazyMPEInference extends InferenceApplication
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
static int |
MAX_ROUNDS_DEFAULT |
static String |
MAX_ROUNDS_KEY
Key for int property for the maximum number of rounds of inference.
|
protected int |
maxRounds |
atomManager, db, GROUND_RULE_STORE_DEFAULT, GROUND_RULE_STORE_KEY, groundRuleStore, model, reasoner, REASONER_DEFAULT, REASONER_KEY, TERM_GENERATOR_DEFAULT, TERM_GENERATOR_KEY, TERM_STORE_DEFAULT, TERM_STORE_KEY, termGenerator, termStore
Constructor and Description |
---|
LazyMPEInference(Model model,
Database db) |
Modifier and Type | Method and Description |
---|---|
protected void |
completeInitialize()
Complete the initialization process.
|
protected PersistedAtomManager |
createAtomManager(Database db) |
static void |
inference(List<Rule> rules,
Reasoner reasoner,
GroundRuleStore groundRuleStore,
TermStore termStore,
TermGenerator termGenerator,
LazyAtomManager lazyAtomManager,
int maxRounds)
Do the full MPE inference process.
|
protected void |
internalInference()
The implementation of the full inference by each class.
|
close, createGroundRuleStore, createReasoner, createTermGenerator, createTermStore, getAtomManager, getGroundRuleStore, getInferenceApplication, getReasoner, getTermStore, inference, inference, initialize
public static final String CONFIG_PREFIX
public static final String MAX_ROUNDS_KEY
public static final int MAX_ROUNDS_DEFAULT
protected final int maxRounds
protected void completeInitialize()
InferenceApplication
completeInitialize
in class InferenceApplication
protected PersistedAtomManager createAtomManager(Database db)
createAtomManager
in class InferenceApplication
protected void internalInference()
InferenceApplication
internalInference
in class InferenceApplication
public static void inference(List<Rule> rules, Reasoner reasoner, GroundRuleStore groundRuleStore, TermStore termStore, TermGenerator termGenerator, LazyAtomManager lazyAtomManager, int maxRounds)
Copyright © 2020 University of California, Santa Cruz. All rights reserved.