edu.jhu.ece.iacl.jist.pipeline.parameter
Class DataLabel

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.pipeline.parameter.DataLabel
All Implemented Interfaces:
java.lang.Comparable<DataLabel>

public class DataLabel
extends java.lang.Object
implements java.lang.Comparable<DataLabel>

Data label for TOADS.

Author:
Blake Lucas (bclucas@jhu.edu)

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

types

public static final java.lang.String[] types
The Constant types.


MAX_LABELS

public static final int MAX_LABELS
The Constant MAX_LABELS.

See Also:
Constant Field Values

name

public java.lang.String name
The name.

Constructor Detail

DataLabel

public DataLabel(float id)
Default constructor.

Parameters:
id - the id
Method Detail

compareTo

public int compareTo(DataLabel label)
Compare data labels by intensity value.

Specified by:
compareTo in interface java.lang.Comparable<DataLabel>
Parameters:
label - the label
Returns:
the int

equals

public boolean equals(java.lang.Object o)
Returns true if two data labels are equal.

Overrides:
equals in class java.lang.Object
Parameters:
o - the o
Returns:
true, if equals

getId

public int getId()
Get id.

Returns:
the id

getIntensity

public float getIntensity()
Get intensity.

Returns:
the intensity

getName

public java.lang.String getName()
Get name.

Returns:
the name

getType

public int getType()
Get object type.

Returns:
object type

isSegment

public boolean isSegment()
Returns true if segmented.

Returns:
true, if checks if is segment

setId

public void setId(int id)
Set id.

Parameters:
id - the id

setIntensity

public void setIntensity(float intensity)
Set intensity.

Parameters:
intensity - the intensity

setName

public void setName(java.lang.String name)
Set name.

Parameters:
name - the name

setSegment

public void setSegment(boolean segment)
Set segment flag.

Parameters:
segment - segment flag

setType

public void setType(int type)
Set object type.

Parameters:
type - the type