Package org.useware.kernel.gui.behaviour

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


    }

    private void saveResource(final String name, AddressMapping address, HashMap<String, Object> changeset) {

        StatementContext statementContext = statementScope.getContext(unit.getId());

        ModelNodeAdapter adapter = new ModelNodeAdapter();

        ModelNode operation = adapter.fromChangeset(
                changeset,
View Full Code Here


        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

    private void loadResource(final String name, AddressMapping address) {

        //System.out.println("Exec: "+ID+" on behalf of " + unit.getId());

        // TODO: resolve once and re-use
        StatementContext statementContext = statementScope.getContext(unit.getId());

        final ModelNode operation = address.asResource(statementContext);
        operation.get(OP).set(READ_RESOURCE_OPERATION);
        operation.get(INCLUDE_RUNTIME).set(true);
View Full Code Here

    }

    private void saveResource(final String name, AddressMapping address, HashMap<String, Object> changeset) {

        StatementContext statementContext = statementScope.getContext(unit.getId());

        ModelNodeAdapter adapter = new ModelNodeAdapter();

        ModelNode operation = adapter.fromChangeset(
                changeset,
View Full Code Here

                            DMRMapping mapping = (DMRMapping) visitor.stepReference.get(step).findMapping(DMR);
                            context.<Map>get(MODEL_DESCRIPTIONS).put(mapping.getCorrelationId(), description);

                            // aliases
                            String mappedAddress = mapping.getResolvedAddress();
                            StatementContext stmtContext = contexts.get(mappedAddress);

                            AddressMapping addressMapping = AddressMapping.fromString(mappedAddress);
                            String addressKey = addressMapping.asResource(stmtContext).toString();

                            Set<QName> aliases = aliasMappings.get(addressKey);
View Full Code Here

        }

        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

        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.StatementContext

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.