blob: c46da1bb0fd3c7db681d33b0229d6b1f463cd5d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.eclipse.viatra.solver.data.query.internal;
import org.eclipse.viatra.query.runtime.api.scope.IBaseIndex;
import org.eclipse.viatra.query.runtime.api.scope.IEngineContext;
import org.eclipse.viatra.query.runtime.matchers.context.IQueryRuntimeContext;
public class RelationalEngineContext implements IEngineContext{
private final IBaseIndex baseIndex = new DummyBaseIndexer();
private final RelationalRuntimeContext runtimeContext;
public RelationalEngineContext(RelationUpdateListener updateListener) {
runtimeContext = new RelationalRuntimeContext(updateListener);
}
@Override
public IBaseIndex getBaseIndex() {
return this.baseIndex;
}
@Override
public void dispose() {
//lifecycle not controlled by engine
}
@Override
public IQueryRuntimeContext getQueryRuntimeContext() {
return runtimeContext;
}
}
|