org.dllearner.utilities.experiments
Class MyMonKey

java.lang.Object
  extended by org.dllearner.utilities.experiments.MyMonKey
All Implemented Interfaces:
com.jamonapi.MonKey, com.jamonapi.MonKeyItem

public class MyMonKey
extends Object
implements com.jamonapi.MonKey


Field Summary
 
Fields inherited from interface com.jamonapi.MonKey
LABEL_HEADER, UNITS_HEADER
 
Constructor Summary
MyMonKey(com.jamonapi.MonKeyItem keyItem, String units)
           
MyMonKey(String summaryLabel, Object details, String units)
           
MyMonKey(String summaryLabel, String units)
           
 
Method Summary
 boolean equals(Object compareKey)
          This method is called automatically by a HashMap when this class is used as a HashMap key.
 List getBasicHeader(List header)
           
 List getBasicRowData(List rowData)
           
 Object getDetails()
           
 List getDisplayHeader(List header)
           
 List getHeader(List header)
           
 String getLabel()
          Returns the label for the monitor
 Object getParam()
          Used to get any arbitrary Object into the key.
 String getRangeKey()
           
 List getRowData(List rowData)
           
 List getRowDisplayData(List rowData)
           
 String getUnits()
          Returns the units for the monitor
 Object getValue(String key)
          Returns any object that has a named key.
 int hashCode()
          Used when key is put into a Map to look up the monitor
 void setDetails(Object details)
           
 void setParam(Object param)
          Used to set any arbitrary Object into the key.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyMonKey

public MyMonKey(String summaryLabel,
                String units)

MyMonKey

public MyMonKey(String summaryLabel,
                Object details,
                String units)

MyMonKey

public MyMonKey(com.jamonapi.MonKeyItem keyItem,
                String units)
Method Detail

getLabel

public String getLabel()
Returns the label for the monitor


getUnits

public String getUnits()
Returns the units for the monitor


getDetails

public Object getDetails()
Specified by:
getDetails in interface com.jamonapi.MonKeyItem

setDetails

public void setDetails(Object details)
Specified by:
setDetails in interface com.jamonapi.MonKeyItem

getValue

public Object getValue(String key)
Returns any object that has a named key. In this keys case 'label' and 'units' makes sense, but any values are acceptible.

Specified by:
getValue in interface com.jamonapi.MonKey

getParam

public Object getParam()
Used to get any arbitrary Object into the key. It will not be used as part of the key, however it can be retrieved later for example in the JAMonBufferListener.

Returns:

setParam

public void setParam(Object param)
Used to set any arbitrary Object into the key. It will not be used as part of the key, however it can be retrieved later for example in the JAMonBufferListener.


equals

public boolean equals(Object compareKey)
This method is called automatically by a HashMap when this class is used as a HashMap key. A Coordinate is considered equal if its x and y variables have the same value.

Overrides:
equals in class Object

hashCode

public int hashCode()
Used when key is put into a Map to look up the monitor

Overrides:
hashCode in class Object

getBasicHeader

public List getBasicHeader(List header)

getDisplayHeader

public List getDisplayHeader(List header)

getHeader

public List getHeader(List header)

getBasicRowData

public List getBasicRowData(List rowData)

getRowData

public List getRowData(List rowData)

getRowDisplayData

public List getRowDisplayData(List rowData)

toString

public String toString()
Overrides:
toString in class Object

getRangeKey

public String getRangeKey()
Specified by:
getRangeKey in interface com.jamonapi.MonKey


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann