Examples of ParameterSet


Examples of net.sf.mzmine.parameters.ParameterSet

  }

  public static void show2DVisualizerSetupDialog(RawDataFile dataFile,
      Range mzRange, Range rtRange) {

    ParameterSet parameters = MZmineCore.getConfiguration()
        .getModuleParameters(TwoDVisualizerModule.class);

    parameters.getParameter(TwoDParameters.dataFiles).setValue(
        new RawDataFile[]{dataFile});

    if (rtRange != null)
      parameters.getParameter(TwoDParameters.retentionTimeRange)
          .setValue(rtRange);
    if (mzRange != null)
      parameters.getParameter(TwoDParameters.mzRange).setValue(mzRange);

    ExitCode exitCode = parameters.showSetupDialog();

    if (exitCode != ExitCode.OK)
      return;

    int msLevel = parameters.getParameter(TwoDParameters.msLevel)
        .getValue();
    rtRange = parameters.getParameter(TwoDParameters.retentionTimeRange)
        .getValue();
    mzRange = parameters.getParameter(TwoDParameters.mzRange).getValue();

    TwoDVisualizerWindow newWindow = new TwoDVisualizerWindow(dataFile,
        msLevel, rtRange, mzRange, parameters);

    MZmineCore.getDesktop().addInternalFrame(newWindow);
View Full Code Here

Examples of net.sf.saxon.ParameterSet

                                          WithParam[] actualParams)
    throws XPathException {
        if (actualParams == null || actualParams.length == 0) {
            return null;
        }
        ParameterSet params = new ParameterSet();
        for (int i=0; i<actualParams.length; i++) {
            params.put(actualParams[i].getVariableFingerprint(),
                       actualParams[i].getSelectValue(context));
        }
        return params;
    }
View Full Code Here

Examples of net.sf.saxon.ParameterSet

     */

    protected static ParameterSet assembleTunnelParams(XPathContext context,
                                          WithParam[] actualParams)
    throws XPathException {
        ParameterSet existingParams = context.getTunnelParameters();
        if (existingParams == null) {
            return assembleParams(context, actualParams);
        }
        ParameterSet newParams = new ParameterSet(existingParams);
        if (actualParams == null || actualParams.length == 0) {
            return newParams;
        }
        for (int i=0; i<actualParams.length; i++) {
            newParams.put(actualParams[i].getVariableFingerprint(),
                          actualParams[i].getSelectValue(context));
        }
        return newParams;
    }
View Full Code Here

Examples of net.sf.saxon.ParameterSet

        Controller controller = context.getController();

        // handle parameters if any

        ParameterSet params = assembleParams(context, actualParams);
        ParameterSet tunnels = assembleTunnelParams(context, tunnelParams);

        Template currentTemplate = context.getCurrentTemplate();
        if (currentTemplate==null) {
            DynamicError e = new DynamicError("There is no current template rule");
            e.setXPathContext(context);
View Full Code Here

Examples of net.sf.saxon.ParameterSet

    public TailCall processLeavingTail(XPathContext context) throws XPathException {

        Controller controller = context.getController();
        // handle parameters if any

        ParameterSet params = assembleParams(context, actualParams);
        ParameterSet tunnels = assembleTunnelParams(context, tunnelParams);

        Template currentTemplate = context.getCurrentTemplate();
        if (currentTemplate==null) {
            DynamicError e = new DynamicError("There is no current template rule");
            e.setXPathContext(context);
View Full Code Here

Examples of net.sf.saxon.ParameterSet

            thisMode = context.getCurrentMode();
        }

        // handle parameters if any

        ParameterSet params = assembleParams(context, actualParams);
        ParameterSet tunnels = assembleTunnelParams(context, tunnelParams);

        if (returnTailCall) {
            XPathContextMajor c2 = context.newContext();
            c2.setOrigin(this);
            return new ApplyTemplatesPackage(
View Full Code Here

Examples of net.sf.saxon.ParameterSet

    public boolean useLocalParameter(int fingerprint,
                                     LocalParam binding,
                                     boolean isTunnel) throws XPathException {

        ParameterSet params = (isTunnel ? tunnelParameters : localParameters);
      if (params==null) return false;
      Value val = params.get(fingerprint);
        stackFrame.slots[binding.getSlotNumber()] = val;
        return (val != null);
    }
View Full Code Here

Examples of net.sf.saxon.ParameterSet

        Template target = getTargetTemplate(context);

        // handle parameters if any

        ParameterSet params = assembleParams(context, actualParams);
        ParameterSet tunnels = assembleTunnelParams(context, tunnelParams);

        // Call the named template. Actually, don't call it; rather construct a call package
        // and return it to the caller, who will then process this package.

        //System.err.println("Call template using tail recursion");
        if (params==null) {                  // bug 490967
            params = new ParameterSet();
        }

        return new CallTemplatePackage(target, params, tunnels, context);
    }
View Full Code Here

Examples of org.apache.pluto.om.common.ParameterSet

                desc.setDescription("Automated generated Portlet Wrapper");
                desc.setLocale(Locale.ENGLISH);
                DescriptionSetImpl descSet = new DescriptionSetImpl();
                descSet.add(desc);
                servletCtrl.setDescriptions(descSet);
                ParameterSet parameters = servlet.getInitParameterSet();

                ParameterSetCtrl parameterSetCtrl =
                    (ParameterSetCtrl) controllerFactory.get(parameters);

                Parameter parameter1 = parameters.get("portlet-class");
                if (parameter1 == null) {
                    parameterSetCtrl.add(
                        "portlet-class",
                        portlet.getClassName());
                } else {
                    ParameterCtrl parameterCtrl =
                        (ParameterCtrl) controllerFactory.get(parameter1);
                    parameterCtrl.setValue(portlet.getClassName());

                }
                Parameter parameter2 = parameters.get("portlet-guid");
                if (parameter2 == null) {
                    parameterSetCtrl.add(
                        "portlet-guid",
                        portlet.getId().toString());
                } else {
View Full Code Here

Examples of org.apache.pluto.om.common.ParameterSet

            IconImpl icon = getIcon(filterE);
            String filterName = XML.getChildElementText(filterE, "filter-name");
            DisplayNameSet displayNames = getDisplayNames(filterE);
            DescriptionSet descriptions = getDescriptions(filterE);
            String filterClass = XML.getChildElementText(filterE, "filter-class");
            ParameterSet initParameters = getParameters(filterE, "init-param");
            FilterImpl filter = new FilterImpl();
            filter.setIcon(icon);
            filter.setFilterName(filterName);
            filter.setDisplayNames(displayNames);
            filter.setDescriptions(descriptions);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.