de.cesr.more.measures
Class MMeasureDescription

java.lang.Object
  extended by de.cesr.more.measures.MMeasureDescription
All Implemented Interfaces:
Comparable<MMeasureDescription>

public class MMeasureDescription
extends Object
implements Comparable<MMeasureDescription>

MORe MeasureDescriptions provide informations about MoreMeasure objects network measure supplier provide (MoreMeasureCategory, short and long description). They are identified by their short description.

Date:
28.10.2010

Constructor Summary
MMeasureDescription(MoreMeasureCategory cat, String shortDescription)
          Constructs a new MeasureDescription by a short description and MoreMeasureCategory.
MMeasureDescription(MoreMeasureCategory cat, String shortDescription, String longDescription)
           
MMeasureDescription(String shortDescription)
          Instantiates a MeasureDescription solely by its short description.
 
Method Summary
 int compareTo(MMeasureDescription o)
           
 boolean equals(Object description)
           
 MoreMeasureCategory getCategory()
           
 String getShort()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MMeasureDescription

public MMeasureDescription(String shortDescription)
Instantiates a MeasureDescription solely by its short description. The category is set to MNodeMeasureManager#NOT_DEFINED.

Parameters:
shortDescription - The short description for the new MeasureDescription

MMeasureDescription

public MMeasureDescription(MoreMeasureCategory cat,
                           String shortDescription)
Constructs a new MeasureDescription by a short description and MoreMeasureCategory.

Parameters:
cat - The MoreMeasureCategory
shortDescription - The short description for the new MeasureDescription

MMeasureDescription

public MMeasureDescription(MoreMeasureCategory cat,
                           String shortDescription,
                           String longDescription)
Parameters:
cat - The MoreMeasureCategory
shortDescription - The short description for the new MeasureDescription
longDescription - The long description for the new MeasureDescription
See Also:
MeasureDescription#MeasureDescription(de.cesr.more.measures.node.MNodeMeasureManager.sh.soneta.measures.NetworkMeasureUtilities.MeasureCategory, String)
Method Detail

getShort

public String getShort()
Returns:
Short description key
Date:
15.08.2008

toString

public String toString()
Overrides:
toString in class Object
See Also:
Returns the long description

getCategory

public MoreMeasureCategory getCategory()
Returns:
The MeasureCategory of this measure description
Date:
15.08.2008

equals

public boolean equals(Object description)
Overrides:
equals in class Object
See Also:
Uses the short description to identify a MeasureDescription

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Uses the short description's hash code

compareTo

public int compareTo(MMeasureDescription o)
Specified by:
compareTo in interface Comparable<MMeasureDescription>
See Also:
Comparable.compareTo(java.lang.Object)