| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.util.Accelerometer
public class Accelerometer
Accerometer XYZ-axis container.
| Nested Class Summary | |
|---|---|
static class | 
Accelerometer.ForceUnits
 | 
| Field Summary | |
|---|---|
static double | 
G_PER_MPSS_FORCE
 | 
static double | 
METERS_PER_SEC_SQ_PER_G
 | 
static double | 
MPH_PER_SEC_PER_G
 | 
static double | 
MPH_PER_SEC_PER_MPSS
 | 
static double | 
MPSS_PER_G_FORCE
 | 
| Constructor Summary | |
|---|---|
Accelerometer()
Constructor  | 
|
Accelerometer(Accelerometer other)
Copy Constructor  | 
|
Accelerometer(double x,
              double y,
              double z)
Constructor  | 
|
Accelerometer(java.lang.String xyz)
Constructor  | 
|
| Method Summary | |
|---|---|
static double | 
Convert_G_to_MSS(double G)
Convert G-Force to Meters/Second/Second  | 
static double | 
Convert_MSS_to_G(double MSS)
Convert Meters/Second/Second to G-Force  | 
static java.lang.String | 
CreateGoogleDataTableJSON(int intervMS,
                          boolean G,
                          Accelerometer... ACCList)
Creates a Google DataTable JSON object containing the specified Accelerometer elements.  | 
 boolean | 
equals(java.lang.Object other)
Returns true if the specified Accelerometer is equal to this instance.  | 
 double | 
getAxis(int axis,
        boolean G)
Gets the specified axis accelerometer value.  | 
static Accelerometer.ForceUnits | 
GetForceUnitsForName(java.lang.String name)
Gets the ForceUnits enum for the specified name  | 
static Accelerometer.ForceUnits | 
GetForceUnitsForName(java.lang.String name,
                     Accelerometer.ForceUnits dft)
Gets the ForceUnits enum for the specified name  | 
 double | 
getMagnitude()
Gets the vector magnitude (Meters/Second/Second)  | 
 double | 
getMagnitude(boolean G)
Gets the vector magnitude.  | 
 double | 
getMagnitudeG()
Gets the vector magnitude (G-Force)  | 
static Accelerometer | 
GetMaximumMagnitude(Accelerometer... ACCList)
Gets the maximum absolute-value Accelerometer magnitude  | 
static Accelerometer | 
GetMaximumMagnitude(java.util.List<Accelerometer> ACCList)
Gets the maximum absolute-value Accelerometer magnitude  | 
 int | 
getValidAxis()
Gets the valid axis bitmap  | 
 double | 
getXAxis()
Gets the X-Axis accelerometer value (Meters/Second/Second).  | 
 double | 
getXAxis(boolean G)
Gets the X-Axis accelerometer value.  | 
 double | 
getXAxisG()
Gets the X-Axis accelerometer value (G-Force).  | 
static double[] | 
GetXAxisMinMax(boolean G,
               Accelerometer... ACCList)
Gets the X-Axis min/max values for the specified Axis.  | 
 double | 
getYAxis()
Gets the Y-Axis accelerometer value (Meters/Second/Second).  | 
 double | 
getYAxis(boolean G)
Gets the Y-Axis accelerometer value.  | 
 double | 
getYAxisG()
Gets the Y-Axis accelerometer value (G-Force).  | 
static double[] | 
GetYAxisMinMax(boolean G,
               Accelerometer... ACCList)
Gets the Y-Axis min/max values for the specified Axis.  | 
 double | 
getZAxis()
Gets the Z-Axis accelerometer value (Meters/Second/Second).  | 
 double | 
getZAxis(boolean G)
Gets the Z-Axis accelerometer value.  | 
 double | 
getZAxisG()
Gets the Z-Axis accelerometer value (G-Force).  | 
static double[] | 
GetZAxisMinMax(boolean G,
               Accelerometer... ACCList)
Gets the Y-Axis min/max values for the specified Axis.  | 
 boolean | 
