opendap.servers.test
Class testEngine

java.lang.Object
  extended by opendap.servers.test.testEngine

public class testEngine
extends java.lang.Object

Used by the test server to reset the server output for each new client request.

Version:
$Revision: 23881 $
Author:
ndp
See Also:
BaseType

Constructor Summary
testEngine(int sLength)
           
 
Method Summary
 int getMaxSequenceLength()
           
 void loadTestGrid(java.lang.String datasetName, test_SDGrid tg)
          Loads test Grids full of data
 void newLoadTestArray(java.lang.String datasetName, test_SDArray ta)
          Loads test Arrays full of data
 boolean nextBool()
           
 byte nextByte()
           
 float nextFloat32()
           
 double nextFloat64()
           
 short nextInt16()
           
 int nextInt32()
           
 java.lang.String nextString()
           
 short nextUint16()
           
 int nextUint32()
           
 java.lang.String nextURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

testEngine

public testEngine(int sLength)
Parameters:
sLength - Length of test Sequences
Method Detail

getMaxSequenceLength

public int getMaxSequenceLength()

nextBool

public boolean nextBool()

nextByte

public byte nextByte()

nextFloat32

public float nextFloat32()

nextFloat64

public double nextFloat64()

nextUint16

public short nextUint16()

nextInt16

public short nextInt16()

nextUint32

public int nextUint32()

nextInt32

public int nextInt32()

nextURL

public java.lang.String nextURL()

nextString

public java.lang.String nextString()

newLoadTestArray

public void newLoadTestArray(java.lang.String datasetName,
                             test_SDArray ta)
                      throws java.io.IOException
Loads test Arrays full of data

Parameters:
datasetName - Name of dataset
ta - Array to load up
Throws:
java.io.IOException - When crap goes wrong

loadTestGrid

public void loadTestGrid(java.lang.String datasetName,
                         test_SDGrid tg)
                  throws NoSuchVariableException,
                         java.io.IOException,
                         java.io.EOFException
Loads test Grids full of data

Throws:
NoSuchVariableException
java.io.IOException
java.io.EOFException