fr.cnes.sirius.patrius.tools.ephemerisComparator
Enum DataType

java.lang.Object
  extended by java.lang.Enum<DataType>
      extended by fr.cnes.sirius.patrius.tools.ephemerisComparator.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>

public enum DataType
extends Enum<DataType>

This class enumerates the available data types. Each of them is also characterised by the number of elements necessary to build the object they represent. This number can be -1 if any is accepted, or more than zero otherwise.

Since:
1.0
Version:
$Id: DataType.java 17581 2017-05-10 12:47:31Z bignon $
Author:
Philippe Pavero

Enum Constant Summary
ANGLE
          The angle object requires only 1 parameter.
DATE
          The date object can be created from several combinations of parameters
DOUBLE
          The double object requires only 1 parameter.
P1_QSW
          The position/velocity object can be created from 6 components
P1_TNW
          The position/velocity object can be created from 6 components
P2_QSW
          The position/velocity object can be created from 6 components
P2_TNW
          The position/velocity object can be created from 6 components
P3_QSW
          The position/velocity object can be created from 6 components
P3_TNW
          The position/velocity object can be created from 6 components
QUATERNION
          The quaternion object can be created from several combinations of parameters
ROTATION
          The rotation object can be created from several combinations of parameters
V1_QSW
          The position/velocity object can be created from 6 components
V1_TNW
          The position/velocity object can be created from 6 components
V2_QSW
          The position/velocity object can be created from 6 components
V2_TNW
          The position/velocity object can be created from 6 components
V3_QSW
          The position/velocity object can be created from 6 components
V3_TNW
          The position/velocity object can be created from 6 components
VECTOR
          The vector object can take any number of parameters.
 
Method Summary
 boolean isSizedAllowed(int size)
          Tells if the size is allowed
static DataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DOUBLE

public static final DataType DOUBLE
The double object requires only 1 parameter.


VECTOR

public static final DataType VECTOR
The vector object can take any number of parameters.


ANGLE

public static final DataType ANGLE
The angle object requires only 1 parameter.


DATE

public static final DataType DATE
The date object can be created from several combinations of parameters


ROTATION

public static final DataType ROTATION
The rotation object can be created from several combinations of parameters


QUATERNION

public static final DataType QUATERNION
The quaternion object can be created from several combinations of parameters


P1_QSW

public static final DataType P1_QSW
The position/velocity object can be created from 6 components


P2_QSW

public static final DataType P2_QSW
The position/velocity object can be created from 6 components


P3_QSW

public static final DataType P3_QSW
The position/velocity object can be created from 6 components


V1_QSW

public static final DataType V1_QSW
The position/velocity object can be created from 6 components


V2_QSW

public static final DataType V2_QSW
The position/velocity object can be created from 6 components


V3_QSW

public static final DataType V3_QSW
The position/velocity object can be created from 6 components


P1_TNW

public static final DataType P1_TNW
The position/velocity object can be created from 6 components


P2_TNW

public static final DataType P2_TNW
The position/velocity object can be created from 6 components


P3_TNW

public static final DataType P3_TNW
The position/velocity object can be created from 6 components


V1_TNW

public static final DataType V1_TNW
The position/velocity object can be created from 6 components


V2_TNW

public static final DataType V2_TNW
The position/velocity object can be created from 6 components


V3_TNW

public static final DataType V3_TNW
The position/velocity object can be created from 6 components

Method Detail

values

public static DataType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DataType c : DataType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isSizedAllowed

public boolean isSizedAllowed(int size)
Tells if the size is allowed

Parameters:
size - the size that is to be checked
Returns:
true if the size is allowed
Since:
1.0


Copyright © 2017 CNES. All Rights Reserved.