Public Member Functions | |
DataItem (long nTime, double nValue) | |
long | getTime () |
double | getValue () |
int | hashCode () |
boolean | equals (Object anObject) |
Package Attributes | |
long | time = 0 |
double | value = 0 |
Class that contains the current result of the analyzed Component. Also compares the current DataItem with an object.
cl.utfsm.samplingSystemUI.core.DataItem.DataItem | ( | long | nTime, | |
double | nValue | |||
) |
Constructor, initializes the time and value variables.
nTime | Time (in milliseconds) since last sampling | |
nValue | Value obtained of a given sample on nTime |
References cl.utfsm.samplingSystemUI.core.DataItem.time, and cl.utfsm.samplingSystemUI.core.DataItem.value.
boolean cl.utfsm.samplingSystemUI.core.DataItem.equals | ( | Object | anObject | ) |
compare with an object and see if they are equal. This is an overloaded version of Object.equals(), this member returns true if anObject is of class DataItem, and if all attributes are the same.
anObject | object type to which to compare to. |
References cl.utfsm.samplingSystemUI.core.DataItem.getTime(), cl.utfsm.samplingSystemUI.core.DataItem.getValue(), cl.utfsm.samplingSystemUI.core.DataItem.time, and cl.utfsm.samplingSystemUI.core.DataItem.value.
long cl.utfsm.samplingSystemUI.core.DataItem.getTime | ( | ) |
Regular getter for the time of the Item.
References cl.utfsm.samplingSystemUI.core.DataItem.time.
Referenced by cl.utfsm.samplingSystemUI.SamplingDataCorrelator.dumpToFile(), cl.utfsm.samplingSystemUI.core.DataItem.equals(), cl.utfsm.samplingSystemUI.WidgetPrinter.updateValue(), cl.utfsm.samplingSystemUI.PlotPrinter.updateValue(), cl.utfsm.samplingSystemUI.MemoryPrinter.updateValue(), and cl.utfsm.samplingSystemUI.FilePrinter.updateValue().
double cl.utfsm.samplingSystemUI.core.DataItem.getValue | ( | ) |
Regular getter for the value of the Item.
References cl.utfsm.samplingSystemUI.core.DataItem.value.
Referenced by cl.utfsm.samplingSystemUI.SamplingDataCorrelator.dumpToFile(), cl.utfsm.samplingSystemUI.core.DataItem.equals(), cl.utfsm.samplingSystemUI.WidgetPrinter.updateValue(), cl.utfsm.samplingSystemUI.PlotPrinter.updateValue(), cl.utfsm.samplingSystemUI.MemoryPrinter.updateValue(), and cl.utfsm.samplingSystemUI.FilePrinter.updateValue().
int cl.utfsm.samplingSystemUI.core.DataItem.hashCode | ( | ) |
Method to get the information of the DataItem as a hash
References cl.utfsm.samplingSystemUI.core.DataItem.time, and cl.utfsm.samplingSystemUI.core.DataItem.value.
long cl.utfsm.samplingSystemUI.core.DataItem.time = 0 [package] |
double cl.utfsm.samplingSystemUI.core.DataItem.value = 0 [package] |