Package simtools.data

Examples of simtools.data.DefaultEmptyDataSource


        DataSource ds = poolToSearch.provide(id, dscId, realOption, false);
        if (ds == null) {
            return null;
        }
        if (ds instanceof EmptyDataSource) {
            DefaultEmptyDataSource emptyDs = new DefaultEmptyDataSource(id, simtools.data.DataSourceAnimator.MARKER
                    + dscId, optionalInformation);
            EmptyDataSourcePool.global.addEmptyDaSource(id, emptyDs);
            return emptyDs;
        }
        DataSourceAnimator dsa = new DataSourceAnimator(ds, delay, period);
View Full Code Here


    // Do not add the result in the datapool yet, but rather add this object on success
    DataSource ds = poolToSearch.provide(id,dscId,realOption,false);
    if (ds==null) return null;

    if (ds instanceof EmptyDataSource){
      DefaultEmptyDataSource emptyDs = new DefaultEmptyDataSource(id, marker + dscId, optionalInformation);
      EmptyDataSourcePool.global.addEmptyDaSource(id, emptyDs);
          return emptyDs;
    }
   
    if (ds instanceof BufferedDataSource) ds = ((BufferedDataSource)ds).dataSource;
View Full Code Here

  /* (non-Javadoc)
   * @see simtools.data.BasicDataSourceProvider#createEmptyDatasource(java.lang.String)
   */
  protected DataSource createEmptyDatasource(String id, String dscId, Object optionalInformation){
    return new DefaultEmptyDataSource(id, dscId, optionalInformation);
  }
View Full Code Here

TOP

Related Classes of simtools.data.DefaultEmptyDataSource

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.