Search in sources :

Example 6 with RadioStation

use of joynr.vehicle.RadioStation in project joynr by bmwcarit.

the class RadioProviderBean method getLocationOfCurrentStation.

@Override
public GetLocationOfCurrentStationReturned getLocationOfCurrentStation() {
    RadioStation currentStation = radioStationDatabase.getCurrentStation();
    GetLocationOfCurrentStationReturned result = null;
    if (currentStation != null) {
        result = new GetLocationOfCurrentStationReturned(currentStation.getCountry(), geoLocationService.getPositionFor(currentStation.getCountry()));
    }
    return result;
}
Also used : RadioStation(joynr.vehicle.RadioStation)

Aggregations

RadioStation (joynr.vehicle.RadioStation)6 Promise (io.joynr.provider.Promise)2 ProviderRuntimeException (joynr.exceptions.ProviderRuntimeException)2 GeoPosition (joynr.vehicle.GeoPosition)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 SuppressWarnings (edu.umd.cs.findbugs.annotations.SuppressWarnings)1 DiscoveryQos (io.joynr.arbitration.DiscoveryQos)1 DiscoveryException (io.joynr.exceptions.DiscoveryException)1 JoynrCommunicationException (io.joynr.exceptions.JoynrCommunicationException)1 JoynrRuntimeException (io.joynr.exceptions.JoynrRuntimeException)1 MessagingQos (io.joynr.messaging.MessagingQos)1 DeferredVoid (io.joynr.provider.DeferredVoid)1 AttributeSubscriptionAdapter (io.joynr.pubsub.subscription.AttributeSubscriptionAdapter)1 IOException (java.io.IOException)1 PostConstruct (javax.annotation.PostConstruct)1 ConsoleReader (jline.console.ConsoleReader)1 MulticastSubscriptionQos (joynr.MulticastSubscriptionQos)1 OnChangeSubscriptionQos (joynr.OnChangeSubscriptionQos)1 OnChangeWithKeepAliveSubscriptionQos (joynr.OnChangeWithKeepAliveSubscriptionQos)1 ApplicationException (joynr.exceptions.ApplicationException)1