Skip to content

Better API for airborne/ground status #36

Description

@fixje

Currently, airborne/ground status in some messages can be checked with the following methods:

public boolean isOnGround()
public boolean isAirborne()

As the status might be unknown, both can return false. A solution which avoids cross references in the javadoc and implicit knowledge would just use a single method which can return null for an unknown status:

/**
 * @return true if airborne, false if on ground, null if unknown
 */
public Boolean isAirborne();

This needs to be changed in

  • AllCallReply
  • AltitudeReply
  • CommBAltitudeReply
  • IdentifyReply
  • CommBIdentifyReply

This is an incompatible API change for the next major release

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    v4.0Marked for inclusion in version 4.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions