Package org.useware.kernel.gui.behaviour

Examples of org.useware.kernel.gui.behaviour.InteractionCoordinator


    }

    @Override
    public void execute(final Dialog dialog, final Context context) throws ReificationException
    {
        InteractionCoordinator coordinator = context.get(ContextKey.COORDINATOR);
        try
        {
            // Step 3: Verify integrity
            Integrity.check(
                    dialog.getInterfaceModel(),
                    coordinator.listProcedures()
            );
        }
        catch (IntegrityErrors integrityErrors)
        {
            if (integrityErrors.needsToBeRaised())
View Full Code Here


                        @Override
                        public void onSuccess(Dialog result) {
                            control.getContext().setDialog(result);

                            // create coordinator instance
                            final InteractionCoordinator coordinator = new InteractionCoordinator(
                                    result, globalContext, Kernel.this
                            );

                            control.getContext().setCoordinator(coordinator);
                            control.proceed();
View Full Code Here

            // noop
        }

        private void addStep(InteractionUnit interactionUnit)
        {
            final InteractionCoordinator coordinator = context.get(ContextKey.COORDINATOR);
            final StatementContext delegate = coordinator.getDialogState().getContext(interactionUnit.getId());
            assert delegate != null : "StatementContext not provided";

            DMRMapping mapping = (DMRMapping) interactionUnit.findMapping(DMR, new Predicate<DMRMapping>()
            {
                @Override
View Full Code Here

            // noop
        }

        private void addStep(Trigger<StereoTypes> interactionUnit)
        {
            InteractionCoordinator coordinator = context.get(ContextKey.COORDINATOR);

            final StatementContext statementContext = coordinator.getDialogState().getContext(interactionUnit.getId());
            assert statementContext != null : "StatementContext not provided";
            assert interactionUnit.doesProduce();

            Resource<ResourceType> output = interactionUnit.getOutputs().iterator().next();
View Full Code Here

TOP

Related Classes of org.useware.kernel.gui.behaviour.InteractionCoordinator

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.