Public Member Functions | Package Attributes

cl.utfsm.samplingSystemUI.core.DataItem Class Reference

List of all members.

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

Detailed Description

Class that contains the current result of the analyzed Component. Also compares the current DataItem with an object.


Constructor & Destructor Documentation

cl.utfsm.samplingSystemUI.core.DataItem.DataItem ( long  nTime,
double  nValue 
)

Constructor, initializes the time and value variables.

Parameters:
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.


Member Function Documentation

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.

Parameters:
anObject object type to which to compare to.
Returns:
true or false.

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 (  ) 
double cl.utfsm.samplingSystemUI.core.DataItem.getValue (  ) 
int cl.utfsm.samplingSystemUI.core.DataItem.hashCode (  ) 

Method to get the information of the DataItem as a hash

Returns:
The values of time and value as an integer hash.

References cl.utfsm.samplingSystemUI.core.DataItem.time, and cl.utfsm.samplingSystemUI.core.DataItem.value.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties