org.systemsbiology.gaggle.core.datatypes
Class Single

java.lang.Object
  extended by org.systemsbiology.gaggle.core.datatypes.Single
All Implemented Interfaces:
java.io.Serializable

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

An n = 1 tuple with an optional name identifier. The basic unit of which the Tuple class is composed. Values must be of type Integer, Double, String, or Tuple, or an exception will be thrown. This is done in order to keep the Tuple from being used as a complicated structured object that may include non-serializable elements. In any case, Integer, Double, and String (and nested Tuples) are sufficient for practically every systems biology application.

See Also:
Tuple, Serialized Form

Constructor Summary
Single()
           
Single(java.io.Serializable value)
           
Single(java.lang.String name, java.io.Serializable value)
           
 
Method Summary
 java.lang.String getName()
           
 java.io.Serializable getValue()
           
 void setName(java.lang.String name)
           
 void setValue(java.io.Serializable value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Single

public Single()

Single

public Single(java.io.Serializable value)

Single

public Single(java.lang.String name,
              java.io.Serializable value)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getValue

public java.io.Serializable getValue()

setValue

public void setValue(java.io.Serializable value)

toString

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