Record Class ParticleVariable
java.lang.Object
java.lang.Record
gaiasky.scene.record.ParticleVariable
- Record Components:
id- The particle identifier.names- The name array.x- X component of position vector at epoch.y- Y component of position vector at epoch.z- Z component of position vector at epoch.muAlpha16- The proper motion in alpha*, in mas/y.muDelta16- The proper motion in delta, in mas/y.radVel16- The radial velocity, in km/s.vx- X component of the velocity vector.vy- Y component of the velocity vector.vz- Z component of the velocity vector.appMag16- Apparent magnitude.absMag16- Absolute magnitude.color- Packed color.size- Size.hip- HIP number.tEff- Effective temperature.nVari- Number of variable star samples.period- Period in days.variMags- Vector with magnitudes.variTimes- Vector with times corresponding to magnitudes, in Julian days.extra- Map with extra attributes.
- All Implemented Interfaces:
IParticleRecord
public record ParticleVariable(long id, String[] names, double x, double y, double z, short muAlpha16, short muDelta16, short radVel16, float vx, float vy, float vz, short appMag16, short absMag16, float color, float size, int hip, float tEff, int nVari, double period, float[] variMags, double[] variTimes, com.badlogic.gdx.utils.ObjectMap<UCD,Object> extra)
extends Record
implements IParticleRecord
Record class to store variable stars. Like
ParticleStar, but contains the time series variability.-
Constructor Summary
ConstructorsConstructorDescriptionParticleVariable(long id, String[] names, double x, double y, double z, float muAlpha, float muDelta, float radVel, float vx, float vy, float vz, float appMag, float absMag, float color, float size, int hip, float tEff, int nVari, double period, float[] variMags, double[] variTimes, com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) ParticleVariable(long id, String[] names, double x, double y, double z, short muAlpha16, short muDelta16, short radVel16, float vx, float vy, float vz, short appMag16, short absMag16, float color, float size, int hip, float tEff, int nVari, double period, float[] variMags, double[] variTimes, com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) Creates an instance of aParticleVariablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatabsMag()shortabsMag16()Returns the value of theabsMag16record component.floatappMag()shortappMag16()Returns the value of theappMag16record component.doubleb()Galactic latitude in degrees.doublebeta()Ecliptic latitude in degrees.floatcolor()Returns the value of thecolorrecord component.doubledec()Declination in degrees.doubledistance()Distance in internal units.final booleanIndicates whether some other object is "equal to" this one.extra()Returns the value of theextrarecord component.com.badlogic.gdx.utils.ObjectMap.Keys<UCD> getExtra()Gets the extra attributes map.Gets the extra data filed with the given UCD.Gets the extra data filed with the given name.doublegetExtraNumber(UCD ucd) Gets the extra data filed with the given UCD, as a double number.doublegetExtraNumber(String name) Gets the extra data filed with the given name, as a double number.getType()Returns the particle record type.booleanhasColor()booleanhasExtra()booleanbooleanfinal inthashCode()Returns a hash code value for this object.booleanbooleanbooleanbooleanhasSize()inthip()Returns the value of thehiprecord component.longid()Returns the value of theidrecord component.booleanReturns whether this particle record has aVariableattached, making it a variable star.doublel()Galactic longitude in degrees.doublelambda()Ecliptic longitude in degrees.floatmuAlpha()shortReturns the value of themuAlpha16record component.floatmuDelta()shortReturns the value of themuDelta16record component.String[]names()Returns the value of thenamesrecord component.intnVari()Returns the value of thenVarirecord component.doubleparallax()Parallax in mas.doubleperiod()Returns the value of theperiodrecord component.doublera()Declination in degrees.doubleradius()floatradVel()shortradVel16()Returns the value of theradVel16record component.double[]rgb()voidsetExtraAttributes(com.badlogic.gdx.utils.ObjectMap<UCD, Object> e) floatsize()Returns the value of thesizerecord component.floattEff()Returns the value of thetEffrecord component.final StringtoString()Returns a string representation of this record class.floatvariMag(int i) float[]variMags()Returns the value of thevariMagsrecord component.doublevariTime(int i) double[]Returns the value of thevariTimesrecord component.floatvx()Returns the value of thevxrecord component.floatvy()Returns the value of thevyrecord component.floatvz()Returns the value of thevzrecord component.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
ParticleVariable
public ParticleVariable(long id, String[] names, double x, double y, double z, float muAlpha, float muDelta, float radVel, float vx, float vy, float vz, float appMag, float absMag, float color, float size, int hip, float tEff, int nVari, double period, float[] variMags, double[] variTimes, com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) -
ParticleVariable
public ParticleVariable(long id, String[] names, double x, double y, double z, short muAlpha16, short muDelta16, short radVel16, float vx, float vy, float vz, short appMag16, short absMag16, float color, float size, int hip, float tEff, int nVari, double period, float[] variMags, double[] variTimes, com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) Creates an instance of aParticleVariablerecord class.- Parameters:
id- the value for theidrecord componentnames- the value for thenamesrecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentmuAlpha16- the value for themuAlpha16record componentmuDelta16- the value for themuDelta16record componentradVel16- the value for theradVel16record componentvx- the value for thevxrecord componentvy- the value for thevyrecord componentvz- the value for thevzrecord componentappMag16- the value for theappMag16record componentabsMag16- the value for theabsMag16record componentcolor- the value for thecolorrecord componentsize- the value for thesizerecord componenthip- the value for thehiprecord componenttEff- the value for thetEffrecord componentnVari- the value for thenVarirecord componentperiod- the value for theperiodrecord componentvariMags- the value for thevariMagsrecord componentvariTimes- the value for thevariTimesrecord componentextra- the value for theextrarecord component
-
-
Method Details
-
getType
Description copied from interface:IParticleRecordReturns the particle record type.- Specified by:
getTypein interfaceIParticleRecord- Returns:
- The type.
-
isVariable
public boolean isVariable()Description copied from interface:IParticleRecordReturns whether this particle record has aVariableattached, making it a variable star.- Specified by:
isVariablein interfaceIParticleRecord- Returns:
- True if this record is a variable star.
-
pos
- Specified by:
posin interfaceIParticleRecord
-
hasProperMotion
public boolean hasProperMotion()- Specified by:
hasProperMotionin interfaceIParticleRecord
-
names
Returns the value of thenamesrecord component.- Specified by:
namesin interfaceIParticleRecord- Returns:
- the value of the
namesrecord component
-
namesConcat
- Specified by:
namesConcatin interfaceIParticleRecord
-
hasName
- Specified by:
hasNamein interfaceIParticleRecord
-
hasName
- Specified by:
hasNamein interfaceIParticleRecord
-
appMag
public float appMag()- Specified by:
appMagin interfaceIParticleRecord
-
absMag
public float absMag()- Specified by:
absMagin interfaceIParticleRecord
-
hasColor
public boolean hasColor()- Specified by:
hasColorin interfaceIParticleRecord
-
rgb
public double[] rgb()- Specified by:
rgbin interfaceIParticleRecord
-
hasSize
public boolean hasSize()- Specified by:
hasSizein interfaceIParticleRecord
-
radius
public double radius()- Specified by:
radiusin interfaceIParticleRecord
-
id
public long id()Returns the value of theidrecord component.- Specified by:
idin interfaceIParticleRecord- Returns:
- the value of the
idrecord component
-
muAlpha
public float muAlpha()- Specified by:
muAlphain interfaceIParticleRecord
-
muDelta
public float muDelta()- Specified by:
muDeltain interfaceIParticleRecord
-
radVel
public float radVel()- Specified by:
radVelin interfaceIParticleRecord
-
distance
public double distance()Distance in internal units. Beware, does the computation on the fly.- Specified by:
distancein interfaceIParticleRecord- Returns:
- The distance, in internal units
-
parallax
public double parallax()Parallax in mas.- Specified by:
parallaxin interfaceIParticleRecord- Returns:
- The parallax in mas.
-
ra
public double ra()Declination in degrees. Beware, does the conversion on the fly.- Specified by:
rain interfaceIParticleRecord- Returns:
- The declination, in degrees
-
dec
public double dec()Description copied from interface:IParticleRecordDeclination in degrees. Beware, does the conversion on the fly.- Specified by:
decin interfaceIParticleRecord- Returns:
- The declination, in degrees.
-
lambda
public double lambda()Ecliptic longitude in degrees.- Specified by:
lambdain interfaceIParticleRecord- Returns:
- The ecliptic longitude, in degrees
-
beta
public double beta()Ecliptic latitude in degrees.- Specified by:
betain interfaceIParticleRecord- Returns:
- The ecliptic latitude, in degrees
-
l
public double l()Galactic longitude in degrees.- Specified by:
lin interfaceIParticleRecord- Returns:
- The galactic longitude, in degrees
-
b
public double b()Galactic latitude in degrees.- Specified by:
bin interfaceIParticleRecord- Returns:
- The galactic latitude, in degrees
-
setExtraAttributes
- Specified by:
setExtraAttributesin interfaceIParticleRecord
-
hasExtra
public boolean hasExtra()- Specified by:
hasExtrain interfaceIParticleRecord
-
hasExtra
- Specified by:
hasExtrain interfaceIParticleRecord
-
hasExtra
- Specified by:
hasExtrain interfaceIParticleRecord
-
getExtra
Description copied from interface:IParticleRecordGets the extra attributes map.- Specified by:
getExtrain interfaceIParticleRecord- Returns:
- The map.
-
getExtra
Description copied from interface:IParticleRecordGets the extra data filed with the given name.- Specified by:
getExtrain interfaceIParticleRecord- Parameters:
name- The name of the data filed to get.- Returns:
- The data field, or null if it does not exist.
-
getExtra
Description copied from interface:IParticleRecordGets the extra data filed with the given UCD.- Specified by:
getExtrain interfaceIParticleRecord- Parameters:
ucd- The UCD of the data filed to get.- Returns:
- The data field, or null if it does not exist.
-
getExtraNumber
Description copied from interface:IParticleRecordGets the extra data filed with the given name, as a double number.- Specified by:
getExtraNumberin interfaceIParticleRecord- Parameters:
name- The name of the data filed to get.- Returns:
- The data field as a double, or NaN if it does not exist or is not a number.
-
getExtraNumber
Description copied from interface:IParticleRecordGets the extra data filed with the given UCD, as a double number.- Specified by:
getExtraNumberin interfaceIParticleRecord- Parameters:
ucd- The UCD of the data filed to get.- Returns:
- The data field as a double, or NaN if it does not exist or is not a number.
-
extraKeys
- Specified by:
extraKeysin interfaceIParticleRecord
-
variMag
public float variMag(int i) -
variTime
public double variTime(int i) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
x
public double x()Returns the value of thexrecord component.- Specified by:
xin interfaceIParticleRecord- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Specified by:
yin interfaceIParticleRecord- Returns:
- the value of the
yrecord component
-
z
public double z()Returns the value of thezrecord component.- Specified by:
zin interfaceIParticleRecord- Returns:
- the value of the
zrecord component
-
muAlpha16
-
muDelta16
-
radVel16
-
vx
public float vx()Returns the value of thevxrecord component.- Specified by:
vxin interfaceIParticleRecord- Returns:
- the value of the
vxrecord component
-
vy
public float vy()Returns the value of thevyrecord component.- Specified by:
vyin interfaceIParticleRecord- Returns:
- the value of the
vyrecord component
-
vz
public float vz()Returns the value of thevzrecord component.- Specified by:
vzin interfaceIParticleRecord- Returns:
- the value of the
vzrecord component
-
appMag16
-
absMag16
-
color
public float color()Returns the value of thecolorrecord component.- Specified by:
colorin interfaceIParticleRecord- Returns:
- the value of the
colorrecord component
-
size
public float size()Returns the value of thesizerecord component.- Specified by:
sizein interfaceIParticleRecord- Returns:
- the value of the
sizerecord component
-
hip
public int hip()Returns the value of thehiprecord component.- Specified by:
hipin interfaceIParticleRecord- Returns:
- the value of the
hiprecord component
-
tEff
public float tEff()Returns the value of thetEffrecord component.- Specified by:
tEffin interfaceIParticleRecord- Returns:
- the value of the
tEffrecord component
-
nVari
public int nVari()Returns the value of thenVarirecord component.- Specified by:
nVariin interfaceIParticleRecord- Returns:
- the value of the
nVarirecord component
-
period
public double period()Returns the value of theperiodrecord component.- Specified by:
periodin interfaceIParticleRecord- Returns:
- the value of the
periodrecord component
-
variMags
public float[] variMags()Returns the value of thevariMagsrecord component.- Specified by:
variMagsin interfaceIParticleRecord- Returns:
- the value of the
variMagsrecord component
-
variTimes
public double[] variTimes()Returns the value of thevariTimesrecord component.- Specified by:
variTimesin interfaceIParticleRecord- Returns:
- the value of the
variTimesrecord component
-
extra
-