X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2Finternal%2Ftemplates%2FTemplateDefinition.java;h=1fedb881810f6fee32a9a82acb10600d658f7f64;hp=3c79608a90b561260c485f96d0242fb8c9aee436;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinition.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinition.java index 3c79608a9..1fedb8818 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinition.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinition.java @@ -1,72 +1,72 @@ -package org.simantics.graph.compiler.internal.templates; - -import gnu.trove.map.hash.TIntIntHashMap; - -import java.util.Collection; - -import org.simantics.graph.compiler.internal.procedures.Compactify; -import org.simantics.graph.compiler.internal.procedures.ConvertPreValues; -import org.simantics.graph.compiler.internal.procedures.DefaultValueTyping; -import org.simantics.graph.compiler.internal.procedures.MergeEqualResources; -import org.simantics.graph.compiler.internal.store.LocationStore; -import org.simantics.graph.query.CompositeGraph; -import org.simantics.graph.query.Path; -import org.simantics.graph.query.TransferableGraphConversion; -import org.simantics.graph.representation.TransferableGraph1; -import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Problem; - -public class TemplateDefinition { - String[] parameters; - int[] correspondence; - GraphStore template; - - public TemplateDefinition(String[] parameters, int[] correspondence, - GraphStore template) { - this.parameters = parameters; - this.correspondence = correspondence; - this.template = template; - } - - public String[] getParameters() { - return parameters; - } - - public GraphStore getTemplate() { - return template; - } - - public void map(TIntIntHashMap map) { - for(int i=0;i problems) { - LocationStore locations = template.getStore(LocationStore.class); - for(int i=0;i problems) { + LocationStore locations = template.getStore(LocationStore.class); + for(int i=0;i