Examples of TangoKey


Examples of fr.soleil.comete.tango.data.service.TangoKey

        return new StringMatrixBox();
    }

    @Override
    protected void initKey() {
        key = new TangoKey();
        TangoKeyTool.registerCommandDeviceList(key, tangoHelper.getDeviceName());
    }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

        add(textField2);
        add(player);
    }

    public void connect() {
        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan/State");
        stringBox.connectWidget(state1, key);

        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        stringBox.connectWidget(state2, simulatedKey.getStringScalarKey());
        stringBox.connectWidget(textField, simulatedKey.getStringScalarKey());

        TangoKey attributeWritekey = new TangoKey();
        TangoKeyTool.registerWriteAttribute(attributeWritekey, "tango/tangotest/titan", "ampli");
        stringBox.connectWidget(combo, attributeWritekey);
        stringBox.setConfirmation(combo, true);
        combo.setDisplayedList(new String[] { "Valeur 0", "Valeur 1", "Valeur 2", "Valeur 3" });
        combo.setValueList((Object[]) new String[] { "0", "1", "2", "3" });

        TangoKey attributekey = new TangoKey();
        TangoKeyTool.registerAttribute(attributekey, "tango/tangotest/titan", "ampli");
        stringBox.connectWidget(textField2, attributekey);

        matrixBox.connectWidget(table, simulatedKey.getImageNumberMatrixKey());
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

        NumberMatrixTable table = new NumberMatrixTable();

        NumberMatrixBox numberMBox = new NumberMatrixBox();

        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "double_image_ro");

        numberMBox.connectWidget(table, key);

        return table;
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

        // }
    }

    private void connectNewTangoAttribute(String tangoName) {

        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, tangoName);

        connectToSelectedPane(key);
    }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

        add(verticalSplit, BorderLayout.CENTER);
    }

    public void connect() {
        // connect group 1
        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "double_scalar");
        stringScalarBox.connectWidget(group1Field, key);
        DataSourceProducerProvider.setRefreshingStrategy(key, STARTEGY_1);
        key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "double_image_ro");
        numberMatrixBox.connectWidget(group1ImageViewer, key);
        DataSourceProducerProvider.setRefreshingStrategy(key, STARTEGY_1);
        // connect group 2
        key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "long_scalar");
        stringScalarBox.connectWidget(group2Field1, key);
        DataSourceProducerProvider.setRefreshingStrategy(key, STARTEGY_2);
        key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "short_scalar_ro");
        stringScalarBox.connectWidget(group2Field2, key);
        DataSourceProducerProvider.setRefreshingStrategy(key, STARTEGY_2);

        DataSourceProducerProvider.getProducerByClass(TangoDataSourceFactory.class).addRefreshingGroupListener(this);
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

        JPanel numberPanel = new JPanel(new BorderLayout());

        StringScalarBox stringBox = new StringScalarBox();
        NumberScalarBox numberBox = new NumberScalarBox();

        TangoKey stringKey = new TangoKey();
        TangoKeyTool.registerAttribute(stringKey, "tango/tangotest/titan", "string_scalar");

        TangoKey stringImageKey = new TangoKey();
        TangoKeyTool.registerAttribute(stringImageKey, "tango/tangotest/titan", "string_spectrum_ro");

        TangoKey numberKey = new TangoKey();
        TangoKeyTool.registerAttribute(numberKey, "tango/tangotest/titan", "ampli");

        // text component
        TextField textfield = new TextField();
        TextArea textArea = new TextArea();
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

    private static JPanel initPanel() {
        final JPanel panel = new JPanel();

        StringScalarBox stringBox = new StringScalarBox();

        TangoKey stringScalarKey = new TangoKey();
        TangoKeyTool.registerAttribute(stringScalarKey, "tango/tangotest/titan", "string_scalar");

        TangoKey stateKey = new TangoKey();
        TangoKeyTool.registerAttribute(stateKey, "tango/tangotest/titan", "State");

        TangoKey numberScalarKey = new TangoKey();
        TangoKeyTool.registerAttribute(numberScalarKey, "tango/tangotest/titan", "double_scalar");

        TangoKey numberScalarKey2 = new TangoKey();
        TangoKeyTool.registerAttribute(numberScalarKey2, "tango/tangotest/titaN", "double_scalar");

        TangoKey motorPositionKey = new TangoKey();
        TangoKeyTool.registerAttribute(motorPositionKey, "samba/mono/b1", "offset");

        Label stringLabel = new Label();
        Label stateLabel = new Label();
        Label numberLabel = new Label();
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

            }
        }
    }

    private void connectViewer(final IChartViewer viewer) {
        TangoKey keyX = new TangoKey();
        TangoKeyTool.registerAttribute(keyX, DEVICE, "double_spectrum");

        TangoKey keyY1 = new TangoKey();
        TangoKeyTool.registerAttribute(keyY1, DEVICE, "float_spectrum");

        TangoKey keyY2 = new TangoKey();
        TangoKeyTool.registerAttribute(keyY2, DEVICE, "long_spectrum");

        TangoKey keyY3 = new TangoKey();
        TangoKeyTool.registerAttribute(keyY3, DEVICE, "double_image");

        TangoKey keyY4 = new TangoKey();
        TangoKeyTool.registerAttribute(keyY4, "ICA/SALSA/SCAN.2", "actuator_1_1");

        TangoKey keyY5 = new TangoKey();
        TangoKeyTool.registerAttribute(keyY5, "ICA/SALSA/SCAN.2", "actuator_2_1");

        TangoKey keyY6 = new TangoKey();
        TangoKeyTool.registerAttribute(keyY6, "ICA/SALSA/SCAN.1", "data_01");
        chartBox.connectWidget(viewer, keyY6);

        TangoKey keyY7 = new TangoKey();
        TangoKeyTool.registerAttribute(keyY7, "ICA/SALSA/SCAN.1", "sensorsTimestamps");

        chartBox.connectWidgetDual(viewer, keyY7, keyY6);
        viewer.setAxisLabelFormat(IChartViewer.TIME_FORMAT, IChartViewer.X);
        viewer.setAxisDateFormat(IChartViewer.US_DATE_FORMAT, IChartViewer.X);
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

        stringBox = new StringScalarBox();
        add(commandButton);
    }

    public void connect() {
        TangoKey key = new TangoKey();
        TangoKeyTool.registerCommand(key, "tango/tangotest/titan", "State");
        commandButton.setText(key.getInformationKey());
        stringBox.setOutputInPopup(commandButton, true);
        stringBox.setUseErrorText(commandButton, false);
        stringBox.connectWidget(commandButton, key);
        stringBox.setConfirmation(commandButton, true);
    }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

     * Initializes the {@link IKey} to access Tango data with expected result type
     *
     * @return A {@link IKey}
     */
    public IKey initKey() {
        IKey key = new TangoKey();
        prepareTangoTarget(key);
        return key;
    }
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.