Package simtools.data

Examples of simtools.data.DataInfo


     */
    public TimeStampedDataSource(String label, String id, TimeStampedDataSourceCollection c) throws IOException,
    TimeStampedDataSourceCollection.InvalidFormatException {
        setName(id);
        _collection = c;
        setInfo(new DataInfo(label, id, "", ""));

        setTime(null); // a concrete class is required
        _auxiliaries = new AuxiliaryCollection();
    }
View Full Code Here


         * @see simtools.data.ValueProvider#getValue(long)
         */
        protected DataInfo info;

        public TimeSource(String name) {
            info = new DataInfo(
                    DataInfo.getLabel(TimeStampedDataSource.this) + "." + name,
                    DataInfo.getId(TimeStampedDataSource.this) + "." + name);
        }
View Full Code Here

                if (!tfAlias.isEnabled()) {
                    return;
                }
                Object o = filteredSourceTree.getSelectedSourceOrCollection();
                if (o instanceof DataSource) {
                    DataInfo di = ((DataSource) o).getInformation();
                    String alias = tfAlias.getText();
                    if (alias.equals("")) {
                        alias = null;
                    }
                    if (di != null) {
View Full Code Here

    public double getDoubleValue(int i, long index) throws DataException {
        return ((DataSource) get(i)).getDoubleValue(index);
    }

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

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

    public RangeSource(String name, double minValue, double maxValue, double step) {
        dminValue = minValue;
        dmaxValue = maxValue;
        dstep = step;
        kind = ValueProvider.DoubleProvider;
        info = new DataInfo(name, ID_PREFIX+name);
        Object[] msgParams = new Object[] {new Double(minValue), new Double(maxValue), new Double(step)};
        info.comment = messages.printNargs("commentDouble", msgParams);
    }
View Full Code Here

    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

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

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

            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

        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

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.