public class AddePointDataReader extends Object
toString() method is used.
Note that units are ignored by this client, default units are used.
URLs must all have the following format
adde://host/point?keyword_1=value_1&keyword_2=value_2
there can be any valid combination of the following supported keywords:
group=<groupname> ADDE group name
descr=<descriptor> ADDE descriptor name
pos=<position> request an absolute or relative ADDE
position number
select=<select clause> to specify which data is required
param=<param list> what parameters to return
num=<max> maximum number of obs to return
user=<user_id> ADDE user identification
proj=<proj #> a valid ADDE project number
trace=<0/1> setting to 1 tells server to write debug
trace file (imagedata, imagedirectory)
version=1 ADDE version number, currently 1
the following keywords are required:
group
descr
an example URL might look like:
adde://rtds/point?group=neons&type=metar
Modifier and Type | Field and Description |
---|---|
static int |
MAXNUMPARM
Maximum number of parameters - used as a sanity check
|
static int |
OB_ORDER
Key for getting data in obs order [numObs][numParams]
|
static int |
PARAM_ORDER
Key for getting data in param order [numParams][numObs]
|
Constructor and Description |
---|
AddePointDataReader(String request)
creates an AddePointDataReader object that allows reading ADDE point
datasets.
|
Modifier and Type | Method and Description |
---|---|
int[][] |
getData()
Return the data sent by the server
|
int[][] |
getData(int order)
Return the data sent by the server in a particular order
(PARAM_ORDER, OB_ORDER).
|
Object[] |
getData(String parameter)
Return an array of data for the particular parameter.
|
int |
getNumParams()
return the number of parameters
|
String[] |
getParams()
Get the list of parameters
|
int[] |
getScales()
Get the list of scaling factors
|
String[] |
getUnits()
Get the list of units
|
static void |
main(String[] args)
test by running 'java edu.wisc.ssec.mcidas.adde.AddePointDataReader'
|
String |
toString()
Return a formated string of the returned data
|
public static final int PARAM_ORDER
public static final int OB_ORDER
public static final int MAXNUMPARM
public AddePointDataReader(String request) throws AddeException
request
- ADDE URL to read from. See class javadoc.
an example URL might look like: adde://rtds.ho.bom.gov.au/point?group=neons&descr=metar
AddeException
- if there are no datasets of the particular
type or there is an error reading datapublic int[][] getData() throws AddeException
AddeException
- if there was an error reading datapublic int[][] getData(int order) throws AddeException
order
- order of the data. (PARAM_ORDER, OB_ORDER)AddeException
- if there was an error reading datapublic String[] getParams() throws AddeException
getData()
method.AddeException
- if there was an error reading datapublic String[] getUnits() throws AddeException
getData()
method.AddeException
- if there was an error reading datapublic int[] getScales() throws AddeException
getData()
method.AddeException
- if there was an error reading datapublic int getNumParams() throws AddeException
AddeException
public Object[] getData(String parameter) throws AddeException
AddeException
public String toString()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.