Package gaiasky.data.orbit
Class OrbitalParametersProvider
java.lang.Object
gaiasky.data.orbit.OrbitalParametersProvider
- All Implemented Interfaces:
IOrbitDataProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
void
initialize
(com.badlogic.ashley.core.Entity entity, Trajectory trajectory) Initializes the provider with the given entity and trajectory component.void
load
(String file, OrbitDataLoader.OrbitDataLoaderParameters parameter) Loads the orbit data into the OrbitData object in the internal units.void
load
(String file, OrbitDataLoader.OrbitDataLoaderParameters parameter, boolean newMethod) Loads the orbit data into the OrbitData object in the internal units.void
loadOld
(String file, OrbitDataLoader.OrbitDataLoaderParameters parameter)
-
Constructor Details
-
OrbitalParametersProvider
public OrbitalParametersProvider()
-
-
Method Details
-
initialize
Description copied from interface:IOrbitDataProvider
Initializes the provider with the given entity and trajectory component.- Specified by:
initialize
in interfaceIOrbitDataProvider
- Parameters:
entity
- The entity.trajectory
- The trajectory component.
-
load
Description copied from interface:IOrbitDataProvider
Loads the orbit data into the OrbitData object in the internal units.- Specified by:
load
in interfaceIOrbitDataProvider
- Parameters:
file
- The file pathparameter
- The parameters
-
load
public void load(String file, OrbitDataLoader.OrbitDataLoaderParameters parameter, boolean newMethod) Description copied from interface:IOrbitDataProvider
Loads the orbit data into the OrbitData object in the internal units.- Specified by:
load
in interfaceIOrbitDataProvider
- Parameters:
file
- The file pathparameter
- The parametersnewMethod
- Use new method (for orbital elements only)
-
loadOld
-
getData
- Specified by:
getData
in interfaceIOrbitDataProvider
-