Package net.sf.mzmine.modules

Examples of net.sf.mzmine.modules.MZmineModule


  @Override
  public void setModuleParameters(Class<? extends MZmineModule> moduleClass,
      ParameterSet parameters) {
    assert moduleClass != null;
    assert parameters != null;
    MZmineModule moduleInstance = MZmineCore.getModuleInstance(moduleClass);
    Class<? extends ParameterSet> parametersClass = moduleInstance
        .getParameterSetClass();
    if (!parametersClass.isInstance(parameters)) {
      throw new IllegalArgumentException(
          "Given parameter set is an instance of "
              + parameters.getClass() + " instead of "
View Full Code Here


              .getCurrentProject();
          currentProject.activateProject();

          // add desktop menu icon
          for (Class<?> moduleClass : MZmineModulesList.MODULES) {
            MZmineModule module = initializedModules
                .get(moduleClass);
            if (module == null)
              continue;
            if (!(module instanceof MZmineProcessingModule))
              continue;
View Full Code Here

      try {

        logger.finest("Loading module " + moduleClass.getName());

        // Create instance and init module
        MZmineModule moduleInstance = (MZmineModule) moduleClass
            .newInstance();

        // Add to the module list
        initializedModules.put(moduleClass, moduleInstance);

        // Create an instance of parameter set
        Class<? extends ParameterSet> parameterSetClass = moduleInstance
            .getParameterSetClass();
        ParameterSet parameterSetInstance = parameterSetClass
            .newInstance();

        // Add the parameter set to the configuration
View Full Code Here

TOP

Related Classes of net.sf.mzmine.modules.MZmineModule

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.