Examples of Interaction


Examples of au.com.dius.pact.model.Interaction

            responseBody = body.toString();
            return this;
        }

        private void addInteraction() {
            Interaction currentInteraction;
            if (existing.state == null) {
                currentInteraction = Interaction$.MODULE$.apply(
                        existing.description,
                        None$.apply(existing.state),
                        Request$.MODULE$.apply(existing.requestMethod, existing.path, existing.query,  existing.requestHeaders,
View Full Code Here

Examples of com.datasift.client.stream.Interaction

            String data = getDataAsString();
            try {
                ObjectNode meta = (ObjectNode) DataSiftClient.MAPPER.readTree(data);
                ArrayNode interactions = (ArrayNode) meta.get("interactions");
                for (JsonNode interaction : interactions) {
                    send(new Interaction(interaction));
                }
                buffer.discardReadBytes();
            } catch (IOException e) {
                log.warn("Failed to decode interactions", e);
            }
View Full Code Here

Examples of com.datasift.client.stream.Interaction

        if (done) {
            String data = getDataAsString();
            try {
                ArrayNode interactions = (ArrayNode) DataSiftClient.MAPPER.readTree(data);
                for (JsonNode interaction : interactions) {
                    send(new Interaction(interaction));
                }
                buffer.discardReadBytes();
            } catch (IOException e) {
                log.warn("Failed to decode interactions", e);
            }
View Full Code Here

Examples of com.datasift.client.stream.Interaction

        String line;
        try {
            while ((line = data.readLine()) != null) {
                //System.out.println(line);
                ObjectNode interaction = (ObjectNode) DataSiftClient.MAPPER.readTree(line);
                send(new Interaction(interaction));
            }
            buffer.discardReadBytes();
        } catch (IOException e) {
            log.info("Failed to decode interaction ", e);
        }
View Full Code Here

Examples of com.datasift.client.stream.Interaction

        //don't forget to start it, AFTER creating the pull subscription
        datasift.historics().start(historic).sync();

        PulledInteractions historicSubscriptions = datasift.push().pull(historicsSubscription).sync();

        Interaction interaction;
        while (!((interaction = historicSubscriptions.take()) instanceof LastInteraction)) {
            System.out.println(interaction);
        }
        System.out.println("We're done!");
    }
View Full Code Here

Examples of com.datasift.client.stream.Interaction

        PushSubscription streamSubscription = datasift.push()
                .createPull(PullJsonType.JSON_NEW_LINE, stream, "pull test").sync();

        PulledInteractions streamSubscriptions = datasift.push().pull(streamSubscription).sync();

        Interaction interaction;
        //non-blocking loop - if no data is available at the time of request the loop will be exited
        //if using this approach you must remember to manually call streamSubscriptions.stopPulling();
        for (Interaction i : streamSubscriptions) {
            System.out.println(i);
        }
View Full Code Here

Examples of de.FeatureModellingTool.FeatureModel.Interaction

                    }

                }
            } else if (relationName.equals(Interaction.Interaction)) {//����ģ���ڹ�ϵ�ı䴦��
                if (!oldSFID.equals(newSFID) || !oldEFID.equals(newEFID)) {
                    Interaction interaction = interactionModel.getInteraction(id);
                    String type = interaction.getType();
                    String name = interaction.getName();
                    interactionModelEditor.removeInteraction(id);

                    //����id��figure��ӳ���
                    if (idToFigureMap != null) {
                        idToFigureMap.remove(interaction.getID(), focusConnection);
                    }

                    if (!interactionModel.containsInteraction(type, name, newSFID, newEFID)) {
                        Interaction newInteraction = interactionModelEditor.addInteraction(id, type, name, newSFID, newEFID);

                        //����id��figure��ӳ���
                        if (idToFigureMap != null) {
                            idToFigureMap.add(newInteraction.getID(), focusConnection);
                        }
                    } else {
                        drawingView.removeFromSelection(focusConnection);
                        drawingView.remove(focusConnection);
                    }
View Full Code Here

Examples of de.FeatureModellingTool.FeatureModel.Interaction

                    }

                }
            } else if (relationName.equals(Interaction.Interaction)) {//����ģ���ڹ�ϵ�ı䴦��
                if (!oldSFID.equals(newSFID) || !oldEFID.equals(newEFID)) {
                    Interaction interaction = interactionModel.getInteraction(id);
                    String type = interaction.getType();
                    String name = interaction.getName();
                    interactionModelEditor.removeInteraction(id);

                    //����id��figure��ӳ���
                    if (idToFigureMap != null) {
                        idToFigureMap.remove(interaction.getID(), focusConnection);
                    }

                    if (!interactionModel.containsInteraction(type, name, newSFID, newEFID)) {
                        Interaction newInteraction = interactionModelEditor.addInteraction(id, type, name, newSFID, newEFID);

                        //����id��figure��ӳ���
                        if (idToFigureMap != null) {
                            idToFigureMap.add(newInteraction.getID(), focusConnection);
                        }
                    } else {
                        drawingView.removeFromSelection(focusConnection);
                        drawingView.remove(focusConnection);
                    }
View Full Code Here

Examples of de.FeatureModellingTool.FeatureModel.Interaction

    protected class InteractionModelPropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent evt) {
            Object src = evt.getSource();

            if (src instanceof Interaction) {
                Interaction target = (Interaction) src;
                String propertyName = evt.getPropertyName();

                if (propertyName.equals(InteractionProperties.NAME)
                        || propertyName.equals(InteractionProperties.TYPE)) {
                    Set set = idToFigureMap.get(target.getID());

                    if (set == null) return;

                    //update the figure's display
                    Iterator iterator = set.iterator();
                    while (iterator.hasNext()) {
                        Figure fig = (Figure) iterator.next();
                        fig.setAttribute("text", target.getType() + ":" + target.getName());
                        fig.invalidate();
                    }
                }
            } else if (src instanceof ResourceComponent) {
                ResourceComponent rc = (ResourceComponent) src;
View Full Code Here

Examples of de.FeatureModellingTool.FeatureModel.Interaction

    protected class InteractionModelPropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent evt) {
            Object src = evt.getSource();

            if (src instanceof Interaction) {
                Interaction target = (Interaction) src;
                String propertyName = evt.getPropertyName();

                if (propertyName.equals(InteractionProperties.NAME)
                        || propertyName.equals(InteractionProperties.TYPE)) {
                    Set set = idToFigureMap.get(target.getID());

                    if (set == null) return;

                    //update the figure's display
                    Iterator iterator = set.iterator();
                    while (iterator.hasNext()) {
                        Figure fig = (Figure) iterator.next();
                        fig.setAttribute("text", target.getType() + ":" + target.getName());
                        fig.invalidate();
                    }
                }
            } else if (src instanceof ResourceComponent) {
                ResourceComponent rc = (ResourceComponent) src;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.