hasAxis(int axis)
Returns true if the specified axis is available  | 
 boolean | 
hasMagnitude()
Returns true if this Accelerometer instance has a valid magnitude  | 
 boolean | 
hasXAxis()
Returns true if the X-Axis value is valid  | 
 boolean | 
hasYAxis()
Returns true if the Y-Axis value is valid  | 
 boolean | 
hasZAxis()
Returns true if the Z-Axis value is valid  | 
static int | 
IndexOfListEndChar(java.lang.String xyzListStr,
                   int fromNdx)
Gets the index of the end-of-list character  | 
static int | 
IndexOfListStartChar(java.lang.String xyzListStr,
                     int fromNdx)
Gets the index of the start-of-list character  | 
 boolean | 
isValid()
Returns true if all axis' are valid  | 
static boolean | 
isValid(Accelerometer A)
Returns true if the specified Accelerometer is valid  | 
static Accelerometer[] | 
ParseAccelerometer(java.lang.String xyzListStr)
Parse Accelerometer list.  | 
static Accelerometer[] | 
ParseAccelerometer(java.lang.String xyzListStr,
                   int fromNdx)
Parse Accelerometer list.  | 
 void | 
setXAxis(double MSS)
Sets the X-Axis accelerometer value (Meters/Second/Second).  | 
 void | 
setXAxisG(double G)
Sets the X-Axis accelerometer value (G-Force).  | 
 void | 
setYAxis(double MSS)
Sets the Y-Axis accelerometer value (Meters/Second/Second).  | 
 void | 
setYAxisG(double G)
Sets the Y-Axis accelerometer value (G-Force).  | 
 void | 
setZAxis(double MSS)
Sets the Z-Axis accelerometer value (Meters/Second/Second).  | 
 void | 
setZAxisG(double G)
Sets the Z-Axis accelerometer value (G-Force).  | 
static boolean | 
startsWithListChar(java.lang.String xyzListStr)
Returns true if the specified list starts with a Accelerometer list character  | 
static java.lang.String | 
ToListString(Accelerometer[] accList)
Returns a properly formatted Accelerometer list String  | 
static java.lang.StringBuffer | 
ToListString(Accelerometer[] accList,
             java.lang.StringBuffer sb)
Appends a properly formatted Accelerometer list to the specified StringBuffer  | 
static java.lang.String | 
ToListString(java.util.List<Accelerometer> accList)
Returns a properly formatted Accelerometer list String  | 
static java.lang.StringBuffer | 
ToListString(java.util.List<Accelerometer> accList,
             java.lang.StringBuffer sb)
Appends a properly formatted Accelerometer list to the specified StringBuffer  | 
 java.lang.String | 
toString()
Gets the String representation of this instance  | 
 java.lang.String | 
toString(java.lang.StringBuffer sb)
Gets the String representation of this instance  | 
 java.lang.String | 
toString(java.lang.StringBuffer sb,
         boolean G,
         java.lang.String format)
Gets the String representation of this instance  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final double METERS_PER_SEC_SQ_PER_G
public static final double MPSS_PER_G_FORCE
public static final double G_PER_MPSS_FORCE
public static final double MPH_PER_SEC_PER_MPSS
public static final double MPH_PER_SEC_PER_G
| Constructor Detail | 
|---|
public Accelerometer()
public Accelerometer(double x,
                     double y,
                     double z)
x - X-Axis acceleration (Meters/Second/Second)y - Y-Axis acceleration (Meters/Second/Second)z - Z-Axis acceleration (Meters/Second/Second)public Accelerometer(java.lang.String xyz)
xyz - Comma separated XYZ-Axis acceleration (in Meters/Second/Second)public Accelerometer(Accelerometer other)
| Method Detail | 
|---|
public static int IndexOfListStartChar(java.lang.String xyzListStr,
                                       int fromNdx)
public static int IndexOfListEndChar(java.lang.String xyzListStr,
                                     int fromNdx)
public static boolean startsWithListChar(java.lang.String xyzListStr)
public static Accelerometer[] ParseAccelerometer(java.lang.String xyzListStr)
public static Accelerometer[] ParseAccelerometer(java.lang.String xyzListStr,
                                                 int fromNdx)
public static java.lang.StringBuffer ToListString(Accelerometer[] accList,
                                                  java.lang.StringBuffer sb)
public static java.lang.String ToListString(Accelerometer[] accList)
public static java.lang.StringBuffer ToListString(java.util.List<Accelerometer> accList,
                                                  java.lang.StringBuffer sb)
public static java.lang.String ToListString(java.util.List<Accelerometer> accList)
public static double Convert_G_to_MSS(double G)
public static double Convert_MSS_to_G(double MSS)
public static Accelerometer.ForceUnits GetForceUnitsForName(java.lang.String name)
public static Accelerometer.ForceUnits GetForceUnitsForName(java.lang.String name,
                                                            Accelerometer.ForceUnits dft)
public static double[] GetXAxisMinMax(boolean G,
                                      Accelerometer... ACCList)
G - True to return value in G-force units, Meters/Second/Second otherwiseACCList - The Accelerometer array
public static double[] GetYAxisMinMax(boolean G,
                                      Accelerometer... ACCList)
G - True to return value in G-force units, Meters/Second/Second otherwiseACCList - The Accelerometer array
public static double[] GetZAxisMinMax(boolean G,
                                      Accelerometer... ACCList)
G - True to return value in G-force units, Meters/Second/Second otherwiseACCList - The Accelerometer array
public static Accelerometer GetMaximumMagnitude(Accelerometer... ACCList)
public static Accelerometer GetMaximumMagnitude(java.util.List<Accelerometer> ACCList)
public static java.lang.String CreateGoogleDataTableJSON(int intervMS,
                                                         boolean G,
                                                         Accelerometer... ACCList)
intervMS - The time interval between accelerometer elements (in milliseconds).G - True to return the DataTable in G-force units.ACCList - The array of Accelerometer elements.
public boolean hasXAxis()
public double getXAxis()
public double getXAxisG()
public double getXAxis(boolean G)
G - True to return value in G-force units, Meters/Second/Second otherwise
public void setXAxis(double MSS)
MSS - The X-Axis accelerometer value (Meters/Second/Second)public void setXAxisG(double G)
G - The X-Axis accelerometer value (G-Force)public boolean hasYAxis()
public double getYAxis()
public double getYAxisG()
public double getYAxis(boolean G)
G - True to return value in G-force units, Meters/Second/Second otherwise
public void setYAxis(double MSS)
MSS - The Y-Axis accelerometer value (Meters/Second/Second)public void setYAxisG(double G)
G - The Y-Axis accelerometer value (G-Force)public boolean hasZAxis()
public double getZAxis()
public double getZAxisG()
public double getZAxis(boolean G)
G - True to return value in G-force units, Meters/Second/Second otherwise
public void setZAxis(double MSS)
MSS - The Z-Axis accelerometer value (Meters/Second/Second)public void setZAxisG(double G)
G - The Z-Axis accelerometer value (G-Force)public boolean hasAxis(int axis)
axis - The desired axis (0=X, 1=Y, 2=Z)
public double getAxis(int axis,
                      boolean G)
axis - The desired axis (0=X, 1=Y, 2=Z)G - True to return value in G-force units, Meters/Second/Second otherwise
public int getValidAxis()
public boolean isValid()
public static boolean isValid(Accelerometer A)
public boolean hasMagnitude()
public double getMagnitude()
public double getMagnitudeG()
public double getMagnitude(boolean G)
G - True to return value in G-force units, Meters/Second/Second otherwise
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The other Accelerometer instance.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.StringBuffer sb)
public java.lang.String toString(java.lang.StringBuffer sb,
                                 boolean G,
                                 java.lang.String format)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||