Package simtools.data.merge

Examples of simtools.data.merge.MergeDataException


     *
     * @see simtools.data.merge.MergeDSCollection#add(simtools.data.async.TimeStampedDataSourceCollection)
     */
    public void add(TimeStampedDataSourceCollection tsdsc, double offset, double initialDate) throws MergeDataException {
        if ((tsdsc instanceof MergeDSCollection)) {
            throw new MergeDataException(DataInfo.getId(tsdsc) + " is already a merge of collection");
        }
        AsynchronousMergeDataSource mds = null;
        for (int i = 0; i < tsdsc.size(); i++) {
            try{
                if (!(tsdsc.get(i) instanceof TimeStampedDataSource)) {
View Full Code Here


     */
    public void add(DataSourceCollection dsc, DataSource timeRef, boolean isRelative, double offset, double initialDate)
    throws MergeDataException {

        if (dsc instanceof MergeDSCollection) {
            throw new MergeDataException(DataInfo.getId(dsc) + " is already a merge of collection");
        }
       
        // Same time reference for all created synchronous time stamped data
        TimeSource timeReference = null;
        AsynchronousMergeDataSource mds = null;
View Full Code Here

                    AsynchronousMergeDataSource mds;
                    try {
                        mds = new AsynchronousMergeDataSource(label, id, ds, timeRef,
                                isRelative, offset, initialDate);
                    } catch (DataException e) {
                        throw new MergeDataException(e.getMessage());
                    }
                    node.addDataSource(mds);
                    add(mds);

                    map.put(DataInfo.getId(mds), mds);

                    DataSourcePool.global.DataSourceCollectionDataSourceAdded(this, mds);
                    sortHugeRepertories();
                }
            }
        }catch (Exception e){
            throw new MergeDataException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of simtools.data.merge.MergeDataException

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.