© 2006-2007 ETH Zurich

org.ximtec.igesture.util.additions3d
Class AccelerationSample

java.lang.Object
  extended by org.ximtec.igesture.util.additions3d.AccelerationSample
All Implemented Interfaces:
Cloneable

public class AccelerationSample
extends Object
implements Cloneable

Contains a sample of x- y- and z- acceleration

Author:
vogelsar

Constructor Summary
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
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccelerationSample

public AccelerationSample()
Constructor


AccelerationSample

public AccelerationSample(double xAcc,
                          double yAcc,
                          double zAcc)
Constructor with assignment of accelerations

Parameters:
xAcc - The x acceleration to be set
yAcc - The y acceleration to be set
zAcc - The z acceleration to be set

AccelerationSample

public AccelerationSample(double xAcceleration,
                          double yAcceleration,
                          double zAcceleration,
                          long timeStamp)
Constructor with assignment of accelerations and timestamp

Parameters:
xAcceleration - The x acceleration to be set
yAcceleration - The y acceleration to be set
zAcceleration - The z acceleration to be set
timeStamp - The system time at the moment the sample was recorded
Method Detail

getXAcceleration

public double getXAcceleration()
returns the x acceleration in this sample

Returns:
The x acceleration in this sample

setXAcceleration

public void setXAcceleration(double acceleration)
sets the x acceleration in this sample

Parameters:
acceleration - The x acceleration to be set

getYAcceleration

public double getYAcceleration()
returns the y acceleration in this sample

Returns:
The y acceleration in this sample

setYAcceleration

public void setYAcceleration(double acceleration)
sets the y acceleration in this sample

Parameters:
acceleration - The y acceleration to be set

getZAcceleration

public double getZAcceleration()
returns The z acceleration in this sample

Returns:
The z acceleration in this sample

setZAcceleration

public void setZAcceleration(double acceleration)
sets the z acceleration in this sample

Parameters:
acceleration - The z acceleration to be set

getTimeStamp

public long getTimeStamp()
returns the time stamp for this sample

Returns:
The time stamp in this sample

setTimeStamp

public void setTimeStamp(long timeStamp)
Sets the time stamp for this sample

Parameters:
timeStamp - The timestamp that should be set for this sample

hasTimeStamp

public boolean hasTimeStamp()
Returns true if the point has a timestamp, otherwise false

Returns:

clone

public Object clone()
Clones a AccelerationSample.

Overrides:
clone in class Object
Returns:
the cloned AccelerationSample.

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.