Package org.woped.pnml.NetType

Examples of org.woped.pnml.NetType.Page


                // A sub-process is a reference transition with an associated page
              // First, generate the transition itself
                initTransition(iNet.addNewTransition(), (TransitionModel) currentModel, null);
                // Create the page and add the sub-net to it
                // by calling ourselves recursively
                Page newPage = iNet.addNewPage();
                // Associate the new page with the ID of the sub-process model
                // so it can be assigned back later on when importing the net
                newPage.setId(currentModel.getId());
                // Create a new XMLBean representing the sub-net
                NetType newNet = newPage.addNewNet();
               
                ModelElementContainer subProcessContainer =                
                  ((SubProcessModel)currentModel).getSimpleTransContainer();
               
                EditorLayoutInfo subProcessLayout =subProcessContainer.getEditorLayoutInfo();
View Full Code Here


          if (element.getType() == AbstractPetriNetElementModel.SUBP_TYPE) {
            // The element we just created is a sub-process element
            // Get the corresponding page from the PNML document
            // and restore the sub-process elements by recursively
            // calling importNet()
            Page pages[] = currentNet.getPageArray();
            if (pages != null) {
              for (int currentPage = 0; currentPage < pages.length; ++currentPage) {
                if (pages[currentPage].getId().equals(
                    element.getId())) {
                  // Only one sub-process net per page may be
View Full Code Here

TOP

Related Classes of org.woped.pnml.NetType.Page

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.