© 2006-2007 ETH Zurich

org.ximtec.igesture.util.additions3d
Class Accelerations

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

public class Accelerations
extends Object
implements Cloneable


Constructor Summary
Accelerations()
           
 
Method Summary
 void addSample(AccelerationSample sample)
          Adds a sample to the acceleration samples list
 void clear()
          Clears the accelerations list
 Object clone()
          Clone a WiiAccelerations
 long getFirstSampleTime()
          Returns the timestamp of the first sample in the list.
 long getLastSampleTime()
          Returns the timestamp of the last sample in the list.
 double getMaxAbsoluteAccelerationValue()
          Returns the maximum absolute value for overall accelerations
 double getMaxOverallValue()
          Returns the maximum overall acceleration value
 double getMaxXValue()
          Returns the maximum x acceleration value
 double getMaxYValue()
          Returns the maximum y acceleration value
 double getMaxZValue()
          Returns the maximum z acceleration value
 Double getMinOverallValue()
          Returns the minimum overall acceleration value
 double getMinXValue()
          Returns the minimum x acceleration value
 double getMinYValue()
          Returns the minimum y acceleration value
 double getMinZValue()
          Returns the minimum z acceleration value
 AccelerationSample getSample(int number)
          Returns the sample at position number
 List<AccelerationSample> getSamples()
          Returns the samples list
 int numberOfSamples()
          Returns the number of acceleration samples
 void removeSample(int number)
          Removes the sample at position number
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Accelerations

public Accelerations()
Method Detail

numberOfSamples

public int numberOfSamples()
Returns the number of acceleration samples

Returns:
The number of samples in this WiiAccelerations object

addSample

public void addSample(AccelerationSample sample)
Adds a sample to the acceleration samples list

Parameters:
sample - The Sample to be added

getSample

public AccelerationSample getSample(int number)
Returns the sample at position number

Parameters:
number - The number of the sample to be returned
Returns:
The Sample with the given number

removeSample

public void removeSample(int number)
Removes the sample at position number

Parameters:
number - The number of the Sample to be removed

clear

public void clear()
Clears the accelerations list


getFirstSampleTime

public long getFirstSampleTime()
Returns the timestamp of the first sample in the list. If no samples are available 0 is returned.

Returns:
The timestamp of the first Sample in this WiiAccelerations object

getLastSampleTime

public long getLastSampleTime()
Returns the timestamp of the last sample in the list. If no samples are available 0 is returned.

Returns:
The timestamp of the last Sample in this WiiAccelerations object

getMaxXValue

public double getMaxXValue()
Returns the maximum x acceleration value

Returns:
The maximum x acceleration value

getMaxYValue

public double getMaxYValue()
Returns the maximum y acceleration value

Returns:
The maximum y acceleration value

getMaxZValue

public double getMaxZValue()
Returns the maximum z acceleration value

Returns:
The maximum z acceleration value

getMinXValue

public double getMinXValue()
Returns the minimum x acceleration value

Returns:
The minimum x acceleration value

getMinYValue

public double getMinYValue()
Returns the minimum y acceleration value

Returns:
The minimum y acceleration value

getMinZValue

public double getMinZValue()
Returns the minimum z acceleration value

Returns:
The minimum z acceleration value

getMaxOverallValue

public double getMaxOverallValue()
Returns the maximum overall acceleration value

Returns:
The maximum overall acceleration value

getMinOverallValue

public Double getMinOverallValue()
Returns the minimum overall acceleration value

Returns:
The minimum overall acceleration value

getMaxAbsoluteAccelerationValue

public double getMaxAbsoluteAccelerationValue()
Returns the maximum absolute value for overall accelerations

Returns:
The maximum absolute value for overall accelerations

getSamples

public List<AccelerationSample> getSamples()
Returns the samples list

Returns:
The list of samples in this WiiAccelerations object

clone

public Object clone()
Clone a WiiAccelerations

Overrides:
clone in class Object
Returns:
the cloned WiiAccelerations

© 2006-2007 ETH Zurich

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