Examples of DataInfo


Examples of simtools.data.DataInfo

    public RangeSource(String name, long minValue, long maxValue, long step) {
        lminValue = minValue;
        lmaxValue = maxValue;
        lstep = step;
        kind = ValueProvider.LongProvider;
        info = new DataInfo(name, ID_PREFIX+name);
        Object[] msgParams = new Object[] {new Long(minValue), new Long(maxValue), new Long(step)};
        info.comment = messages.printNargs("commentLong", msgParams);
    }
View Full Code Here

Examples of simtools.data.DataInfo

    public Class valueClass(int i) {
        return Double.class;
    }

    public DataInfo getInformation() {
        return new DataInfo(collectionName, ID_MARKER+collectionName, "Synchronous merge");
    }
View Full Code Here

Examples of simtools.data.DataInfo

            return info;
        }

        protected void setInfo(String name){
            info=new DataInfo(name);
            info.unit= DataInfo.getUnit(source);
            try{
                //  If data already exists, set extendedLabel with name_collectionName
                if (DataSourcePool.global.getDataSourceWithId(name)!=null){
                    info.extendedLabel=  collectionName;
View Full Code Here

Examples of simtools.data.DataInfo

        public DataInfo getInformation() {
            return info;
        }

        protected void setInfo(String name){
            info=new DataInfo(name);
            info.unit= DataInfo.getUnit(source);
            info.comment= "Synchronous merge from aperiodical data source:" + DataInfo.getId(source)
            + "\n Offset =" + offset ;

            info.extendedLabel= collectionName;
View Full Code Here

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

Examples of simtools.data.DataInfo

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

Examples of simtools.data.DataInfo

 
  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

Examples of simtools.data.DataInfo

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

Examples of simtools.data.DataInfo

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

Examples of simtools.data.DataInfo

                        ((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
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.