Package org.woped.core.model.petrinet

Examples of org.woped.core.model.petrinet.SubProcessModel


    IEditor subEditor;
    while (iterator.hasNext()) {
      try {
        element = (GroupModel) iterator.next();
        if (element.getMainElement().getType() == AbstractPetriNetElementModel.SUBP_TYPE) {
          SubProcessModel subprocess = (SubProcessModel) element
              .getMainElement();
          NetAlgorithms.getArcConfiguration(subprocess, arcConfig);
          IEditor editor = (EditorVC) getM_centralMediator().getUi()
              .getEditorFocus();
          if ((arcConfig.m_numIncoming != 0)
View Full Code Here


                      ((PlaceModel) modElement).setTokens(map.getTokens());
                   
                } else if (map.getType() == AbstractPetriNetElementModel.SUBP_TYPE)
                {
                    /* CREATING A SUBPROCESS */
                    modElement = new SubProcessModel(map);
                } else if (map.getType() == AbstractPetriNetElementModel.TRANS_SIMPLE_TYPE && map.getOperatorType() == -1)
                {
                    /* CREATING A SIMPLE TRANSITION */
                    modElement = new TransitionModel(map);
                } else if (map.getType() == AbstractPetriNetElementModel.TRANS_OPERATOR_TYPE)
View Full Code Here

        if (!thisContainer) {
          // First check if we need to step upwards (after reaching
          // the initial state of a sub process)
          boolean foundStepUp = false;
          if (TransitionToOccur instanceof SubProcessModel) {
            SubProcessModel subProcessElement =
                (SubProcessModel)TransitionToOccur;
            if (subProcessElement.getElementContainer() == currentContainer) {
              // Yup. We're returning from a sub process and this
              // is the sub process transition itself. Close the sub process
              this.changeTokenGameReference(null, true);
              foundStepUp = true;
            }
View Full Code Here

      {

        cell = ((GroupModel) cell).getMainElement();
        if (cell instanceof SubProcessModel)
        {
          SubProcessModel model = (SubProcessModel) cell;
       
          IEditor subEditor = getMediator().createSubprocessEditor(
              true, editor, model);
          //rotate of Subprocess like Mainprocess
          if  (editor.isRotateSelected() != model.getDirection()){
            subEditor.rotateLayout();
            model.setDirection(editor.isRotateSelected());
          }
        }
      } else
      {
        // error
View Full Code Here

TOP

Related Classes of org.woped.core.model.petrinet.SubProcessModel

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.