S-PLUS Connect/Java v1.0

com.insightful.splus
Class SplusFloatDataResult

java.lang.Object
  extended bycom.insightful.splus.SplusDataResult
      extended bycom.insightful.splus.SplusFloatDataResult
All Implemented Interfaces:
Serializable

public class SplusFloatDataResult
extends SplusDataResult
implements Serializable

Result of evaluating an S-PLUS expression producing float (single) vector.

See Also:
Serialized Form

Constructor Summary
SplusFloatDataResult(String expr, String out, String[] warn, String err, float[] data)
           
 
Method Summary
 boolean[] getBooleanData()
          Get the data as booleans.
 byte[] getByteData()
          Get the data as bytes.
 Object getData()
          Get the float array as an Object.
 double[] getDoubleData()
          Get the data as doubles.
 float[] getFloatData()
          Get the float data.
 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

SplusFloatDataResult

public SplusFloatDataResult(String expr,
                            String out,
                            String[] warn,
                            String err,
                            float[] data)
Method Detail

getData

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

Overrides:
getData in class SplusDataResult

getFloatData

public float[] getFloatData()
                     throws SplusBadDataException
Get the float data.

Overrides:
getFloatData in class SplusDataResult
Throws:
SplusBadDataException

getDoubleData

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

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

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.