gov.noaa.pmel.sgt.demo
Class TestData

java.lang.Object
  extended by gov.noaa.pmel.sgt.demo.TestData

public class TestData
extends java.lang.Object

Create SGTData objects containing test data. These objects can be used for graphics and analysis testing purposes.

Since:
1.0
Version:
$Revision$, $Date$
Author:
Donald Denbo

Field Summary
static int LOG_LOG
          create log-log line
static int PROFILE
          create profile data
static int RANDOM
          create random data
static int SINE
          create sine wave
static int SINE_RAMP
          create sine wave with a ramp
static int TIME_SERIES
          create time series data
static int X_SERIES
          create longitude track data
static int XY_GRID
          create X-Y grid
static int XZ_GRID
          create X-Y grid
static int Y_SERIES
          create latitude track data
static int YZ_GRID
          create X-Y grid
static int ZT_GRID
          create Z-T grid
 
Constructor Summary
TestData()
          Create default test data.
TestData(int dir, Range2D range, int type, float amp, float off, float per)
          Create one-dimensional spatial test data.
TestData(int dir, Range2D range1, Range2D range2, int type, float amp, float off, float per)
          Create two-dimensional spatial test data.
TestData(int dir, Range2D range, TimeRange trange, float delta, int type, float amp, float off, float per)
          Create time series test grid data.
TestData(int dir, TimeRange range, float delta, int type, float amp, float off, float per)
          Create time series test data.
TestData(Range2D xrnge, Range2D yrnge, int num)
          Create a Collection of points.
 
Method Summary
 Collection getCollection()
          Get the Collection of points created with the point constructor.
 SGTData getSGTData()
          Get a SGTGrid or SGTLine object depending on type of constructor used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROFILE

public static final int PROFILE
create profile data

See Also:
Constant Field Values

X_SERIES

public static final int X_SERIES
create longitude track data

See Also:
Constant Field Values

Y_SERIES

public static final int Y_SERIES
create latitude track data

See Also:
Constant Field Values

TIME_SERIES

public static final int TIME_SERIES
create time series data

See Also:
Constant Field Values

XY_GRID

public static final int XY_GRID
create X-Y grid

See Also:
Constant Field Values

XZ_GRID

public static final int XZ_GRID
create X-Y grid

See Also:
Constant Field Values

YZ_GRID

public static final int YZ_GRID
create X-Y grid

See Also:
Constant Field Values

ZT_GRID

public static final int ZT_GRID
create Z-T grid

See Also:
Constant Field Values

LOG_LOG

public static final int LOG_LOG
create log-log line

See Also:
Constant Field Values

SINE

public static final int SINE
create sine wave

See Also:
Constant Field Values

RANDOM

public static final int RANDOM
create random data

See Also:
Constant Field Values

SINE_RAMP

public static final int SINE_RAMP
create sine wave with a ramp

See Also:
Constant Field Values
Constructor Detail

TestData

public TestData()
Create default test data. Will create profile (z) data with sine shape.


TestData

public TestData(int dir,
                Range2D range,
                int type,
                float amp,
                float off,
                float per)
Create one-dimensional spatial test data.

Parameters:
dir - direction of test data, TestData.X_SERIES, TestData.Y_SERIES, TestData.PROFILE, TestData.LOG_LOG
range - minimum and maximum overwhich to create
type - type of series, TestData.SINE or TestData.RANDOM
amp - amplitude
off - offset
per - period
See Also:
PROFILE, X_SERIES, Y_SERIES, LOG_LOG, SINE, RANDOM

TestData

public TestData(int dir,
                Range2D range1,
                Range2D range2,
                int type,
                float amp,
                float off,
                float per)
Create two-dimensional spatial test data.

Parameters:
dir - direction of test data, TestData.XY_GRID, TestData.XZ_GRID, TestData.YZ_GRID
range1 - minimum and maximum overwhich to create for first axis
range2 - minimum and maximum overwhich to create for second axis
type - type of series, TestData.SINE or TestData.RANDOM
amp - amplitude
off - offset
per - period
See Also:
PROFILE, X_SERIES, Y_SERIES, SINE, RANDOM

TestData

public TestData(int dir,
                TimeRange range,
                float delta,
                int type,
                float amp,
                float off,
                float per)
Create time series test data.

Parameters:
dir - direction of test data, TestData.TIME_SERIES
range - minimum and maximum overwhich to create
delta - space between points in days
type - type of series, TestData.SINE or TestData.RANDOM
amp - amplitude
off - offset
per - period
See Also:
PROFILE, X_SERIES, Y_SERIES, SINE, RANDOM

TestData

public TestData(int dir,
                Range2D range,
                TimeRange trange,
                float delta,
                int type,
                float amp,
                float off,
                float per)
Create time series test grid data.

Parameters:
dir - direction of test data, TestData.ZT_SERIES
range - minimum and maximum for space axis
trange - minimum and maximum overwhich to create
delta - space between points in days
type - type of series, TestData.SINE or TestData.RANDOM
amp - amplitude
off - offset
per - period
See Also:
PROFILE, X_SERIES, Y_SERIES, SINE, RANDOM

TestData

public TestData(Range2D xrnge,
                Range2D yrnge,
                int num)
Create a Collection of points.

Parameters:
xrnge - range of values in x
yrnge - range of values in y
num - number of values to create
Method Detail

getCollection

public Collection getCollection()
Get the Collection of points created with the point constructor.

Returns:
Collection of points

getSGTData

public SGTData getSGTData()
Get a SGTGrid or SGTLine object depending on type of constructor used.

Returns:
SGTData object.