au.csiro.netcdf.wron
Class LongitudeRange

java.lang.Object
  extended by au.csiro.netcdf.wron.LongitudeRange

public class LongitudeRange
extends Object

Represents a range of longitude values for some variables. The intended use is to store data for all variables in all longitudes for a particular latitude and time. Note: Speed is chosen over robustness and error checking in this class. Most problems will be signalled by a runtime exception of some form. Copyright 2010, CSIRO Australia All rights reserved.

Version:
$Revision: 78 $ $Date: 2010-07-24 16:23:13 +1000 (Sat, 24 Jul 2010) $
Author:
Robert Bridle on 12/04/2010

Constructor Summary
LongitudeRange(int numVariables, int numLongitudes, String[] defaultValues)
          Create a new longitude range.
 
Method Summary
 void addValues(String[] variableValues)
           
 String debugOutput()
           
 String getEndLongitudeRange()
           
 int getNumLongitudes()
           
 int getNumVariables()
           
 float getStartLongitudeRange()
           
 String getValues(int varIndex)
          Retrieve the values for a particular variable as a string of one value per line.
 void putValues(int longitudeIndex, String[] variableValues)
           
 void putValues(String longitude, String[] variableValues)
           
 void setStartLongitudeRange(String startLongitudeRange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongitudeRange

public LongitudeRange(int numVariables,
                      int numLongitudes,
                      String[] defaultValues)
Create a new longitude range. The values will all be preset to the supplied default value.

Parameters:
numVariables - The number of variables the range should hold.
numLongitudes - The number of longitudes the range should hold.
defaultValue - The default values to preset for each variable.
Method Detail

getValues

public String getValues(int varIndex)
Retrieve the values for a particular variable as a string of one value per line. There will be one value for each longitude.

Parameters:
varIndex - The index of the variable to be returned.
Returns:
the values for a particular variable

getStartLongitudeRange

public float getStartLongitudeRange()
Returns:
the startLongitudeRange

setStartLongitudeRange

public void setStartLongitudeRange(String startLongitudeRange)
Parameters:
startLongitudeRange - the startLongitudeRange to set

getEndLongitudeRange

public String getEndLongitudeRange()
Returns:
the endLongitudeRange

getNumVariables

public int getNumVariables()
Returns:
the numVariables

getNumLongitudes

public int getNumLongitudes()
Returns:
the numLongitudes

addValues

public void addValues(String[] variableValues)
Parameters:
rainFall -

putValues

public void putValues(int longitudeIndex,
                      String[] variableValues)
Parameters:
rainFall -

putValues

public void putValues(String longitude,
                      String[] variableValues)
Parameters:
rainFall -

debugOutput

public String debugOutput()


Copyright © 2010. All Rights Reserved.