org.bioconductor.packages.rservices
Class RFactor

java.lang.Object
  extended by org.bioconductor.packages.rservices.RObject
      extended by org.bioconductor.packages.rservices.RFactor
All Implemented Interfaces:
java.io.Serializable

public class RFactor
extends RObject

See Also:
Serialized Form

Field Summary
protected  int[] code
           
protected  java.lang.String[] levels
           
 
Constructor Summary
RFactor()
           
RFactor(java.lang.String[] levels, int[] code)
           
 
Method Summary
 java.lang.String[] asData()
          Gets the String[] representation of this RFactor.
 boolean equals(java.lang.Object inputObject)
           
 int[] getCode()
          Gets the code value for this RFactor.
 java.lang.String[] getLevels()
          Gets the levels for this RArray.
 void setCode(int[] code)
          Sets the code for this RFactor.
 void setCode(java.lang.Integer code)
          Sets the code for this RFactor.
 void setLevels(java.lang.String levels)
          Sets the levels for this RFactor.
 void setLevels(java.lang.String[] levels)
          Sets the levels for this RFactor.
 java.lang.String toString()
           
 
Methods inherited from class org.bioconductor.packages.rservices.RObject
getOutputMsg, setOutputMsg
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

levels

protected java.lang.String[] levels

code

protected int[] code
Constructor Detail

RFactor

public RFactor()

RFactor

public RFactor(java.lang.String[] levels,
               int[] code)
Method Detail

setLevels

public void setLevels(java.lang.String[] levels)
Sets the levels for this RFactor.

Parameters:
levels -

setLevels

public void setLevels(java.lang.String levels)
Sets the levels for this RFactor.

Parameters:
levels -

getLevels

public java.lang.String[] getLevels()
Gets the levels for this RArray.

Returns:
levels

setCode

public void setCode(int[] code)
Sets the code for this RFactor.

Parameters:
code -

setCode

public void setCode(java.lang.Integer code)
Sets the code for this RFactor.

Parameters:
code -

getCode

public int[] getCode()
Gets the code value for this RFactor.

Returns:
code

asData

public java.lang.String[] asData()
Gets the String[] representation of this RFactor. i.e. all the code are converted to their corresponding levels

Returns:
data

equals

public boolean equals(java.lang.Object inputObject)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright Bioconductor. All Rights Reserved.