Package simtools.data

Examples of simtools.data.UnsupportedOperation


        /* (non-Javadoc)
         * @see simtools.data.DataSource#getMin()
         */
        public Object getMin() throws UnsupportedOperation {
            if (mergedTimeBuffer==null)
                throw new UnsupportedOperation("Null buffer on time data source: " + DataInfo.getId(this));
            return new Double(mergedTimeBuffer.get((int)startIndex));
        }
View Full Code Here


        /* (non-Javadoc)
         * @see simtools.data.ValueProvider#getDoubleValue(long)
         */
        public double getDoubleValue(long index) throws DataException {
            if (mergedTimeBuffer==null)
                throw new UnsupportedOperation("Null buffer on time data source: " + DataInfo.getId(this));

            if(index<startIndex || index>lastIndex){
                throw new NoSuchIndex(index);
            }
            return mergedTimeBuffer.get((int)index);
View Full Code Here

        /* (non-Javadoc)
         * @see simtools.data.ValueProvider#getObjectValue(long)
         */
        public Object getObjectValue(long index) throws DataException {
            if (mergedTimeBuffer==null)
                throw new UnsupportedOperation("Null buffer on time data source: " + DataInfo.getId(this));

            if(index<startIndex || index>lastIndex){
                throw new NoSuchIndex(index);
            }
            return new Double(mergedTimeBuffer.get((int)index));
View Full Code Here

        /* (non-Javadoc)
         * @see simtools.data.DataSource#getDoubleMax()
         */
        public double getDoubleMax() throws DataException {
            if (mergedTimeBuffer==null)
                throw new UnsupportedOperation("Null buffer on time data source: " + DataInfo.getId(this));

            return mergedTimeBuffer.get((int)lastIndex);
        }
View Full Code Here

        /* (non-Javadoc)
         * @see simtools.data.DataSource#getDoubleMin()
         */
        public double getDoubleMin() throws DataException {
            if (mergedTimeBuffer==null)
                throw new UnsupportedOperation("Null buffer on time data source: " + DataInfo.getId(this));

            return mergedTimeBuffer.get((int)startIndex);
        }
View Full Code Here

        /* (non-Javadoc)
         * @see simtools.data.ValueProvider#getValue(long)
         */
        public Object getValue(long index) throws DataException {
            if (mergedTimeBuffer==null)
                throw new UnsupportedOperation("Null buffer on time data source: " + DataInfo.getId(this));

            if(index<startIndex || index>lastIndex){
                throw new NoSuchIndex(index);
            }
            return new Double(mergedTimeBuffer.get((int)index));
View Full Code Here

   
    /* (non-Javadoc)
     * @see simtools.data.DataSource#computeLastIndex()
     */
    public long computeLastIndex() throws UnsupportedOperation {
        if (maxIndex==-1) throw new UnsupportedOperation();
        return maxIndex;
    }
View Full Code Here

TOP

Related Classes of simtools.data.UnsupportedOperation

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.