Examples of canBeEnabled()


Examples of jmt.gui.common.definitions.parametric.ParametricAnalysisChecker.canBeEnabled()

        if (code == 1) {
          warnings[PARAMETRIC_ANALYSIS_MODEL_MODIFIED_WARNING] = true;
        }
        if (code == 2) {
          ParametricAnalysisChecker pac = new ParametricAnalysisChecker(class_def, station_def, simulation_def);
          if (pac.canBeEnabled()) {
            //        String[] avaible = pac.getRunnableParametricAnalysis();
            //        ParametricAnalysisDefinition newPAD = ParametricAnalysisModelFactory.createParametricAnalysisModel(avaible[0],class_def,station_def,simulation_def);
            //        simulation_def.setParametricAnalysisModel(newPAD);
            warnings[PARAMETRIC_ANALYSIS_MODEL_MODIFIED_WARNING] = true;
          }
View Full Code Here

Examples of jmt.gui.common.definitions.parametric.ParametricAnalysisChecker.canBeEnabled()

  /**
   * Checks if PA is no more avaible, but a PA model was previously defined.
   */
  private void checkForParametricAnalysisNoMoreAvaibleWarning() {
    ParametricAnalysisChecker pac = new ParametricAnalysisChecker(class_def, station_def, simulation_def);
    if ((simulation_def.isParametricAnalysisEnabled()) && (!pac.canBeEnabled())) {
      warnings[PARAMETRIC_ANALYSIS_NO_MORE_AVAIBLE_WARNING] = true;
    }
  }

  private void checkForForkWithoutJoinWarnings() {
View Full Code Here

Examples of jmt.gui.common.definitions.parametric.ParametricAnalysisChecker.canBeEnabled()

          //if the old PAModel could not be corrected..
          if (result == 2) {
            ParametricAnalysisChecker checker = new ParametricAnalysisChecker(model, model, model);
            //if there are no PA simulation avaible, disable parametric analysis
            //and return
            if (!checker.canBeEnabled()) {
              parametric = doc.createElement(XML_E_PARAMETRIC);
              parametric.setAttribute(XML_A_PARAMETRIC_ENABLED, "false");
              return;
            }
            //else set the first avaible
View Full Code Here

Examples of jmt.gui.common.definitions.parametric.ParametricAnalysisChecker.canBeEnabled()

    upperPanel.add(chooserPanel, BorderLayout.SOUTH);
    this.setLayout(new BorderLayout());
    this.setBorder(new EmptyBorder(20, 20, 20, 20));
    chooser.removeAllItems();
    ParametricAnalysisChecker pac = new ParametricAnalysisChecker(cd, sd, simd);
    if (!pac.canBeEnabled()) {
      enabler.setEnabled(false);
      parameterOptionPanel = createPanel(null);
      simd.setParametricAnalysisModel(null);
      simd.setParametricAnalysisEnabled(false);
    } else {
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.