net.talvi.puffinplot.data
Class Line

java.lang.Object
  extended by net.talvi.puffinplot.data.Line

public class Line
extends java.lang.Object

A container class holding all the data within a suite from a particular line number of their respective files. Intended to be used as a proxy for run number. We can't use the actual run number, because the Long Core software adds the position number to it for discrete samples. We can't correct for that because it can't write the position number to the DAT file.

This class is not currently used.


Constructor Summary
Line(int lineNumber)
          Creates a new Line with the specified line number.
 
Method Summary
 void add(Datum datum)
          Associates a Datum with this line.
 Datum getEmptySlot()
          Returns the first Datum associated with this line which was a measurement of an empty tray slot, not an actual sample.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Line

public Line(int lineNumber)
Creates a new Line with the specified line number.

Parameters:
lineNumber - the line number in the original data file
Method Detail

add

public void add(Datum datum)
Associates a Datum with this line. This indicates that the line number which was passed to this Line's constructor is the same as the line number on which the Datum occurred in the file from which it was read.

Parameters:
datum - a datum to be associated with this line

getEmptySlot

public Datum getEmptySlot()
Returns the first Datum associated with this line which was a measurement of an empty tray slot, not an actual sample. Returns null if no such Datum exists.

Returns:
the first Datum associated with this line which was a measurement of an empty tray slot