blob: a82d12ec523039bc7468f7d29644aae271a48d9c (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*******************************************************************************
* Copyright (c) 2010-2014, Zoltan Ujhelyi, Istvan Rath and Daniel Varro
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-v20.html.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package tools.refinery.viatra.runtime.matchers.psystem;
import java.util.Set;
import tools.refinery.viatra.runtime.matchers.ViatraQueryRuntimeException;
import tools.refinery.viatra.runtime.matchers.psystem.annotations.PAnnotation;
import tools.refinery.viatra.runtime.matchers.psystem.queries.PProblem;
import tools.refinery.viatra.runtime.matchers.psystem.queries.PQuery;
/**
* Adds extra methods to the PQuery interface to initialize its contents.
*
* @author Zoltan Ujhelyi
*
*/
public interface InitializablePQuery extends PQuery {
/**
* Sets the query status. Only applicable if the pattern is still {@link PQueryStatus#UNINITIALIZED uninitialized}.
*
* @param status the new status
*/
void setStatus(PQueryStatus status);
/**
* Adds a detected error. Only applicable if the pattern is still {@link PQueryStatus#UNINITIALIZED uninitialized}.
*
* @param problem the new problem
*/
void addError(PProblem problem);
/**
* Sets up the bodies of the pattern. Only applicable if the pattern is still {@link PQueryStatus#UNINITIALIZED
* uninitialized}.
*
* @param bodies
* @throws ViatraQueryRuntimeException
*/
void initializeBodies(Set<PBody> bodies);
/**
* Adds an annotation to the specification. Only applicable if the pattern is still
* {@link PQueryStatus#UNINITIALIZED uninitialized}.
*
* @param annotation
*/
void addAnnotation(PAnnotation annotation);
}
|