Examples of IKeyGenerator


Examples of fr.soleil.comete.simulated.data.service.IKeyGenerator

    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.simulated.data.service.IKeyGenerator

                .getProducerByClassName(HistoryDataSourceProducer.class.getName());
        producer.setDefaultRefreshingStrategy(REFRESHING_STRATEGY);

        // key generating system
        keyGeneratorMap = new HashMap<String, IKeyGenerator>();
        IKeyGenerator tangoKey = new TangoKeyGenerator();
        keyGeneratorMap.put(tangoKey.toString(), tangoKey);
        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        keyGeneratorMap.put(simulatedKey.toString(), simulatedKey);

        // create components
        chartBox = new ChartViewerBox();
        chartViewer = new Chart();
        // chartViewer.setAnnotation(IChartViewer.TIME_ANNO, IChartViewer.X);
View Full Code Here

Examples of fr.soleil.comete.simulated.data.service.IKeyGenerator

    }

    protected HistoryKey getKey() {
        HistoryKey key = null;
        String producerId = (String) sourceProducerList.getSelectedValue();
        IKeyGenerator keyGen = keyGeneratorMap.get(producerId);
        if (keyGen != null) {
            IKey tmp;
            switch (dataTypeList.getSelectedIndex()) {
                case 0:
                    tmp = keyGen.getNumberScalarKey();
                    break;
                case 1:
                    tmp = keyGen.getBooleanScalarKey();
                    break;
                case 2:
                    tmp = keyGen.getSpectrumNumberMatrixKey();
                    break;
                case 3:
                    tmp = keyGen.getBooleanMatrixKey();
                    break;
                default:
                    tmp = null;
                    break;
            }
View Full Code Here

Examples of fr.soleil.comete.simulated.data.service.IKeyGenerator

    public TestPanel(boolean debug) {
        super();
        this.debug = debug;

        IKeyGenerator tangoKey = new TangoKeyGenerator();
        keyGeneratorMap.put(tangoKey.toString(), tangoKey);

        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        keyGeneratorMap.put(simulatedKey.toString(), simulatedKey);

        // chartViewer.setFreezePanelVisible(true);
        // chartViewer.setManagementPanelVisible(true);
        // chartViewer.setAutoHighlightOnLegend(true);
        // chartViewer.setAxisSelectionVisible(true);
View Full Code Here

Examples of fr.soleil.comete.simulated.data.service.IKeyGenerator

        }
    }

    public synchronized void switchConnections(String producerId) {
        clearConnections();
        IKeyGenerator keyGen = keyGeneratorMap.get(producerId);
        if (keyGen != null) {
            currentKeyGenerator = keyGen;
            initConnections();
        }
    }
View Full Code Here

Examples of fr.soleil.comete.simulated.data.service.IKeyGenerator

        connectWidget();
    }

    private void connectWidget() {
        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        DataSourceProducerProvider.pushNewProducer(SimulatedDataSourceProducer.class);
        STRING_BOX.connectWidget(labelString, simulatedKey.getStringScalarKey());
        STRING_BOX.connectWidget(textareaString, simulatedKey.getStringScalarKey());
        STRING_BOX.connectWidget(textfieldString, simulatedKey.getStringScalarKey());
        // TABLE_BOOL_BOX.connectWidget(tableBoolean, simulatedKey.getBooleanMatrixKey());
        TABLE_NUM_BOX.connectWidget(imageViewer, simulatedKey.getImageNumberMatrixKey());
        CHART_BOX.connectWidget(chartViewer, simulatedKey.getChartKey());
        STRING_BOX.connectWidget(comboString, simulatedKey.getStringScalarKey());
        TABLE_STR_BOX.connectWidget(tableString, simulatedKey.getStringMatrixKey());
    }
View Full Code Here

Examples of fr.soleil.comete.simuled.data.service.IKeyGenerator

        super();

        DataSourceProducerProvider.pushNewProducer(SimulatedDataSourceProducer.class);
        DataSourceProducerProvider.pushNewProducer(TangoRefreshingManager.class);

        IKeyGenerator tangoKey = new TangoKeyGenerator();
        keyGeneratorMap.put(tangoKey.toString(), tangoKey);

        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        keyGeneratorMap.put(simulatedKey.toString(), simulatedKey);

        currentKeyGenerator = new SimulatedKeyGenerator();

        initConnections();
View Full Code Here

Examples of fr.soleil.comete.simuled.data.service.IKeyGenerator

        imageBox.reconnectWidget(image, currentKey);
        imageBox.reconnectWidget(imagePlayer, currentKey);
    }

    public void switchConnections(String producerId) {
        IKeyGenerator keyGen = keyGeneratorMap.get(producerId);
        if (keyGen != null) {
            currentKeyGenerator = keyGen;
            disconnectAllWidget();
            initConnections();
        }
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.