X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.mapping%2Fsrc%2Forg%2Fsimantics%2Fmapping%2Frule%2Finstructions%2FIRuleInstruction.java;h=4d3690a2f6abd7b5114937b00c93582429c6b712;hp=b8773fba7debeba6e46f5975fdeb8a9debe46fba;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.mapping/src/org/simantics/mapping/rule/instructions/IRuleInstruction.java b/bundles/org.simantics.mapping/src/org/simantics/mapping/rule/instructions/IRuleInstruction.java index b8773fba7..4d3690a2f 100644 --- a/bundles/org.simantics.mapping/src/org/simantics/mapping/rule/instructions/IRuleInstruction.java +++ b/bundles/org.simantics.mapping/src/org/simantics/mapping/rule/instructions/IRuleInstruction.java @@ -1,33 +1,33 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.mapping.rule.instructions; - -import gnu.trove.map.hash.TIntIntHashMap; -import gnu.trove.set.hash.TIntHashSet; - -import org.simantics.db.ReadGraph; -import org.simantics.db.WriteGraph; -import org.simantics.db.exception.DatabaseException; -import org.simantics.layer0.utils.triggers.IModification; -import org.simantics.mapping.constraint.instructions.IInstruction; - -public interface IRuleInstruction { - public static final boolean DEBUG = false; - public static final String INDENTATION = IInstruction.INDENTATION; - - void collectVariables(TIntHashSet reads, TIntHashSet writes); - void mapVariables(TIntIntHashMap map); - IModification execute(ReadGraph g, Object[] bindings) throws DatabaseException; - void doExecute(WriteGraph g, Object[] bindings) throws DatabaseException; - - void toString(StringBuilder b, int indent); -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.mapping.rule.instructions; + +import gnu.trove.map.hash.TIntIntHashMap; +import gnu.trove.set.hash.TIntHashSet; + +import org.simantics.db.ReadGraph; +import org.simantics.db.WriteGraph; +import org.simantics.db.exception.DatabaseException; +import org.simantics.layer0.utils.triggers.IModification; +import org.simantics.mapping.constraint.instructions.IInstruction; + +public interface IRuleInstruction { + public static final boolean DEBUG = false; + public static final String INDENTATION = IInstruction.INDENTATION; + + void collectVariables(TIntHashSet reads, TIntHashSet writes); + void mapVariables(TIntIntHashMap map); + IModification execute(ReadGraph g, Object[] bindings) throws DatabaseException; + void doExecute(WriteGraph g, Object[] bindings) throws DatabaseException; + + void toString(StringBuilder b, int indent); +}