Package simtools.data

Examples of simtools.data.CollectiveDataSource


            throw new MergeDataException("Cannot add " + DataInfo.getId(dsc) + " because its time reference is not sorted");
        }
        updateMergedTimeBounds(timeDs, isRelative, offset, initialDate);

        for(int i=0;i<dsc.size();i++){
            CollectiveDataSource data =(CollectiveDataSource)dsc.get(i);
            String id  = DataInfo.getId(data);

            if (!(id.equals(DataInfo.getId(timeDs)))){  //  Do not add the time reference to merge collection
                if (get(id)!=null){
                    id += "_" + dsc.getInformation().label; // if data source name already exists then add collection name as a suffix
View Full Code Here


  }

  public BufferedDataSource(Buffer b) {
    dataSource = (DataSource)b.provider; // or class cast exception
    if (dataSource instanceof CollectiveDataSource) {
      CollectiveDataSource c = ((CollectiveDataSource)dataSource);
      c.getCollection().attachBuffer(c.getPosition(), b);
    }
    buffer = b;
  }
View Full Code Here

TOP

Related Classes of simtools.data.CollectiveDataSource

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.