Examples of TangoDataSourceFactory


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

    // TODO CHANGE TO GET A KEY LIST ???
    /**
     * set refreshing period on source. WARNING WORKS ONLY FOR KEY FIELD
     */
    protected void applyRefreshingPeriod() {
        final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
        // factory.setRefreshingStrategy(factory.createDataSource(key),
        // RefreshingStrategy.GROUPED_BY_REFRESHING_PERIOD,
        // this.refreshingPeriod);
        factory.setRefreshingStrategy(key, new PolledRefreshingStrategy(refreshingPeriod));
        // p�riode par d�faut
        // TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD
    }
View Full Code Here

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

     * set refreshing period on source. WARNING WORKS ONLY FOR KEY FIELD
     */
    protected void applyRefreshingPeriod() {

        if (mybox.isTargetConnected(widget, key)) {
            final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            // factory.setRefreshingStrategy(factory.createDataSource(key),
            // RefreshingStrategy.GROUPED_BY_REFRESHING_PERIOD,
            // this.refreshingPeriod);
            factory.setRefreshingStrategy(key, new PolledRefreshingStrategy(refreshingPeriod));
            // p�riode par d�faut
            // TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD
        }

    }
View Full Code Here

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

     * set refreshing period on source. WARNING WORKS ONLY FOR KEY FIELD
     */
    protected void applyRefreshingPeriod() {

        if (mybox.isTargetConnected(widget, key)) {
            final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            // factory.setRefreshingStrategy(factory.createDataSource(key),
            // RefreshingStrategy.GROUPED_BY_REFRESHING_PERIOD,
            // this.refreshingPeriod);
            factory.setRefreshingStrategy(key, new PolledRefreshingStrategy(refreshingPeriod));
            // p�riode par d�faut
            // TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD
        }

    }
View Full Code Here

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

     * set refreshing period on source. WARNING WORKS ONLY FOR KEY FIELD
     */
    protected void applyRefreshingPeriod() {

        if (mybox.isTargetConnected(widget, key)) {
            final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            // factory.setRefreshingStrategy(factory.createDataSource(key),
            // RefreshingStrategy.GROUPED_BY_REFRESHING_PERIOD,
            // this.refreshingPeriod);
            factory.setRefreshingStrategy(key, new PolledRefreshingStrategy(refreshingPeriod));
            // p�riode par d�faut
            // TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD
        }

    }
View Full Code Here

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

  // TODO CHANGE TO GET A KEY LIST ???
  /**
   * set refreshing period on source. WARNING WORKS ONLY FOR KEY FIELD
   */
  protected void applyRefreshingPeriod() {
    final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
        .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
    // factory.setRefreshingStrategy(factory.createDataSource(key),
    // RefreshingStrategy.GROUPED_BY_REFRESHING_PERIOD,
    // this.refreshingPeriod);
    factory.setRefreshingStrategy(key, new PolledRefreshingStrategy(
        refreshingPeriod));
    // p�riode par d�faut
    // TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD
  }
View Full Code Here

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

     * set refreshing period on source. WARNING WORKS ONLY FOR KEY FIELD
     */
    protected void applyRefreshingPeriod() {

        if (mybox.isTargetConnected(widget, key)) {
            final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                    .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
            // factory.setRefreshingStrategy(factory.createDataSource(key),
            // RefreshingStrategy.GROUPED_BY_REFRESHING_PERIOD,
            // this.refreshingPeriod);
            factory.setRefreshingStrategy(key, new PolledRefreshingStrategy(refreshingPeriod));
            // p�riode par d�faut
            // TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD
        }

    }
View Full Code Here

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

  // TODO CHANGE TO GET A KEY LIST ???
  /**
   * set refreshing period on source. WARNING WORKS ONLY FOR KEY FIELD
   */
  protected void applyRefreshingPeriod() {
    final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
        .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
    // factory.setRefreshingStrategy(factory.createDataSource(key),
    // RefreshingStrategy.GROUPED_BY_REFRESHING_PERIOD,
    // this.refreshingPeriod);
    factory.setRefreshingStrategy(key, new PolledRefreshingStrategy(
        refreshingPeriod));
    // p�riode par d�faut
    // TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD
  }
View Full Code Here

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

    @Override
    protected void applyRefreshingPeriod() {
        if (boxType != null) {
            if (boxType.isTargetConnected(readWidget, keyRead)) {
                final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                        .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
                factory.setRefreshingStrategy(keyRead, new PolledRefreshingStrategy(
                        refreshingPeriod));
                // p�riode par d�faut
                // TangoDataSourceFactory.DEFAULT_SLEEPING_PERIOD
            }
        }
View Full Code Here

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

        stringBox.connectWidget(numberLabel, numberScalarKey);
        numberScalarBox.connectWidget(numberCombo, numberScalarWriteKey);
        booleanScalarBox.connectWidget(booleanCombo, booleanScalarWriteKey);
        stringBox.connectWidget(booleanLabel, booleanScalarWriteKey);
        stringMatrixBox.connectWidget(matrixCombo, stringMatrixKey);
        TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                .getProducerByClassName(TangoDataSourceFactory.class.getName());
        factory.setRefreshingStrategy(stringMatrixKey, null);

        panel.add(stringLabel);
        panel.add(stringCombo);
        panel.add(numberLabel);
        panel.add(numberCombo);
View Full Code Here

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

     * @param args
     */
    public static void main(String[] args) {

        DataSourceProducerProvider.pushNewProducer(TangoDataSourceFactory.class);
        final TangoDataSourceFactory factory = (TangoDataSourceFactory) DataSourceProducerProvider
                .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);

        // read attributes from command line
        String[] tmpAttributeList = null;
        if (args != null && args.length > 0) {
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.