Package simtools.data

Examples of simtools.data.DataInfo


 
  public class TestMergedCollection1 extends DynamicDataSourceCollection{

    public TestMergedCollection1(){
      for(int i=0;i<2;i++){
        createDataSource(new DataInfo("source " + i), ValueProvider.DoubleProvider);
       
        // Wrap a buffer around it so we see past values too
        try {
          bufferize(i, new DelayedBuffer(ValueProvider.DoubleProvider, 100));
        } catch (UnsupportedOperation e) {
View Full Code Here


        registerNewValues();
      }
    }
   
    public DataInfo getInformation(){
      return new DataInfo("test merged 1");
    }
View Full Code Here

 
  public class TestMergedCollection2 extends DynamicDataSourceCollection{

    public TestMergedCollection2(){
      for(int i=0;i<2;i++){
        createDataSource(new DataInfo("source " + i), ValueProvider.DoubleProvider);
       
        // Wrap a buffer around it so we see past values too
        try {
          bufferize(i, new DelayedBuffer(ValueProvider.DoubleProvider, 100));
        } catch (UnsupportedOperation e) {
View Full Code Here

       
      }
    }
   
    public DataInfo getInformation(){
      return new DataInfo("test merged 2");
    }
View Full Code Here

     * (non-Javadoc)
     *
     * @see simtools.data.DataSourceCollection#getInformation()
     */
    public DataInfo getInformation() {
        DataInfo info = new DataInfo("Test", ID_MARKER + "Test");
        return info;
    }
View Full Code Here

                        ((DefaultTreeModel)(ExpressionPanel.this.sourceTree.getModel())).nodeChanged(tn);
                        break;
                    }
                }
                if (newSource) {
                    ExpressionDataSource eds = new ExpressionDataSource(new DataInfo(name, name, exp), node);
                    DataSourcePool.global.addDataSource(eds);
                    ExpressionPanel.this.sourceTree.setSelectedValue(eds);
                }
            }
View Full Code Here

                    .getString("CantRestoreExpression")
                    + expression, JOptionPane.ERROR_MESSAGE);
            return null;
        }
        // Finally provide the source
        ExpressionDataSource eds = new ExpressionDataSource(new DataInfo(name, name, expression), node);
        if (pool != null) {
            pool.addDataSource(eds);
        }
        return eds;
    }
View Full Code Here

        /* (non-Javadoc)
         * @see simtools.data.async.StreamingTSDataSourceCollection#getInformation()
         */
        public DataInfo getInformation() {
            DataInfo info = new DataInfo("Test", ID_MARKER + "Test");
            return info;
        }
View Full Code Here

    SourceCouple sc = (SourceCouple)sources.get(series);
    sc.name = name;
  }

  public void setName(String name) {
    if (info==null) info = new DataInfo(name);
    else info.label = name;
  }
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

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.