Package simtools.data

Examples of simtools.data.DataException


        public Object getObjectValue(long index) throws DataException {
            if(index<startIndex || index>lastIndex){
                throw new NoSuchIndex(index);
            }
            if (_values==null)
                throw new DataException("Null buffer on direct data source " + DataInfo.getId(source));

            return new Double(_values.get((int)index));
        }
View Full Code Here


        public double getDoubleValue(long index) throws DataException {
            if(index<startIndex || index>lastIndex){
                throw new NoSuchIndex(index);
            }
            if (_values==null)
                throw new DataException("Null buffer on direct data source " + DataInfo.getId(source));

            return _values.get((int)index);
       
View Full Code Here

            }

            public Object getValue(long index) throws DataException {
                long k = index - startIndex;
                if (k > Integer.MAX_VALUE) {
                    throw new DataException("invalid index : " + index + " startIndex=" + startIndex);
                }
                return new Double(db.get((int) k));
            }
View Full Code Here

            }

            public double getDoubleValue(long index) throws DataException {
                long k = index - startIndex;
                if (k > Integer.MAX_VALUE) {
                    throw new DataException("invalid index : " + index + " startIndex=" + startIndex);
                }
                return (db.get((int) k));
            }
View Full Code Here

// -------- END of perl-generated corresponding code --------
    if (kind==ObjectProvider) {
      if (objectManipulator==null) objectManipulator = (ObjectManipulator)createManipulator(kind);
      if (objectManipulator!=null) return objectManipulator.getValue(index);
    }
    throw new DataException();
  }
View Full Code Here

      i = c.newInstance();
      if ((i!=null) && (i instanceof DataSourceInformation)){
        dsi = (DataSourceInformation)i;
        dsi.setPanel(ds);
      }else
        throw new DataException(resources.getString("noInfo"));
    }catch (Exception cnfe) {
      throw new DataException(resources.getString("noInfo"));
    }
  }
View Full Code Here

TOP

Related Classes of simtools.data.DataException

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.