S-PLUS Connect/Java v1.0

com.insightful.splus
Class SplusDoubleDataResult

java.lang.Object
  extended by com.insightful.splus.SplusDataResult
      extended by com.insightful.splus.SplusDoubleDataResult
All Implemented Interfaces:
Serializable

public class SplusDoubleDataResult
extends SplusDataResult
implements Serializable

Result of evaluating an S-PLUS expression producing double (numeric) vector.

See Also:
Serialized Form

Constructor Summary
SplusDoubleDataResult(String expr, String out, String[] warn, String err, double[] data)
           
 
Method Summary
 boolean[] getBooleanData()
          Get the data as booleans.
 byte[] getByteData()
          Get the data as bytes.
 Object getData()
          Get the double array as an Object.
 double[] getDoubleData()
          Get the double data.
 float[] getFloatData()
          Get the data as floats.
 long[] getLongData()
          Get the data as longs.
 String[] getStringData()
          Get the data as Strings.
 
Methods inherited from class com.insightful.splus.SplusDataResult
getError, getExpression, getOutput, getWarning, hasError, hasExpression, hasOutput, hasWarning, main, unit_test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplusDoubleDataResult

public SplusDoubleDataResult(String expr,
                             String out,
                             String[] warn,
                             String err,
                             double[] data)
Method Detail

getData

public Object getData()
Get the double array as an Object.

Overrides:
getData in class SplusDataResult

getDoubleData

public double[] getDoubleData()
                       throws SplusBadDataException
Get the double data.

Overrides:
getDoubleData in class SplusDataResult
Throws:
SplusBadDataException

getBooleanData

public boolean[] getBooleanData()
                         throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as booleans. If the expression did not generate booleans, this method generates an SplusBadDataException.

Overrides:
getBooleanData in class SplusDataResult
Throws:
SplusBadDataException

getStringData

public String[] getStringData()
                       throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as Strings. If the expression did not generate Strings, this method generates an SplusBadDataException.

Overrides:
getStringData in class SplusDataResult
Throws:
SplusBadDataException

getLongData

public long[] getLongData()
                   throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as longs. If the expression did not generate longs, this method generates an SplusBadDataException.

Overrides:
getLongData in class SplusDataResult
Throws:
SplusBadDataException

getFloatData

public float[] getFloatData()
                     throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as floats. If the expression did not generate floats, this method generates an SplusBadDataException.

Overrides:
getFloatData in class SplusDataResult
Throws:
SplusBadDataException

getByteData

public byte[] getByteData()
                   throws SplusBadDataException
Description copied from class: SplusDataResult
Get the data as bytes. If the expression did not generate bytes, this method generates an SplusBadDataException.

Overrides:
getByteData in class SplusDataResult
Throws:
SplusBadDataException

S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.