1
// TOCDSampleInformation.java
3
// (c) 1999-2004 PAL Development Core Team
5
// This package may be distributed under the
6
// terms of the Lesser GNU General Public License (LGPL)
11
* <p>Title: TOCDSampleInformation </p>
12
* <p>Description: A wrapper over the old style TimeOrderCharacterData object for the new SampleInformation object </p>
13
* @author Matthew Goode
17
public class TOCDSampleInformation implements SampleInformation {
18
private final TimeOrderCharacterData base_;
19
private final boolean hasTimes_;
20
public TOCDSampleInformation(TimeOrderCharacterData base) {
22
this.hasTimes_ = base.hasTimes();
24
public int getNumberOfSamples() {
25
return base_.getOrdinalCount();
27
public int getSampleOrdinal(String leafID) {
28
return base_.getTimeOrdinal(leafID);
31
public double getHeight(int sample) {
33
return base_.getOrdinalTime( sample );
37
public int getHeightUnits() {
39
return base_.getUnits();
44
public double getMaxHeight() {
46
return base_.getMaximumTime();
48
return base_.getOrdinalCount()-1;
b'\\ No newline at end of file'