org.orekit.frames.configuration.eop
Class NoEOP1980HistoryLoader

java.lang.Object
  extended by org.orekit.frames.configuration.eop.NoEOP1980HistoryLoader
All Implemented Interfaces:
DataLoader, EOP1980HistoryLoader

public class NoEOP1980HistoryLoader
extends Object
implements EOP1980HistoryLoader

NoEOP2000History. In order to use this class, the user must use the loader in the EOPHistoryFactory :

 final EOP1980HistoryLoader loader = new NoEOP1980HistoryLoader();
EOPHistoryFactory.addEOP1980HistoryLoader(loader);

Since:
2.2
Version:
$Id: NoEOP1980HistoryLoader.java 17602 2017-05-18 08:25:23Z bignon $
Author:
Rami Houdroge
Concurrency :
not thread-safe
Concurrency comment :
uses internal mutable attributes

Constructor Summary
NoEOP1980HistoryLoader()
          Constructor.
 
Method Summary
 void fillHistory(EOP1980History history)
          History with zero orientation.
 void loadData(InputStream input, String name)
          Load data from a stream.
 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
 

Constructor Detail

NoEOP1980HistoryLoader

public NoEOP1980HistoryLoader()
Constructor.

Method Detail

stillAcceptsData

public boolean stillAcceptsData()
Check if the loader still accepts new data.

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.

Specified by:
stillAcceptsData in interface DataLoader
Returns:
true while the loader still accepts new data

loadData

public void loadData(InputStream input,
                     String name)
              throws IOException,
                     ParseException,
                     OrekitException
Load data from a stream.

Specified by:
loadData in interface DataLoader
Parameters:
input - data input stream
name - name of the file (or zip entry)
Throws:
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 occurs

fillHistory

public void fillHistory(EOP1980History history)
                 throws OrekitException
History with zero orientation. Load celestial body.

Specified by:
fillHistory in interface EOP1980HistoryLoader
Parameters:
history - history to fill up
Throws:
OrekitException - if the history cannot be loaded


Copyright © 2017 CNES. All Rights Reserved.