public Predictor circuit ( Location transmitter , Location receiver , boolean shorter ) { this . receiverLocation = receiver ; input . add ( new CommandLine <> ( CIRCUIT , 5 , Math . abs ( transmitter . getLatitude ( ) ) , transmitter . getLatitudeNS ( ) , Math . abs ( transmitter . getLongitude ( ) ) , transmitter . getLongitudeWE ( ) , Math . abs ( receiver . getLatitude ( ) ) , receiver . getLatitudeNS ( ) , Math . abs ( receiver . getLongitude ( ) ) , receiver . getLongitudeWE ( ) , shorter ? 0 : 1 ) ) ; return this ; }
The CIRCUIT command contains the geographic coordinates of the transmitter and receiver and a variable to indicate the user s choice between shorter or longer great circle paths from the transmitter to the receiver .