Examples of JSIMModel


Examples of jmt.gui.jsim.definitions.JSIMModel

    }
    return !checkForSave("<html>Save changes before closing?</html>");
  }

  protected void switchToSimulator() {
    JSIMModel output = new JSIMModel();
    // New Converter by Bertoli Marco
    List res = ModelConverter.convertJMVAtoJSIM(data, output);
    JSIMMain jsim = new JSIMMain(output);
    jsim.show();
    // If problems are found, shows warnings
View Full Code Here

Examples of jmt.gui.jsim.definitions.JSIMModel

   */
  private void openFile() {
    if (checkForSave("<html>Save changes before opening a saved model?</html>")) {
      return;
    }
    JSIMModel tmpmodel = new JSIMModel();
    int state = modelLoader.loadModel(tmpmodel, this);
    if (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {
      currentFile = modelLoader.getSelectedFile();
      // At this point loading was successful, so substitutes old model with loaded one
      model = tmpmodel;
View Full Code Here

Examples of jmt.gui.jsim.definitions.JSIMModel

  private void newFile() {
    if (checkForSave("<html>Save changes before creating a new model?</html>")) {
      return;
    }
    setPanelsData(new JSIMModel());
    currentFile = null;
    SHOW_RESULTS.setSelected(false);
    SHOW_RESULTS.setEnabled(false);
    setTitle(WINDOW_TITLE);
    // Disposes results (if any)
View Full Code Here

Examples of jmt.gui.jsim.definitions.JSIMModel

  public JSIMMain(CommonModel model) {
    super();
    Defaults.reload();
    if (model == null) {
      this.model = new JSIMModel();
    } else {
      this.model = model;
    }
    model = this.model;
    setSize(Defaults.getAsInteger("JSIMWindowWidth").intValue(), Defaults.getAsInteger("JSIMWindowHeight").intValue());
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.