|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.biocomfort.TO.data.DataTO
public abstract class DataTO
Represents a basic data class for measurement data that are received
from medical devices.
Each time a measurement of a medical device is received by the SDK an
onDataReceived
event of the SDKDataListener
is
fired. The parameter data
of this event method transfers an
instance of a concrete implementation of this class. The concrete
implementation instance that is transfered depends on the type of medical
device that sends the measurement.
SDKDataListener.onDataReceived(com.biocomfort.TO.MedicalDeviceTO, TO)
Constructor Summary | |
---|---|
DataTO()
Constructs a DataTO object with initializing it so that
the user number is 1 and its date and time of the measurement
represents the time at which it was allocated, measured to the nearest
millisecond. |
Method Summary | |
---|---|
java.util.Date |
getDateTime()
Returns the data object's date and time of the representing measurement. |
int |
getDay()
Returns the day of the month of the measurement's date. |
int |
getHourOfDay()
Returns the hour of day of the measurement's time. |
int |
getMinute()
Returns the number of minutes past the hour of the measurement's time, as interpreted in the local time zone. |
int |
getMonth()
Returns a number representing the month of the measurement's date that contains or begins with the instant in time of this measurement's date, as interpreted for the default time zone and local. |
int |
getSecond()
Returns the number of seconds past the minute of the measurement's time. |
int |
getUser()
Returns the user number of the measurement data represented by this DataTO object. |
int |
getYear()
Returns a number representing the year of the measurement's date that contains or begins with the instant in time of the measurement's date, as interpreted for the default time zone and local. |
boolean |
isTransmittedDataSet()
Returns true if the measurement data represented by this
DataTO object was transmitted. |
void |
setDateTime(java.util.Date dateTime)
Set the data object's date and time of the representing measurement. |
void |
setDateTime(int year,
int month,
int day,
int hourOfDay,
int minute,
int second)
Sets the date and time for the measurement's date represented by this DataTO object so that it represents the instant at the
start of the minute specified by the year, month, day, hourOfDay,
minute, and second arguments, for the default time zone and local. |
void |
setTransmittedDataSet(boolean transmittedDataSet)
Sets the transmitted state for the measurement data represented by this DataTO object. |
void |
setUser(int user)
Sets the user number of the measurement data represented by this DataTO object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataTO()
DataTO
object with initializing it so that
the user number is 1 and its date and time of the measurement
represents the time at which it was allocated, measured to the nearest
millisecond.
Method Detail |
---|
public java.util.Date getDateTime()
public void setDateTime(java.util.Date dateTime)
dateTime
- the new measurement's date and timepublic boolean isTransmittedDataSet()
true
if the measurement data represented by this
DataTO
object was transmitted.
true
if this data were transmittedpublic void setTransmittedDataSet(boolean transmittedDataSet)
DataTO
object.
transmittedDataSet
- true
if this data were
transmitted, false
otherwisepublic int getUser()
DataTO
object.
public void setUser(int user)
DataTO
object.
user
- the new measurement's user numberpublic void setDateTime(int year, int month, int day, int hourOfDay, int minute, int second)
DataTO
object so that it represents the instant at the
start of the minute specified by the year, month, day, hourOfDay,
minute, and second arguments, for the default time zone and local.
year
- the yearmonth
- the month between 1-12day
- the day of month between 1-31hourOfDay
- the hour of a day between 0-23minute
- the minutes between 0-59second
- the seconds between 0-59public int getYear()
public int getMonth()
public int getDay()
public int getHourOfDay()
public int getMinute()
public int getSecond()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |