Enum Class ParticleType

java.lang.Object
java.lang.Enum<ParticleType>
gaiasky.scene.record.ParticleType
All Implemented Interfaces:
Serializable, Comparable<ParticleType>, Constable

public enum ParticleType extends Enum<ParticleType>
Enumeration to identify the type of record.
  • Enum Constant Details

    • PARTICLE

      public static final ParticleType PARTICLE
      Simple positional particles. Corresponds to Particle.
    • PARTICLE_EXT

      public static final ParticleType PARTICLE_EXT
      Extended particles, with proper motions, colors and sizes. Corresponds to ParticleExt.
    • STAR

      public static final ParticleType STAR
      Stars. Corresponds to ParticleStar.
    • VARIABLE

      public static final ParticleType VARIABLE
      Variable stars. Corresponds to ParticleVariable.
    • KEPLER

      public static final ParticleType KEPLER
      Particle whose location is described as Keplerian orbital elements.
    • VECTOR

      public static final ParticleType VECTOR
      Particle implemented as a double array. Can hold anything. Corresponds to ParticleVector.
  • Field Details

    • attributes

      public final Class<? extends IAttribute>[] attributes
      Attributes supported by the particle type.
  • Method Details

    • values

      public static ParticleType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ParticleType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isParticleOrStar

      public boolean isParticleOrStar()
    • isKeplerElements

      public boolean isKeplerElements()
    • isVector

      public boolean isVector()
    • type

      public static ParticleType type(ParticleSet set)
      Get the type from a particle set.
      Parameters:
      set - The set.
      Returns:
      The type.