| Constructor and Description |
|---|
AccelerationSample()
Constructor
|
AccelerationSample(double xAcc,
double yAcc,
double zAcc)
Constructor with assignment of accelerations
|
AccelerationSample(double xAcceleration,
double yAcceleration,
double zAcceleration,
long timeStamp)
Constructor with assignment of accelerations and timestamp
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clones a AccelerationSample.
|
long |
getTimeStamp()
returns the time stamp for this sample
|
double |
getXAcceleration()
returns the x acceleration in this sample
|
double |
getYAcceleration()
returns the y acceleration in this sample
|
double |
getZAcceleration()
returns The z acceleration in this sample
|
boolean |
hasTimeStamp()
Returns true if the point has a timestamp, otherwise false
|
void |
setTimeStamp(long timeStamp)
Sets the time stamp for this sample
|
void |
setXAcceleration(double acceleration)
sets the x acceleration in this sample
|
void |
setYAcceleration(double acceleration)
sets the y acceleration in this sample
|
void |
setZAcceleration(double acceleration)
sets the z acceleration in this sample
|
public AccelerationSample()
public AccelerationSample(double xAcc,
double yAcc,
double zAcc)
xAcc - The x acceleration to be setyAcc - The y acceleration to be setzAcc - The z acceleration to be setpublic AccelerationSample(double xAcceleration,
double yAcceleration,
double zAcceleration,
long timeStamp)
xAcceleration - The x acceleration to be setyAcceleration - The y acceleration to be setzAcceleration - The z acceleration to be settimeStamp - The system time at the moment the sample was recordedpublic double getXAcceleration()
public void setXAcceleration(double acceleration)
acceleration - The x acceleration to be setpublic double getYAcceleration()
public void setYAcceleration(double acceleration)
acceleration - The y acceleration to be setpublic double getZAcceleration()
public void setZAcceleration(double acceleration)
acceleration - The z acceleration to be setpublic long getTimeStamp()
public void setTimeStamp(long timeStamp)
timeStamp - The timestamp that should be set for this samplepublic boolean hasTimeStamp()
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.