Examples of AsciiFileDataSourceCollection


Examples of simtools.data.AsciiFileDataSourceCollection

            return false; // but should not happen
        }
        try {
            DataSourceCollection dsc;
            if ((optionPanel != null) && optionPanel.isSubSampled()) {
                dsc = new AsciiFileDataSourceCollection(f, (int) optionPanel.getSubSampleValue(), optionPanel
                        .getChartsetName(), f.getName().endsWith(".csv"));
            } else if (optionPanel != null) {
                dsc = new AsciiFileDataSourceCollection(f, optionPanel.getChartsetName(), f.getName().endsWith(".csv"));
            } else {
                dsc = new AsciiFileDataSourceCollection(f, f.getName().endsWith(".csv"));
            }
            if ((optionPanel != null) && optionPanel.isDynamic()) {
                DataSourceCollectionAnimator dsca = new DataSourceCollectionAnimator(dsc);
                dsca.bufferize(new DelayedBuffer(optionPanel.getBufferSize()));
                dsca.setPeriod(optionPanel.getDynamicRefreshValue());
View Full Code Here

Examples of simtools.data.AsciiFileDataSourceCollection

   * @see simtools.data.BasicDataSourceProvider#getOptionalInformation(simtools.data.DataSource, simtools.data.DataSourceCollection)
   */
  public Object getOptionalInformation(DataSource ds, DataSourceCollection dsc) {
    if ((dsc==null) || (!(dsc instanceof AsciiFileDataSourceCollection)))
      return null;
    AsciiFileDataSourceCollection adsc = (AsciiFileDataSourceCollection)dsc;
    return new int[] {adsc.getGranularity(), adsc.getSubsampling()};
  }
View Full Code Here

Examples of simtools.data.AsciiFileDataSourceCollection

    return new int[] {adsc.getGranularity(), adsc.getSubsampling()};
  }


  protected DataSourceCollection createCollection(File f,int granularity, int subsamplingthrows IOException, InvalidFormatException {
    return  new AsciiFileDataSourceCollection(f, subsampling, granularity,f.getName().endsWith(".csv"));
  }
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.