Class SerializedDataProvider
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.data.group.AbstractStarGroupDataProvider
-
- gaia.cu9.ari.gaiaorbit.data.group.SerializedDataProvider
-
- All Implemented Interfaces:
IParticleGroupDataProvider
,IStarGroupDataProvider
public class SerializedDataProvider extends AbstractStarGroupDataProvider
-
-
Field Summary
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.data.group.AbstractStarGroupDataProvider
adaptiveParallax, colors, countsPerMag, distCap, geoDistances, geoDistErrors, geoDistFile, list, logger, magCorrections, mustLoadIds, NEGATIVE_DIST, parallaxErrorFactorBright, parallaxErrorFactorFaint, parallaxZeroPoint, ruwe, ruweFile, ruweValues, sphericalPositions
-
-
Constructor Summary
Constructors Constructor Description SerializedDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.badlogic.gdx.utils.Array<StarGroup.StarBean>
loadData(java.io.InputStream is, double factor)
Loads the data applying a factor.com.badlogic.gdx.utils.Array<StarGroup.StarBean>
loadData(java.lang.String file)
Loads the data as it is.com.badlogic.gdx.utils.Array<StarGroup.StarBean>
loadData(java.lang.String file, double factor)
Loads the data applying a factor.com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean>
loadDataMapped(java.lang.String file, double factor)
Loads the data applying a factor using a memory mapped file for improved speed.-
Methods inherited from class gaia.cu9.ari.gaiaorbit.data.group.AbstractStarGroupDataProvider
acceptDistance, acceptParallax, countLines, countLines, dumpToDisk, dumpToDiskBin, dumpToDiskCsv, getColors, getCountsPerMag, getGeoDistance, getRuweValue, hasGeoDistance, hasGeoDistances, initLists, initLists, initLists, mustLoad, setAdaptiveParallax, setDistanceCap, setFileNumberCap, setGeoDistancesFile, setMagCorrections, setMustLoadIds, setParallaxErrorFactorBright, setParallaxErrorFactorFaint, setParallaxZeroPoint, setRUWECap, setRUWEFile
-
-
-
-
Method Detail
-
loadData
public com.badlogic.gdx.utils.Array<StarGroup.StarBean> loadData(java.lang.String file)
Description copied from interface:IParticleGroupDataProvider
Loads the data as it is.- Parameters:
file
- The file to load- Returns:
- Array of particle beans
-
loadData
public com.badlogic.gdx.utils.Array<StarGroup.StarBean> loadData(java.lang.String file, double factor)
Description copied from interface:IParticleGroupDataProvider
Loads the data applying a factor.- Parameters:
file
- The file to loadfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
loadData
public com.badlogic.gdx.utils.Array<StarGroup.StarBean> loadData(java.io.InputStream is, double factor)
Description copied from interface:IParticleGroupDataProvider
Loads the data applying a factor.- Parameters:
is
- Input stream to load the data fromfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
loadDataMapped
public com.badlogic.gdx.utils.Array<? extends ParticleGroup.ParticleBean> loadDataMapped(java.lang.String file, double factor)
Description copied from interface:IParticleGroupDataProvider
Loads the data applying a factor using a memory mapped file for improved speed.- Parameters:
file
- The file to loadfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
-