userinterface.gui
Class Tupel

java.lang.Object
  extended by userinterface.gui.Tupel
All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>

public class Tupel
extends java.lang.Object
implements java.lang.Comparable<java.lang.Object>

Class to save a tuple of two values that can be sorted numerically over the second value

Author:
Stefanie Kaufmann

Constructor Summary
Tupel(double uracil, double log)
          Constructs a tuple containing a number of uracils and the log(e'/n') for one spot
 
Method Summary
 int compareTo(java.lang.Object o)
           
 double getLog()
          Returns the log(e'/n') for the tuple
 double getUracil()
          Returns the uracil number for the tuple
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tupel

public Tupel(double uracil,
             double log)
Constructs a tuple containing a number of uracils and the log(e'/n') for one spot

Parameters:
uracil - The number of uracils
log - The log(e'/n')
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable<java.lang.Object>

getLog

public double getLog()
Returns the log(e'/n') for the tuple

Returns:
The log(e'/n')

getUracil

public double getUracil()
Returns the uracil number for the tuple

Returns:
The number of uracils