diff --git a/core/src/main/java/org/orekit/rugged/api/Rugged.java b/core/src/main/java/org/orekit/rugged/api/Rugged.java index bd3b4d9256fb1dc20861de6b7978a54f325808a9..ae97674806b6da7aa1575b39d548c3fe1a34ad31 100644 --- a/core/src/main/java/org/orekit/rugged/api/Rugged.java +++ b/core/src/main/java/org/orekit/rugged/api/Rugged.java @@ -366,6 +366,20 @@ public class Rugged { return sensors.values(); } + /** Get the start of search time span. + * @return start of search time span + */ + public AbsoluteDate getMinDate() { + return scToBody.getMinDate(); + } + + /** Get the end of search time span. + * @return end of search time span + */ + public AbsoluteDate getMaxDate() { + return scToBody.getMaxDate(); + } + /** Select inertial frame. * @param inertialFrameId inertial frame identifier * @return inertial frame @@ -692,7 +706,7 @@ public class Rugged { * @return selected sensor * @exception RuggedException if sensor is not known */ - private LineSensor getLineSensor(final String sensorName) throws RuggedException { + public LineSensor getLineSensor(final String sensorName) throws RuggedException { final LineSensor sensor = sensors.get(sensorName); if (sensor == null) { throw new RuggedException(RuggedMessages.UNKNOWN_SENSOR, sensorName); diff --git a/core/src/main/java/org/orekit/rugged/utils/SpacecraftToObservedBody.java b/core/src/main/java/org/orekit/rugged/utils/SpacecraftToObservedBody.java index 8fe52aaf90cbdb5bce62e63722431518149a3251..a4ce304584b5489eb501cfa72596c8d6ed92b6d1 100644 --- a/core/src/main/java/org/orekit/rugged/utils/SpacecraftToObservedBody.java +++ b/core/src/main/java/org/orekit/rugged/utils/SpacecraftToObservedBody.java @@ -164,6 +164,20 @@ public class SpacecraftToObservedBody { } } + /** Get the start of search time span. + * @return start of search time span + */ + public AbsoluteDate getMinDate() { + return minDate; + } + + /** Get the end of search time span. + * @return end of search time span + */ + public AbsoluteDate getMaxDate() { + return maxDate; + } + /** Get transform from spacecraft to inertial frame. * @param date date of the transform * @return transform from spacecraft to inertial frame