Variable-Length Functional Output Prediction And Boundary Detection For An Adaptive Flight Control Simulator