|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Engine
Interface for interpreter engines.
Field Summary | |
---|---|
static String |
OPTION_CHECK_DANGLING
Option for general checks for dangling edges. |
static String |
OPTION_DETERMINISTIC
Option for general deterministic engine behavior. |
static String |
OPTION_INJECTIVE_MATCHING
Option for general injective rule matching. |
static String |
OPTION_INVERSE_MATCHING_ORDER
Option for enabling / disabling inverse matching order. |
static String |
OPTION_SORT_VARIABLES
Option for enabling / disabling automatic variable sorting. |
static String |
OPTION_WORKER_THREADS
Option for setting the number of worker threads to be used. |
Method Summary | |
---|---|
Change |
createChange(Rule rule,
EGraph graph,
Match completeMatch,
Match resultMatch)
Create an Change for applying a rule. |
Iterable<Match> |
findMatches(Rule rule,
EGraph graph,
Match partialMatch)
Find matches for a Rule in an EGraph . |
Map<String,Object> |
getOptions()
Get or set the options for this engine. |
ScriptEngine |
getScriptEngine()
Get the used script engine. |
void |
shutdown()
Shutdown this engine. |
Field Detail |
---|
static final String OPTION_INJECTIVE_MATCHING
static final String OPTION_CHECK_DANGLING
static final String OPTION_DETERMINISTIC
static final String OPTION_SORT_VARIABLES
static final String OPTION_INVERSE_MATCHING_ORDER
static final String OPTION_WORKER_THREADS
Method Detail |
---|
Iterable<Match> findMatches(Rule rule, EGraph graph, Match partialMatch)
Rule
in an EGraph
.
rule
- Rule to be matched.graph
- Graph where the match should be found.partialMatch
- Partial match (can be empty or null
).
Change createChange(Rule rule, EGraph graph, Match completeMatch, Match resultMatch)
Change
for applying a rule.
rule
- Rule to be applied.graph
- Graph where the rule should be applied.completeMatch
- A complete match for the rule in the graph.resultMatch
- This result match will be initialized by the engine!
Change
object that can be used to apply the ruleScriptEngine getScriptEngine()
Map<String,Object> getOptions()
void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |