Package simtools.data

Examples of simtools.data.DataSourcePool


        id = id.substring(simtools.data.DataSourceAnimator.MARKER.length());
        long period = ((Long) (((Object[]) optionalInformation)[1])).longValue();
        boolean autostop = ((Boolean) (((Object[]) optionalInformation)[2])).booleanValue();
        int delay = ((Integer) (((Object[]) optionalInformation)[3])).intValue();
        Object realOption = ((Object[]) optionalInformation)[4];
        DataSourcePool poolToSearch = pool;
        if (pool == null) {
            poolToSearch = DataSourcePool.global;
        }
        // Do not add the result in the datapool yet, but rather add this object
        // on success
        DataSource ds = poolToSearch.provide(id, dscId, realOption, false);
        if (ds == null) {
            return null;
        }
        if (ds instanceof EmptyDataSource) {
            DefaultEmptyDataSource emptyDs = new DefaultEmptyDataSource(id, simtools.data.DataSourceAnimator.MARKER
View Full Code Here


    // Otherwise create a new collection
    long period = ((Long)(((Object[])optionalInformation)[1])).longValue();
    boolean autostop = ((Boolean)(((Object[])optionalInformation)[2])).booleanValue();
    Object realOption = ((Object[])optionalInformation)[3];

    DataSourcePool poolToSearch = pool;
    if (pool==null) poolToSearch=DataSourcePool.global;

    // Do not add the result in the datapool yet, but rather add this object on success
    DataSource ds = poolToSearch.provide(id,dscId,realOption,false);
    if (ds==null) return null;

    if (ds instanceof EmptyDataSource){
      DefaultEmptyDataSource emptyDs = new DefaultEmptyDataSource(id, marker + dscId, optionalInformation);
      EmptyDataSourcePool.global.addEmptyDaSource(id, emptyDs);
View Full Code Here

TOP

Related Classes of simtools.data.DataSourcePool

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.