org.orekit.propagation.analytical.twod
Class AbstractDateIntervalFunction

java.lang.Object
  extended by org.orekit.propagation.analytical.twod.AbstractDateIntervalFunction
All Implemented Interfaces:
UnivariateDateFunction
Direct Known Subclasses:
DateIntervalLinearFunction, DateIntervalParabolicFunction

public abstract class AbstractDateIntervalFunction
extends Object
implements UnivariateDateFunction

Abstract class for piecewise function of date.

Since:
3.0
Version:
$Id: AbstractDateIntervalFunction.java 13151 2015-05-05 13:09:30Z bignon $
Author:
Emmanuel Bignon
Concurrency :
thread-safe

Constructor Summary
AbstractDateIntervalFunction(AbsoluteDate[] timeIntervals)
          Constructor.
AbstractDateIntervalFunction(AbstractDateIntervalFunction function)
          Clone constructor.
 
Method Summary
 AbsoluteDate[] getDateIntervals()
          Returns a copy of date intervals.
protected  int getIndexInterval(AbsoluteDate date)
          Returns index such as dateIntervals[k] <= date <= dateIntervals[k+1].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.orekit.propagation.analytical.twod.UnivariateDateFunction
value
 

Constructor Detail

AbstractDateIntervalFunction

public AbstractDateIntervalFunction(AbsoluteDate[] timeIntervals)
Constructor.

Parameters:
timeIntervals - date intervals (must be chronologically sorted)

AbstractDateIntervalFunction

public AbstractDateIntervalFunction(AbstractDateIntervalFunction function)
Clone constructor.

Parameters:
function - function to copy
Method Detail

getDateIntervals

public AbsoluteDate[] getDateIntervals()
Returns a copy of date intervals.

Returns:
date intervals

getIndexInterval

protected int getIndexInterval(AbsoluteDate date)
Returns index such as dateIntervals[k] <= date <= dateIntervals[k+1].

Parameters:
date - a date
Returns:
index such as dateIntervals[k] <= date <= dateIntervals[k+1], -1 if date is before dateIntervals[0], dateIntervals.length - 1 if date is after dateIntervals[dateIntervals.length - 1]


Copyright © 2016 CNES. All Rights Reserved.