class ClusterUnit extends Object implements Unit
Modifier and Type | Field and Description |
---|---|
private ClusterUnitDatabase |
db |
private int |
end |
private String |
name |
private int |
start |
Constructor and Description |
---|
ClusterUnit(ClusterUnitDatabase db,
String name,
int start,
int end)
Contructs a cluster unit given.
|
Modifier and Type | Method and Description |
---|---|
void |
dump()
Dumps this unit.
|
int |
getEnd()
Returns the end.
|
String |
getName()
Returns the name of this Unit.
|
Sample |
getNearestSample(float index)
Retrieves the nearest sample.
|
int |
getSize()
returns the size of the unit.
|
int |
getStart()
Returns the start.
|
String |
toString()
gets the string name for the unit.
|
private ClusterUnitDatabase db
private int start
private int end
public ClusterUnit(ClusterUnitDatabase db, String name, int start, int end)
db
- the databasename
- the unitNamestart
- the startend
- the endpublic int getStart()
public int getEnd()
public int getSize()
public Sample getNearestSample(float index)
getNearestSample
in interface Unit
index
- the ideal indexWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses