diff options
Diffstat (limited to 'subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/data/QuerySpecificationStore.java')
-rw-r--r-- | subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/data/QuerySpecificationStore.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/data/QuerySpecificationStore.java b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/data/QuerySpecificationStore.java new file mode 100644 index 00000000..649527b6 --- /dev/null +++ b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/data/QuerySpecificationStore.java | |||
@@ -0,0 +1,38 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2016, Abel Hegedus, IncQuery Labs Ltd. | ||
3 | * This program and the accompanying materials are made available under the | ||
4 | * terms of the Eclipse Public License v. 2.0 which is available at | ||
5 | * http://www.eclipse.org/legal/epl-v20.html. | ||
6 | * | ||
7 | * SPDX-License-Identifier: EPL-2.0 | ||
8 | *******************************************************************************/ | ||
9 | package tools.refinery.viatra.runtime.registry.data; | ||
10 | |||
11 | import java.util.Map; | ||
12 | import java.util.TreeMap; | ||
13 | |||
14 | /** | ||
15 | * Internal data storage object that represents a query specification registry with a set of sources driven by | ||
16 | * connectors. The sources must have unique identifiers. | ||
17 | * | ||
18 | * @author Abel Hegedus | ||
19 | * | ||
20 | */ | ||
21 | public class QuerySpecificationStore { | ||
22 | |||
23 | private Map<String, RegistrySourceImpl> sources; | ||
24 | |||
25 | /** | ||
26 | * Creates a new instance with an empty identifier to source map. | ||
27 | */ | ||
28 | public QuerySpecificationStore() { | ||
29 | this.sources = new TreeMap<>(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * @return the live, modifiable identifier to source map | ||
34 | */ | ||
35 | public Map<String, RegistrySourceImpl> getSources() { | ||
36 | return sources; | ||
37 | } | ||
38 | } | ||