Package au.edu.qut.yawl.elements.state

Examples of au.edu.qut.yawl.elements.state.YInternalCondition


    }


    public Object clone() throws CloneNotSupportedException {
        YTask copy = (YTask) super.clone();
        copy._mi_active = new YInternalCondition(YInternalCondition._mi_active, copy);
        copy._mi_complete = new YInternalCondition(YInternalCondition._mi_complete, copy);
        copy._mi_entered = new YInternalCondition(YInternalCondition._mi_entered, copy);
        copy._mi_executing = new YInternalCondition(YInternalCondition._executing, copy);
        copy._removeSet = new HashSet();
        Iterator iter = _removeSet.iterator();
        while (iter.hasNext()) {
            YExternalNetElement elem = (YExternalNetElement) iter.next();
            YExternalNetElement elemsClone = copy._net.getNetElement(elem.getID());
View Full Code Here


                }
            } else if (element instanceof YTask) {
                stateText.append("CaseIDs in: " + element.toString() + "\r\n");
                YTask task = (YTask) element;
                for (int i = 0; i < 4; i++) {
                    YInternalCondition internalCondition = null;
                    if (i == 0) {
                        internalCondition = task.getMIActive();
                    }
                    if (i == 1) {
                        internalCondition = task.getMIEntered();
                    }
                    if (i == 2) {
                        internalCondition = task.getMIExecuting();
                    }
                    if (i == 3) {
                        internalCondition = task.getMIComplete();
                    }
                    if (internalCondition.containsIdentifier()) {
                        stateText.append("\t" + internalCondition.toString() + "\r\n");
                        List identifiers = internalCondition.getIdentifiers();
                        for (Iterator iterator = identifiers.iterator(); iterator.hasNext();) {
                            YIdentifier identifier = (YIdentifier) iterator.next();
                            stateText.append("\t\t" + identifier.toString() + "\r\n");
                        }
                    }
View Full Code Here

                    task = (YTask) netRunner_temp.getNet().getNetElement(splitname[1]);
                } else {
                    task = (YTask) net.getNetElement(splitname[1]);
                }
                if (task != null) {
                    YInternalCondition condition;
                    if (splitname[0].startsWith(YInternalCondition._mi_active)) {

                        condition = task.getMIActive();
                        condition.add(pmgr, id);

                    } else if (splitname[0].startsWith(YInternalCondition._mi_complete)) {

                        condition = task.getMIComplete();
                        condition.add(pmgr, id);

                    } else if (splitname[0].startsWith(YInternalCondition._mi_entered)) {

                        condition = task.getMIEntered();
                        condition.add(pmgr, id);

                    } else if (splitname[0].startsWith(YInternalCondition._executing)) {

                        condition = task.getMIExecuting();
                        condition.add(pmgr, id);

                    } else {
                        logger.error("Unknown YInternalCondition state");
                    }
                } else {
View Full Code Here

                    stateText.append("CaseIDs in: ")
                            .append(element.toString())
                            .append("\r\n");
                    YTask task = (YTask) element;
                    for (int i = 0; i < 4; i++) {
                        YInternalCondition internalCondition;
                        if (i == 0) {
                            internalCondition = task.getMIActive();
                        }
                        else if (i == 1) {
                            internalCondition = task.getMIEntered();
                        }
                        else if (i == 2) {
                            internalCondition = task.getMIExecuting();
                        }
                        else {//(i == 3)
                            internalCondition = task.getMIComplete();
                        }
                        if (internalCondition.containsIdentifier()) {
                            stateText.append("\t")
                                    .append(internalCondition.toString())
                                    .append("\r\n");
                            List identifiers = internalCondition.getIdentifiers();
                            for (Iterator iterator = identifiers.iterator(); iterator.hasNext();) {
                                YIdentifier identifier = (YIdentifier) iterator.next();
                                stateText.append("\t\t")
                                        .append(identifier.toString())
                                        .append("\r\n");
View Full Code Here

                            .append(((YTask) element)
                                    .getDecompositionPrototype().getID())
                            .append("\">");
                    YTask task = (YTask) element;
                    for (int i = 0; i < 4; i++) {
                        YInternalCondition internalCondition;
                        if (i == 0) {
                            internalCondition = task.getMIActive();
                        }
                        else if (i == 1) {
                            internalCondition = task.getMIEntered();
                        }
                        else if (i == 2) {
                            internalCondition = task.getMIExecuting();
                        }
                        else {//if (i == 3)
                            internalCondition = task.getMIComplete();
                        }
                        if (internalCondition.containsIdentifier()) {
                            stateText.append("<internalCondition " + "id=\"")
                                    .append(internalCondition.toString())
                                    .append("\">");
                            List identifiers = internalCondition.getIdentifiers();
                            for (Iterator iterator = identifiers.iterator(); iterator.hasNext();) {
                                YIdentifier identifier = (YIdentifier) iterator.next();
                                stateText.append("<identifier>")
                                        .append(identifier.toString())
                                        .append("</identifier>");
View Full Code Here

TOP

Related Classes of au.edu.qut.yawl.elements.state.YInternalCondition

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.