| /** |
| * |
| * Copyright (c) 2010-2015, Andras Szabolcs Nagy, Abel Hegedus, Akos Horvath, Zoltan Ujhelyi and Daniel Varro |
| * 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: |
| * Andras Szabolcs Nagy - initial API and implementation |
| * |
| */ |
| package org.eclipse.viatra.dse.examples.bpmn.patterns.util; |
| |
| import org.eclipse.viatra.dse.examples.bpmn.patterns.MakeSequentialMatch; |
| import org.eclipse.viatra.dse.examples.simplifiedbpmn.SimplifiedBPMN; |
| import org.eclipse.viatra.dse.examples.simplifiedbpmn.Task; |
| import org.eclipse.viatra.query.runtime.api.IMatchProcessor; |
| |
| /** |
| * A match processor tailored for the org.eclipse.viatra.dse.examples.bpmn.patterns.makeSequential pattern. |
| * |
| * Clients should derive an (anonymous) class that implements the abstract process(). |
| * |
| */ |
| @SuppressWarnings("all") |
| public abstract class MakeSequentialProcessor implements IMatchProcessor<MakeSequentialMatch> { |
| /** |
| * Defines the action that is to be executed on each match. |
| * @param pT1 the value of pattern parameter T1 in the currently processed match |
| * @param pT2 the value of pattern parameter T2 in the currently processed match |
| * @param pRoot the value of pattern parameter Root in the currently processed match |
| * |
| */ |
| public abstract void process(final Task pT1, final Task pT2, final SimplifiedBPMN pRoot); |
| |
| @Override |
| public void process(final MakeSequentialMatch match) { |
| process(match.getT1(), match.getT2(), match.getRoot()); |
| } |
| } |