S-PLUS Connect/Java v1.0

com.insightful.splus
Class SplusBooleanDataResult

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

public class SplusBooleanDataResult
extends SplusDataResult
implements Serializable

Result of evaluating an S-PLUS expression producing boolean (logical) vector.

See Also:
Serialized Form

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

SplusBooleanDataResult

public SplusBooleanDataResult(String expr,
                              String out,
                              String[] warn,
                              String err,
                              boolean[] data)
Constructor with boolean data.

Method Detail

getData

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

Overrides:
getData in class SplusDataResult

getBooleanData

public boolean[] getBooleanData()
                         throws SplusBadDataException
Get the boolean data.

Overrides:
getBooleanData 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

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.