2 * Simple Unit entry for the Catalog.
5 public String unitType;
7 public String filename;
16 * Creates a new Unit entry for the catalog.
18 * @param unitType the type of this unit
19 * @param unitNum the index of this unit
20 * @param filename (without extension) where the audio and STS
21 * data for this unit can be found
22 * @param start the timing info (in seconds) for where the audio
23 * and STS data for this unit starts in filename
24 * @param middle the timing info (in seconds) for where the middle
25 * of the audio and STS data for this unit is in filename
26 * @param end the timing info (in seconds) for where the audio
27 * and STS data for this unit ends in filename
28 * @param previous the unit preceding this one in the recorded
30 * @param next the unit following this one in the recorded
32 * @param index the index of this unit in the overall catalog
45 this.unitType = unitType;
46 this.unitNum = unitNum;
47 this.filename = filename;
51 this.previous = previous;
56 public String toString() {
57 StringBuffer buf = new StringBuffer(filename + " ");
58 if (previous != null) {
59 buf.append(previous.unitType + "_" + previous.unitNum + " ");
61 buf.append("CLUNIT_NONE ");
63 buf.append(unitType + "_" + unitNum);
65 buf.append(" " + next.unitType + "_" + next.unitNum);
67 buf.append(" CLUNIT_NONE");
69 buf.append(" (index=" + index + ")");
71 return buf.toString();