Class TLcdAircraftState

java.lang.Object
com.luciad.ais.model.procedure.TLcdAircraftState

public class TLcdAircraftState extends Object
Represents the current state of the aircraft flying a procedure. The state consists of position, course and altitude. The position can be flagged as invalid when the geometry calculator finds itself in a situation it can't handle properly. The state also includes the aircraft's performance characteristics, such as the climb rate and the turn radius.
  • Constructor Details

    • TLcdAircraftState

      public TLcdAircraftState()
      Default constructor. Marks the current state as invalid and sets default values for the aircraft performance settings.
  • Method Details

    • getCurrentPosition

      public ILcdPoint getCurrentPosition()
      Returns the current position of the aircraft. Do not use the returned coordinates if the state is not valid!
      Returns:
      the current position of the aircraft
    • getCurrentCourse

      public double getCurrentCourse()
      Returns the current course of the aircraft. The return value may be NaN if the course is currently invalid.
      Returns:
      the current course of the aircraft
    • getCurrentAltitude

      public double getCurrentAltitude()
      Returns the current altitude of the aircraft. The return value may be NaN if the altitude is currently invalid.
      Returns:
      the current altitude of the aircraft
    • invalidate

      public void invalidate()
      Invalidates the current state. This will result in the position being moved to the origin, and the course and altitude being set to NaN.
    • isStateValid

      public boolean isStateValid()
      Indicates whether or not the current state is valid. Position, course and altitude should not be used if this returns false.
      Returns:
      a boolean indicating whether or not the current state is valid
    • setCurrentPosition

      public void setCurrentPosition(ILcdPoint aPos)
      Moves the current position to the specified location.
      Parameters:
      aPos - the new aircraft position
    • setCurrentCourse

      public void setCurrentCourse(double aCourse)
      Sets the current course to the specified value. Set to NaN to indicate that the current course is unknown.
      Parameters:
      aCourse - the new course
    • setCurrentAltitude

      public void setCurrentAltitude(double aAltitude)
      Sets the current altitude to the specified value. Set to NaN to indicate that the current altitude is unknown.
      Parameters:
      aAltitude - the new altitude
    • getAircraftPerformanceSettings

      public TLcdAircraftPerformanceSettings getAircraftPerformanceSettings()
      Returns the current aircraft performance settings.
      Returns:
      an TLcdAircraftPerformanceSettings
    • setAircraftPerformanceSettings

      public void setAircraftPerformanceSettings(TLcdAircraftPerformanceSettings aPerformanceSettings)
      Sets the current aircraft performance settings.
      Parameters:
      aPerformanceSettings - an TLcdAircraftPerformanceSettings