Examples of checkCorrectness()


Examples of jmt.gui.common.definitions.parametric.ParametricAnalysisDefinition.checkCorrectness()

   * changed when possible.
   */
  private void checkForParametricAnalysisModelModifiedWarning() {
    if (simulation_def.isParametricAnalysisEnabled()) {
      ParametricAnalysisDefinition pad = simulation_def.getParametricAnalysisModel();
      int code = pad.checkCorrectness(false);
      if (code != 0) {
        if (code == 1) {
          warnings[PARAMETRIC_ANALYSIS_MODEL_MODIFIED_WARNING] = true;
        }
        if (code == 2) {
View Full Code Here

Examples of jmt.gui.common.definitions.parametric.ParametricAnalysisDefinition.checkCorrectness()

   */
  static void writeParametricAnalysisInfos(Document doc, Node guiNode, CommonModel model) {
    Element parametric;
    if (model.isParametricAnalysisEnabled()) {
      ParametricAnalysisDefinition pad = model.getParametricAnalysisModel();
      int result = pad.checkCorrectness(false);
      //if the parametric analysis model is not consistent with the model..
      if (result != 0) {
        int choice = JOptionPane.showConfirmDialog(null,
            "The parametric analysis model is not consistent with the simulation model, try to change it?", "JMT - Warning",
            JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
View Full Code Here

Examples of jmt.gui.common.definitions.parametric.ParametricAnalysisDefinition.checkCorrectness()

              pad = ParametricAnalysisModelFactory.createParametricAnalysisModel(avaibleModel, model, model, model);
            }
          }
          //else the PAModel can be corrected, so correct it
          else {
            pad.checkCorrectness(true);
          }
        }
      }
      //save parametric analysis configuration
      Map<String, String> properties = pad.getProperties();
View Full Code Here

Examples of jmt.gui.common.definitions.parametric.ParametricAnalysisDefinition.checkCorrectness()

      String temp = parameters[0];
      if (pad == null) {
        pad = ParametricAnalysisModelFactory.createParametricAnalysisModel(temp, cd, sd, simd);
        simd.setParametricAnalysisModel(pad);
      } else {
        int code = pad.checkCorrectness(true); //check correctness of the PAD and if it is possible corrects it
        if (code != 2) {
          chooser.setSelectedItem(pad.getType());
        } else { //the old type of parametric analysis is no more avaible
          pad = ParametricAnalysisModelFactory.createParametricAnalysisModel(temp, cd, sd, simd);
          simd.setParametricAnalysisModel(pad);
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.