Package simtools.data

Examples of simtools.data.NoSuchIndex


         *
         * @see simtools.data.ValueProvider#getValue(long)
         */
        public Object getValue(long index) throws DataException {
            if (_startIndex < 0) {
                throw new NoSuchIndex(index);
            }
            if (index < _startIndex) {
                throw new NoSuchIndex(index);
            }
            if (index > _lastIndex) {
                throw new NoSuchIndex(index);
            }
            Double doubleValue = new Double(_l[(int) index % _size]);
            return mapping.get(doubleValue);
        }
View Full Code Here


         *
         * @see simtools.data.ValueProvider#getDoubleValue(long)
         */
        public double getDoubleValue(long index) throws DataException {
            if (_startIndex < 0) {
                throw new NoSuchIndex(index);
            }
            if (index < _startIndex) {
                throw new NoSuchIndex(index);
            }
            if (index > _lastIndex) {
                throw new NoSuchIndex(index);
            }
            return _l[(int) index % _size];
        }
View Full Code Here

         *
         * @see simtools.data.ValueProvider#getLongValue(long)
         */
        public long getLongValue(long index) throws DataException {
            if (_startIndex < 0) {
                throw new NoSuchIndex(index);
            }
            if (index < _startIndex) {
                throw new NoSuchIndex(index);
            }
            if (index > _lastIndex) {
                throw new NoSuchIndex(index);
            }
            return (long) _l[(int) index % _size];
        }
View Full Code Here

         *
         * @see simtools.data.ValueProvider#getValue(long)
         */
        public Object getValue(long index) throws DataException {
            if (_startIndex < 0) {
                throw new NoSuchIndex(index);
            }
            if (index < _startIndex) {
                throw new NoSuchIndex(index);
            }
            if (index > _lastIndex) {
                throw new NoSuchIndex(index);
            }
            return new Long( _i[(int) index % _size] );
        }
View Full Code Here

         *
         * @see simtools.data.ValueProvider#getLongValue(long)
         */
        public long getLongValue(long index) throws DataException {
            if (StreamingMSDataSource.this._startIndex < 0) {
                throw new NoSuchIndex(index);
            }
            if (index < _startIndex) {
                throw new NoSuchIndex(index);
            }
            if (index > _lastIndex) {
                throw new NoSuchIndex(index);
            }
            return _i[(int) index % _size];
        }
View Full Code Here

         *
         * @see simtools.data.ValueProvider#getDoubleValue(long)
         */
        public double getDoubleValue(long index) throws DataException {
            if (StreamingMSDataSource.this._startIndex < 0) {
                throw new NoSuchIndex(index);
            }
            if (index < _startIndex) {
                throw new NoSuchIndex(index);
            }
            if (index > _lastIndex) {
                throw new NoSuchIndex(index);
            }
            return _i[(int) index % _size];
        }
View Full Code Here

     * (non-Javadoc)
     *
     * @see simtools.data.async.TimeStampedDataSource#getValue(long)
     */
    public Object getValue(long index) throws DataException {
        throw new NoSuchIndex(index);
    }
View Full Code Here

     * (non-Javadoc)
     *
     * @see simtools.data.async.TimeStampedDataSource#getDoubleValue(long)
     */
    public double getDoubleValue(long index) throws DataException {
        throw new NoSuchIndex(index);
    }
View Full Code Here

         * (non-Javadoc)
         *
         * @see simtools.data.async.TimeStampedDataSource.TimeSource#getValue(long)
         */
        public Object getValue(long index) throws DataException {
            throw new NoSuchIndex(index);
        }
View Full Code Here

         * (non-Javadoc)
         *
         * @see simtools.data.async.TimeStampedDataSource.TimeSource#getDoubleValue(long)
         */
        public double getDoubleValue(long index) throws DataException {
            throw new NoSuchIndex(index);
        }
View Full Code Here

TOP

Related Classes of simtools.data.NoSuchIndex

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.