Public Member Functions | Package Attributes | Properties

cl.utfsm.samplingSystemUI.core.SampDetail Class Reference

List of all members.

Public Member Functions

 SampDetail (String component, String property, long frequency, long reportRate)
String getComponent ()
String getProperty ()
long getFrequency ()
long getReportRate ()
boolean equals (Object anObject)
int hashCode ()

Package Attributes

String component = ""

Properties

 String = ""
long frequency
long reportRate
int hashcode = 0

Detailed Description

Class SampDetail hold the detail for a sampling order. Each one of this objects should be unique. Two of theese objects are considered equals if their component, property, frequency and reportRate are equals. For this reason the equals meber had to be overloaded. The hashcode member was also overloaded. This class has no seter members, for that reason values may only be set upon creation, this is a failsafe so you don't accidentaly modify the values once sampling has began. As values can only be set at creation, the hashcode is computed only once, at creation. If later on this class is modified to allow seters this behavior must be kept in mind, and be modified.


Constructor & Destructor Documentation

cl.utfsm.samplingSystemUI.core.SampDetail.SampDetail ( String  component,
String  property,
long  frequency,
long  reportRate 
)

Member Function Documentation

boolean cl.utfsm.samplingSystemUI.core.SampDetail.equals ( Object  anObject  ) 

compare with an object and see if they are equal. This is an overloaded version of Object.equals(), this meber returns true if anObject is of class SampDetail, 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.SampDetail.component, cl.utfsm.samplingSystemUI.core.SampDetail.frequency, cl.utfsm.samplingSystemUI.core.SampDetail.getComponent(), cl.utfsm.samplingSystemUI.core.SampDetail.getFrequency(), cl.utfsm.samplingSystemUI.core.SampDetail.getProperty(), and cl.utfsm.samplingSystemUI.core.SampDetail.getReportRate().

String cl.utfsm.samplingSystemUI.core.SampDetail.getComponent (  ) 
long cl.utfsm.samplingSystemUI.core.SampDetail.getFrequency (  ) 
String cl.utfsm.samplingSystemUI.core.SampDetail.getProperty (  ) 
long cl.utfsm.samplingSystemUI.core.SampDetail.getReportRate (  ) 
int cl.utfsm.samplingSystemUI.core.SampDetail.hashCode (  ) 

Return de overloaded version of hashCode. This version return the value of hashcode computed by rehash().

Returns:
int has value

Member Data Documentation


Property Documentation

long cl.utfsm.samplingSystemUI.core.SampDetail.frequency [package]
int cl.utfsm.samplingSystemUI.core.SampDetail.hashcode = 0 [package]
long cl.utfsm.samplingSystemUI.core.SampDetail.reportRate [package]
cl.utfsm.samplingSystemUI.core.SampDetail.String = "" [package]

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