fr.cnes.genopus.nonWidget.events
Class CustomVisibilityFromStationDetector

java.lang.Object
  extended by org.orekit.propagation.events.AbstractDetector
      extended by fr.cnes.sirius.patrius.events.sensor.AbstractDetectorWithTropoCorrection
          extended by fr.cnes.sirius.patrius.events.sensor.VisibilityFromStationDetector
              extended by fr.cnes.genopus.nonWidget.events.CustomVisibilityFromStationDetector
All Implemented Interfaces:
CustomEventDetector, CustomTriggeredEventDetector, Serializable, org.orekit.propagation.events.EventDetector

public class CustomVisibilityFromStationDetector
extends fr.cnes.sirius.patrius.events.sensor.VisibilityFromStationDetector
implements CustomTriggeredEventDetector

Sub-class of Orekit's VisibilityFromStationDetector class to be able to change the action to be performed in case of event detection.

Author:
aadt
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.orekit.propagation.events.EventDetector
org.orekit.propagation.events.EventDetector.Action
 
Field Summary
 
Fields inherited from class org.orekit.propagation.events.AbstractDetector
DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
 
Fields inherited from interface org.orekit.propagation.events.EventDetector
DECREASING, INCREASING, INCREASING_DECREASING
 
Constructor Summary
CustomVisibilityFromStationDetector(org.orekit.bodies.GeodeticPoint stationCoordinates, org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape, int visibilityDetectorChoice, int triggerCount)
          Constructor with reduced data. maxCheck (600 s), threshold (1.0e-6 s) and action (RESET_STATE) by default.
CustomVisibilityFromStationDetector(org.orekit.bodies.GeodeticPoint stationCoordinates, org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape, int visibilityDetectorChoice, int triggerCount, double maxCheck, double threshold, org.orekit.propagation.events.EventDetector.Action action)
          Constructor with complete data.
 
Method Summary
 org.orekit.propagation.events.EventDetector.Action eventOccurred(org.orekit.propagation.SpacecraftState s, boolean increasing, boolean forward)
          
 org.orekit.propagation.events.EventDetector.Action getAction()
          Getter for the action to be performed in case of event detection.
 org.orekit.bodies.ExtendedOneAxisEllipsoid getBodyShape()
          Getter for the Earth shape.
 org.orekit.bodies.GeodeticPoint getStationCoordinates()
          Getter for the station coordinates.
 int getTriggerCount()
          Getter for the count from which the event must be triggered.
 int getVisibilityDetectorChoice()
          Getter for the visibility detector choice.
 org.orekit.propagation.SpacecraftState resetState(org.orekit.propagation.SpacecraftState oldState)
          
 String toString()
          
 
Methods inherited from class fr.cnes.sirius.patrius.events.sensor.VisibilityFromStationDetector
g, init, shouldBeRemoved
 
Methods inherited from class fr.cnes.sirius.patrius.events.sensor.AbstractDetectorWithTropoCorrection
getCorrectedVector, getCorrection, getStation
 
Methods inherited from class org.orekit.propagation.events.AbstractDetector
getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.orekit.propagation.events.EventDetector
g, getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init, shouldBeRemoved
 

Constructor Detail

CustomVisibilityFromStationDetector

public CustomVisibilityFromStationDetector(org.orekit.bodies.GeodeticPoint stationCoordinates,
                                           org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape,
                                           int visibilityDetectorChoice,
                                           int triggerCount)
                                    throws org.orekit.errors.OrekitException
Constructor with reduced data. maxCheck (600 s), threshold (1.0e-6 s) and action (RESET_STATE) by default.

Parameters:
stationCoordinates - antenna station geodetic coordinates
earthShape - Earth body shape (ellipsoid)
visibilityDetectorChoice - 0-entering FoW, 1-exiting FoW, 2-entering or exiting FoW
triggerCount - for successive event ocurrences, count for which the event must be triggered.
Throws:
org.orekit.errors.OrekitException - error when loading the ephemeris files

CustomVisibilityFromStationDetector

public CustomVisibilityFromStationDetector(org.orekit.bodies.GeodeticPoint stationCoordinates,
                                           org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape,
                                           int visibilityDetectorChoice,
                                           int triggerCount,
                                           double maxCheck,
                                           double threshold,
                                           org.orekit.propagation.events.EventDetector.Action action)
                                    throws org.orekit.errors.OrekitException
Constructor with complete data.

Parameters:
stationCoordinates - antenna station geodetic coordinates
earthShape - Earth body shape (ellipsoid)
visibilityDetectorChoice - 0-entering FoW, 1-exiting FoW, 2-entering or exiting FoW
triggerCount - for successive event ocurrences, count for which the event must be triggered.
maxCheck - maximum checking interval (s).
threshold - convergence threshold (s).
action - action to be performed in case of event detection.
Throws:
org.orekit.errors.OrekitException - error when loading the ephemeris files
Method Detail

getStationCoordinates

public org.orekit.bodies.GeodeticPoint getStationCoordinates()
Getter for the station coordinates.

Returns:
the station coordinates.

getBodyShape

public org.orekit.bodies.ExtendedOneAxisEllipsoid getBodyShape()
Getter for the Earth shape.

Returns:
the Earth shape.

getVisibilityDetectorChoice

public int getVisibilityDetectorChoice()
Getter for the visibility detector choice.

Returns:
the visibility detector choice.

getTriggerCount

public int getTriggerCount()
Getter for the count from which the event must be triggered.

Specified by:
getTriggerCount in interface CustomTriggeredEventDetector
Returns:
the count from which the event must be triggered.

getAction

public org.orekit.propagation.events.EventDetector.Action getAction()
Getter for the action to be performed in case of event detection.

Specified by:
getAction in interface CustomEventDetector
Returns:
the action to be performed in case of event detection.

eventOccurred

public org.orekit.propagation.events.EventDetector.Action eventOccurred(org.orekit.propagation.SpacecraftState s,
                                                                        boolean increasing,
                                                                        boolean forward)
                                                                 throws org.orekit.errors.OrekitException

Specified by:
eventOccurred in interface org.orekit.propagation.events.EventDetector
Overrides:
eventOccurred in class fr.cnes.sirius.patrius.events.sensor.VisibilityFromStationDetector
Throws:
org.orekit.errors.OrekitException

resetState

public org.orekit.propagation.SpacecraftState resetState(org.orekit.propagation.SpacecraftState oldState)

Specified by:
resetState in interface org.orekit.propagation.events.EventDetector
Overrides:
resetState in class org.orekit.propagation.events.AbstractDetector

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2017. All rights reserved.