Package simtools.data

Examples of simtools.data.DataInfo


        maxIndex = nSamples-1;
        generator = new Random();
        this.seed = null;
        minValue = Double.NaN;
        maxValue = Double.NaN;
        info = new DataInfo(name);
        fillValues();
    }
View Full Code Here


        maxIndex = nSamples-1;
        generator = new Random(seed);
        this.seed = new Long(seed);
        minValue = Double.NaN;
        maxValue = Double.NaN;
        info = new DataInfo(name);
        fillValues();
    }
View Full Code Here

    SourceHolder sh = (SourceHolder)sources.get(series);
    return sh.toString();
  }
 
  public void setName(String name) {
    if (info==null) info = new DataInfo(name);
    else info.label = name;
  }
View Full Code Here

  /****************************************************************************
   * Adds a new data source to the collection
   ****************************************************************************/
 
  public void addSource() { 
    DataInfo di = new DataInfo// Specify the data information
      "Socket source "+size(),   // Label of the data source : what is displayed
      "socket"+size(),            // Id of the data source : must be unique. Also used by the source providers (see the random plugin)
      "data received over a socket connection\n  (element number "+size()+" in a space separated line with CR)",     // a comment, optional
      "(unknown)"               // this data source unit, optional
    );
View Full Code Here

  /****************************************************************************
   * Returns information about the collection itself
   ****************************************************************************/
 
  public DataInfo getInformation() {
    return new DataInfo(
      "Socket Connection",    // The name of this data source collection, as appears in the source pane
      "SocketConnection"   // A unique ID. This example supposes there is only one instance of this object
    );
  }
View Full Code Here

   ****************************************************************************/
 
  public SocketDataSourceCollection() {
      // Create a first source called "packet index", useful to make XY plots.
      // See addSource() for comments
      createDataSource(new DataInfo("packet index","packet index","number of packets received",""), ValueProvider.DoubleProvider);
     
      try // Wrap a buffer around it so we see past values too
      bufferize(0, new DelayedBuffer(ValueProvider.DoubleProvider, 1000));
      } catch (UnsupportedOperation e) {
        e.printStackTrace();
View Full Code Here

   */
  public RandomDataSourceCollection() {

    // Create a first source called "time", useful to make XY plots.
    // See addSource() for comments
    createDataSource(new DataInfo("time","time","the time","s"), ValueProvider.DoubleProvider);

    // Wrap a buffer around it so we see past values too
    try {
      bufferize(0, new DelayedBuffer(ValueProvider.DoubleProvider, 100));
    } catch (UnsupportedOperation e) {
View Full Code Here

  /** Adds a new data source to the collection
   */
  public void addSource() {
   
    // Specify the data information
    DataInfo di = new DataInfo(
      "Random source "+size(), // Label of the data source : what is displayed
      "random"+size()// Id of the data source : must be unique. Also used by the source providers (see the random plugin)
      "random values", // A comment, optional
      "unit" // this data source unit, optional
    );
View Full Code Here

  /**
   * Returns information about the collection itself
   */
  public DataInfo getInformation() {
    return new DataInfo(
      "Random Collection",    // The name of this data source collection, as appears in the source pane
      "RandomCollection"   // A unique ID. This example supposes there is only one instance of this object
    );
  }
View Full Code Here

TOP

Related Classes of simtools.data.DataInfo

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.