org.bioconductor.packages.rservices
Class RJFactor

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

public class RJFactor
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  int[] code
           
protected  java.lang.String[] levels
           
 
Constructor Summary
RJFactor()
           
RJFactor(java.lang.String[] levels, int[] code)
           
 
Method Summary
 java.lang.String[] asData()
          Gets the String[] representation of this RJFactor.
 boolean equals(java.lang.Object inputObject)
           
 int[] getCode()
          Gets the code value for this RJFactor.
 java.lang.String[] getLevels()
          Gets the levels for this RArray.
 void setCode(int[] code)
          Sets the code for this RJFactor.
 void setCode(java.lang.Integer code)
          Sets the code for this RJFactor.
 void setLevels(java.lang.String levels)
          Sets the levels for this RJFactor.
 void setLevels(java.lang.String[] levels)
          Sets the levels for this RJFactor.
 java.lang.String toString()
           
 
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

RJFactor

public RJFactor()

RJFactor

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

setLevels

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

Parameters:
levels -

setLevels

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

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 RJFactor.

Parameters:
code -

setCode

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

Parameters:
code -

getCode

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

Returns:
code

asData

public java.lang.String[] asData()
Gets the String[] representation of this RJFactor. 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.