|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.parameter.DataLabel
public class DataLabel
Data label for TOADS.
Field Summary | |
---|---|
static int |
MAX_LABELS
The Constant MAX_LABELS. |
java.lang.String |
name
The name. |
static java.lang.String[] |
types
The Constant types. |
Constructor Summary | |
---|---|
DataLabel(float id)
Default constructor. |
Method Summary | |
---|---|
int |
compareTo(DataLabel label)
Compare data labels by intensity value. |
boolean |
equals(java.lang.Object o)
Returns true if two data labels are equal. |
int |
getId()
Get id. |
float |
getIntensity()
Get intensity. |
java.lang.String |
getName()
Get name. |
int |
getType()
Get object type. |
boolean |
isSegment()
Returns true if segmented. |
void |
setId(int id)
Set id. |
void |
setIntensity(float intensity)
Set intensity. |
void |
setName(java.lang.String name)
Set name. |
void |
setSegment(boolean segment)
Set segment flag. |
void |
setType(int type)
Set object type. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] types
public static final int MAX_LABELS
public java.lang.String name
Constructor Detail |
---|
public DataLabel(float id)
id
- the idMethod Detail |
---|
public int compareTo(DataLabel label)
compareTo
in interface java.lang.Comparable<DataLabel>
label
- the label
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the o
public int getId()
public float getIntensity()
public java.lang.String getName()
public int getType()
public boolean isSegment()
public void setId(int id)
id
- the idpublic void setIntensity(float intensity)
intensity
- the intensitypublic void setName(java.lang.String name)
name
- the namepublic void setSegment(boolean segment)
segment
- segment flagpublic void setType(int type)
type
- the type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |