@Override public void patchEnvironment(Environment env) { env.setDefaultReadablePort(getOutput("#current")); }
public void patchEnvironment(Environment env) { env.setDefaultReadablePort(getOutput("#current")); } }
public void patchEnvironment(Environment env) { env.setDefaultReadablePort(getOutput("#current")); } }
@Override public void patchEnvironment(Environment env) { env.setDefaultReadablePort(getOutput("#current")); }
public void patchEnvironment(Environment env) { env.setDefaultReadablePort(getOutput("#current")); } }
public void patchEnvironment(Environment env) { env.setDefaultReadablePort(getOutput("#current")); } }
protected void patchEnvironment(Environment env) { // See if there's exactly one "ordinary" input int count = 0; Input defin = null; boolean foundPrimary = false; for (Input input : inputs) { if (!input.getPort().startsWith("|") && !input.getParameterInput()) { count++; foundPrimary |= input.getPrimary(); if (defin == null || input.getPrimary()) { defin = input; } } } if (count == 1 || foundPrimary) { env.setDefaultReadablePort(defin); } } }
protected void patchEnvironment(Environment env) { // See if there's exactly one "ordinary" input int count = 0; Input defin = null; boolean foundPrimary = false; for (Input input : inputs) { if (!input.getPort().startsWith("|") && !input.getParameterInput()) { count++; foundPrimary |= input.getPrimary(); if (defin == null || input.getPrimary()) { defin = input; } } } if (count == 1 || foundPrimary) { env.setDefaultReadablePort(defin); } } }
protected void patchEnvironment(Environment env) { if (atomic) { //nop; } else { // See if there's exactly one "ordinary" input int count = 0; Input defin = null; boolean foundPrimary = false; for (Input input : inputs) { if (!input.getPort().startsWith("|") && !input.getParameterInput()) { count++; foundPrimary |= input.getPrimary(); if (!input.getPrimary() && input.getPrimarySet()) { // nop; if the port is explicitly marked primary=false, it can't count } else { if (defin == null || input.getPrimary()) { defin = input; } } } } if (count == 1 || foundPrimary) { env.setDefaultReadablePort(defin); } } }
protected void patchEnvironment(Environment env) { if (atomic) { //nop; } else { // See if there's exactly one "ordinary" input int count = 0; Input defin = null; boolean foundPrimary = false; for (Input input : inputs) { if (!input.getPort().startsWith("|") && !input.getParameterInput()) { count++; foundPrimary |= input.getPrimary(); if (!input.getPrimary() && input.getPrimarySet()) { // nop; if the port is explicitly marked primary=false, it can't count } else { if (defin == null || input.getPrimary()) { defin = input; } } } } if (count == 1 || foundPrimary) { env.setDefaultReadablePort(defin); } } }
@Override protected void setEnvironment(Environment newEnvironment) { Environment env = new Environment(newEnvironment); // Now what about my subpipeline? for (Step step : subpipeline) { env.addStep(step); } inheritedEnv = new Environment(env); patchEnvironment(env); super.setEnvironment(env); // Now what about my subpipeline Step lastStep = null; for (Step step : subpipeline) { Environment senv = new Environment(env); if (lastStep != null) { senv.setDefaultReadablePort(lastStep.getDefaultOutput()); } lastStep = step; step.setEnvironment(senv); } }
@Override protected void setEnvironment(Environment newEnvironment) { Environment env = new Environment(newEnvironment); // Now what about my subpipeline? for (Step step : subpipeline) { env.addStep(step); } inheritedEnv = new Environment(env); patchEnvironment(env); super.setEnvironment(env); // Now what about my subpipeline Step lastStep = null; for (Step step : subpipeline) { Environment senv = new Environment(env); if (lastStep != null) { senv.setDefaultReadablePort(lastStep.getDefaultOutput()); } lastStep = step; step.setEnvironment(senv); } }