public boolean isActive(){
  Date now=new Date();
  return startsAt != null && endsAt != null && now.after(startsAt) && now.before(endsAt);
}

public boolean isActive ( ) { Date now = new Date ( ) ; return startsAt != null && endsAt != null && now . after ( startsAt ) && now . before ( endsAt ) ; }
determines whether the airmapflight is a currently active flight
