Package org.useware.kernel.model.scopes

Examples of org.useware.kernel.model.scopes.BranchActivation


            Container container = this.container.isEmpty() ? null : this.container.peek();
            String parentId = container != null ? container.getId().toString() : null;

            // default activation
            BranchActivation activation = new BranchActivation();
            dialog.getInterfaceModel().accept(activation);
            Map<Integer,QName> activeItems = activation.getActiveItems();

            String style = activeItems.values().contains(interactionUnit.getId()) ? ACTIVE_STYLE : INACTIVE_STYLE;

            // statement context shim visualisation
            Node<Scope> self = dialog.getScopeModel().findNode(interactionUnit.getId());
View Full Code Here


                    // show result
                    ReificationWidget widget = context.get(ContextKey.WIDGET);
                    assert widget !=null;

                    cachedWidgets.put(name, widget);
                    BranchActivation activation = new BranchActivation();
                    dialog.getInterfaceModel().accept(activation);
                    //System.out.println("<< Default Activation: "+activation.getCandidate()+">>");

                    callback.onSuccess(widget.asWidget());
                }
View Full Code Here

    public void resetActivation() {

        parent2childScopes.clear();

        BranchActivation activation = new BranchActivation();
        dialog.getInterfaceModel().accept(activation);
        for(QName unitId : activation.getActiveItems().values())
        {
            // notify actual unit implementation
            stateCoordination.notifyActivation(unitId);
        }
    }
View Full Code Here

     *
     * @return the leaf unit of that branch (used for scope activation)
     */
    public QName activateBranch(InteractionUnit unit) {

        BranchActivation activation = new BranchActivation();
        unit.accept(activation);

        for(QName unitId : activation.getActiveItems().values())
        {
            // trigger activation procedure
            stateCoordination.activateUnit(unitId);
        }

        return activation.getActiveItems().get(activation.getActiveItems().size()-1);
    }
View Full Code Here

                    // show result
                    ReificationWidget widget = context.get(ContextKey.WIDGET);
                    assert widget !=null;

                    cachedWidgets.put(name, widget);
                    BranchActivation activation = new BranchActivation();
                    dialog.getInterfaceModel().accept(activation);
                    //System.out.println("<< Default Activation: "+activation.getCandidate()+">>");

                    callback.onSuccess(widget.asWidget());
                }
View Full Code Here

            Container container = this.container.isEmpty() ? null : this.container.peek();
            String parentId = container != null ? container.getId().toString() : null;

            // default activation
            BranchActivation activation = new BranchActivation();
            dialog.getInterfaceModel().accept(activation);
            Map<Integer,QName> activeItems = activation.getActiveItems();

            String style = activeItems.values().contains(interactionUnit.getId()) ? ACTIVE_STYLE : INACTIVE_STYLE;

            // statement context shadow visualisation
            Node<Scope> self = dialog.getScopeModel().findNode(interactionUnit.getId());
View Full Code Here

                    // show result
                    ReificationWidget widget = context.get(ContextKey.WIDGET);
                    assert widget !=null;

                    cachedWidgets.put(name, widget);
                    BranchActivation activation = new BranchActivation();
                    dialog.getInterfaceModel().accept(activation);
                    //System.out.println("<< Default Activation: "+activation.getCandidate()+">>");

                    callback.onSuccess(widget.asWidget());
                }
View Full Code Here

                    // show result
                    ReificationWidget widget = context.get(ContextKey.WIDGET);
                    assert widget !=null;

                    cachedWidgets.put(name, widget);
                    BranchActivation activation = new BranchActivation();
                    dialog.getInterfaceModel().accept(activation);
                    //System.out.println("<< Default Activation: "+activation.getCandidate()+">>");

                    callback.onSuccess(widget.asWidget());
                }
View Full Code Here

     *
     * @return the leaf unit of that branch (used for scope activation)
     */
    public QName activateBranch(InteractionUnit unit) {

        BranchActivation activation = new BranchActivation();
        unit.accept(activation);

        for(QName unitId : activation.getActiveItems().values())
        {
            // trigger activation procedure
            stateCoordination.activateUnit(unitId);
        }

        return activation.getActiveItems().get(activation.getActiveItems().size()-1);
    }
View Full Code Here

            Container container = this.container.isEmpty() ? null : this.container.peek();
            String parentId = container != null ? container.getId().toString() : null;

            // default activation
            BranchActivation activation = new BranchActivation();
            dialog.getInterfaceModel().accept(activation);
            Map<Integer,QName> activeItems = activation.getActiveItems();

            String style = activeItems.values().contains(interactionUnit.getId()) ? ACTIVE_STYLE : INACTIVE_STYLE;

            // statement context shadow visualisation
            Node<Scope> self = dialog.getScopeModel().findNode(interactionUnit.getScopeId());
View Full Code Here

TOP

Related Classes of org.useware.kernel.model.scopes.BranchActivation

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.