|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.forces.gravity.potential.PotentialCoefficientsReader
public abstract class PotentialCoefficientsReader
This abstract class represents a Gravitational Potential Coefficients file reader.
As it exits many different coefficients models and containers this
interface represents all the methods that should be implemented by a reader.
The proper way to use this interface is to call the GravityFieldFactory
which will determine which reader to use with the selected potential
coefficients file.
GravityFieldFactory
Field Summary | |
---|---|
protected double |
ae
Central body reference radius. |
protected double |
mu
Central body attraction coefficient. |
protected double[][] |
normalizedC
fully normalized tesseral-sectorial coefficients matrix. |
protected double[] |
normalizedJ
fully normalized zonal coefficients array. |
protected double[][] |
normalizedS
fully normalized tesseral-sectorial coefficients matrix. |
protected boolean |
readCompleted
Indicator for completed read. |
Constructor Summary | |
---|---|
protected |
PotentialCoefficientsReader(String supportedNames,
boolean missingCoefficientsAllowed)
Simple constructor. |
Method Summary | |
---|---|
double |
getAe()
Get the value of the central body reference radius. |
double[][] |
getC(int n,
int m,
boolean normalized)
Get the tesseral-sectorial and zonal coefficients. |
double[] |
getJ(boolean normalized,
int n)
Get the zonal coefficients. |
double |
getMu()
Get the central body attraction coefficient. |
double[][] |
getS(int n,
int m,
boolean normalized)
Get tesseral-sectorial coefficients. |
String |
getSupportedNames()
Get the regular expression for supported files names. |
abstract void |
loadData(InputStream input,
String name)
Load data from a stream. |
boolean |
missingCoefficientsAllowed()
Check if missing coefficients are allowed in the input data. |
boolean |
stillAcceptsData()
Check if the loader still accepts new data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean readCompleted
protected double ae
protected double mu
protected double[] normalizedJ
protected double[][] normalizedC
protected double[][] normalizedS
Constructor Detail |
---|
protected PotentialCoefficientsReader(String supportedNames, boolean missingCoefficientsAllowed)
Build an uninitialized reader.
supportedNames
- regular expression for supported files namesmissingCoefficientsAllowed
- allow missing coefficients in the input dataMethod Detail |
---|
public String getSupportedNames()
public boolean missingCoefficientsAllowed()
public boolean stillAcceptsData()
This method is used to speed up data loading by interrupting crawling the data sets as soon as a loader has found the data it was waiting for. For loaders that can merge data from any number of sources (for example JPL ephemerides or Earth Orientation Parameters that are split among several files), this method should always return true to make sure no data is left over.
stillAcceptsData
in interface DataLoader
public abstract void loadData(InputStream input, String name) throws IOException, ParseException, OrekitException
loadData
in interface DataLoader
input
- data input streamname
- name of the file (or zip entry)
IOException
- if data can't be read
ParseException
- if data can't be parsed
OrekitException
- if some data is missing
or if some loader specific error occurspublic double[] getJ(boolean normalized, int n) throws OrekitException
getJ
in interface PotentialCoefficientsProvider
normalized
- (true) or un-normalized (false)n
- the maximal degree requested
OrekitException
- if the requested maximal degree exceeds the
available degreepublic double[][] getC(int n, int m, boolean normalized) throws OrekitException
getC
in interface PotentialCoefficientsProvider
n
- the degreem
- the ordernormalized
- (true) or un-normalized (false)
OrekitException
- if the requested maximal degree or order exceeds the
available degree or orderpublic double[][] getS(int n, int m, boolean normalized) throws OrekitException
getS
in interface PotentialCoefficientsProvider
n
- the degreem
- the ordernormalized
- (true) or un-normalized (false)
OrekitException
- if the requested maximal degree or order exceeds the
available degree or orderpublic double getMu()
getMu
in interface PotentialCoefficientsProvider
public double getAe()
getAe
in interface PotentialCoefficientsProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |