Package lupos.engine.operators.singleinput

Examples of lupos.engine.operators.singleinput.ReplaceVar


public class RuleDeleteEmptyReplaceVar extends Rule {

  @Override
  protected void init() {
    final ReplaceVar replaceVar = new ReplaceVar();

    subGraphMap = new HashMap<BasicOperator, String>();
    subGraphMap.put(replaceVar, "replaceVar");

    startNode = replaceVar;
View Full Code Here


    startNode = replaceVar;
  }

  @Override
  protected boolean checkPrecondition(final Map<String, BasicOperator> mso) {
    final ReplaceVar replaceVar = (ReplaceVar) mso.get("replaceVar");
    // No substitution is left
    return (replaceVar.getSubstitutionsVariableLeft().size() == 0);
  }
View Full Code Here

  public Tuple<Collection<BasicOperator>, Collection<BasicOperator>> transformOperatorGraph(
      final Map<String, BasicOperator> mso,
      final BasicOperator rootOperator) {
    final Collection<BasicOperator> deleted = new LinkedList<BasicOperator>();
    final Collection<BasicOperator> added = new LinkedList<BasicOperator>();
    final ReplaceVar replaceVar = (ReplaceVar) mso.get("replaceVar");

    final LinkedList<BasicOperator> pres = (LinkedList<BasicOperator>) replaceVar
        .getPrecedingOperators();
    final LinkedList<OperatorIDTuple> succs = (LinkedList<OperatorIDTuple>) replaceVar
        .getSucceedingOperators();

    BasicOperator pre;
    OperatorIDTuple idTuple;
    // Connect all precessors to all successors
View Full Code Here

TOP

Related Classes of lupos.engine.operators.singleinput.ReplaceVar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.