|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.data.independent.BasicSample
de.unikassel.android.sdcframework.data.Sample
public final class Sample
Implementation of the sensor device sample used inside of the framework.
A sensor device sample is observable, parcelable and broadcastable. It does
extend the pure Java sample representation.
SampleData,
GSMSampleData,
GPSSampleData,
AccelerometerSampleData,
BluetoothSampleData,
WifiSampleData| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
static Parcelable.Creator<Sample> |
CREATOR
The Parcelable creator. |
static String |
PARCELABLE_EXTRA_NAME
The parcelable extra name for intent transport. |
| Fields inherited from class de.unikassel.android.sdcframework.data.independent.BasicSample |
|---|
ACTION, deviceIdentifier, timeStamp |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
Sample()
Constructor |
|
Sample(Parcel source)
Constructor |
|
Sample(Sample sample)
Copy-Constructor |
|
Sample(SensorDeviceIdentifier id)
Constructor |
|
Sample(SensorDeviceIdentifier id,
long timeStamp,
int priority,
boolean timeSynced)
Constructor |
|
Sample(String sId,
long timeStamp,
int priority,
boolean timeSynced)
Constructor |
|
| Method Summary | |
|---|---|
int |
describeContents()
|
Intent |
getIntent()
Getter for an intent representation |
String |
getRelatedData()
Getter for related data |
private void |
readFromParcel(Parcel source)
Method to read all values from a parcel |
void |
updateRelatedData(String fileName)
Update method for related data ( used to update relative file location for transmitted samples ) |
void |
writeToParcel(Parcel dest,
int flags)
|
| Methods inherited from class de.unikassel.android.sdcframework.data.independent.BasicSample |
|---|
equals, equals, getData, getDeviceIdentifier, getLocation, getPriority, getTimeStamp, isTimeSynced, setData, setDataFromXML, setDeviceIdentifier, setLocation, setLocationFromXML, setPriority, setTimeStamp, setTimeSynced, toString, toXML |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PARCELABLE_EXTRA_NAME
public static final Parcelable.Creator<Sample> CREATOR
| Constructor Detail |
|---|
public Sample()
public Sample(SensorDeviceIdentifier id)
id - the sensor device identifier
public Sample(String sId,
long timeStamp,
int priority,
boolean timeSynced)
sId - the sensor device identifier string representationtimeStamp - the sample time stamppriority - the sample transmission prioritytimeSynced - flag is time stamp is valid ( time provider was in sync with NTP
time)
public Sample(SensorDeviceIdentifier id,
long timeStamp,
int priority,
boolean timeSynced)
id - the sensor device identifiertimeStamp - the sample time stamppriority - the sample transmission prioritytimeSynced - flag is time stamp is valid ( time provider was in sync with NTP
time)public Sample(Sample sample)
sample - the sample to copy construct frompublic Sample(Parcel source)
source - the parcel source| Method Detail |
|---|
private void readFromParcel(Parcel source)
source - the parcel source
public void writeToParcel(Parcel dest,
int flags)
writeToParcel in interface Parcelablepublic final Intent getIntent()
BroadcastableEvent
getIntent in interface BroadcastableEventpublic String getRelatedData()
public void updateRelatedData(String fileName)
fileName - the new filenamepublic int describeContents()
describeContents in interface Parcelable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||