All Downloads are FREE. Search and download functionalities are using the official Maven repository.

joynr.vehicle.RadioBroadcastInterface Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/*
 *
 * Copyright (C) 2011 - 2016 BMW Car IT GmbH
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// #####################################################
//#######################################################
//###                                                 ###
//##    WARNING: This file is generated. DO NOT EDIT   ##
//##             All changes will be lost!             ##
//###                                                 ###
//#######################################################
// #####################################################
package joynr.vehicle;

import io.joynr.dispatcher.rpc.annotation.JoynrRpcBroadcast;
import io.joynr.dispatcher.rpc.JoynrBroadcastSubscriptionInterface;
import io.joynr.exceptions.SubscriptionException;
import io.joynr.proxy.Future;
import io.joynr.pubsub.subscription.BroadcastSubscriptionListener;
import joynr.OnChangeSubscriptionQos;
import joynr.BroadcastFilterParameters;

import joynr.vehicle.GeoPosition;
import joynr.vehicle.RadioStation;

public interface RadioBroadcastInterface extends JoynrBroadcastSubscriptionInterface, Radio {


public interface WeakSignalBroadcastListener extends BroadcastSubscriptionListener {
	public void onReceive(RadioStation weakSignalStation);
}

public class WeakSignalBroadcastAdapter implements WeakSignalBroadcastListener {
	public void onReceive(RadioStation weakSignalStation) {
		// empty implementation
	}
	public void onError(SubscriptionException error) {
		// empty implementation
	}
	public void onSubscribed(String subscriptionId) {
		// empty implementation
	}
}

@JoynrRpcBroadcast(broadcastName = "weakSignal")
abstract Future subscribeToWeakSignalBroadcast(
		WeakSignalBroadcastListener subscriptionListener,
		OnChangeSubscriptionQos subscriptionQos);

@JoynrRpcBroadcast(broadcastName = "weakSignal")
abstract Future subscribeToWeakSignalBroadcast(
		WeakSignalBroadcastListener subscriptionListener,
		OnChangeSubscriptionQos subscriptionQos,
		String subscriptionId);

abstract void unsubscribeFromWeakSignalBroadcast(String subscriptionId);

public interface NewStationDiscoveredBroadcastListener extends BroadcastSubscriptionListener {
	public void onReceive(RadioStation discoveredStation, GeoPosition geoPosition);
}

public class NewStationDiscoveredBroadcastAdapter implements NewStationDiscoveredBroadcastListener {
	public void onReceive(RadioStation discoveredStation, GeoPosition geoPosition) {
		// empty implementation
	}
	public void onError(SubscriptionException error) {
		// empty implementation
	}
	public void onSubscribed(String subscriptionId) {
		// empty implementation
	}
}

public class NewStationDiscoveredBroadcastFilterParameters extends BroadcastFilterParameters {
	public NewStationDiscoveredBroadcastFilterParameters() {};

	public NewStationDiscoveredBroadcastFilterParameters(String positionOfInterest, String radiusOfInterestArea, String hasTrafficService) {
		super.setFilterParameter("positionOfInterest", positionOfInterest);
		super.setFilterParameter("radiusOfInterestArea", radiusOfInterestArea);
		super.setFilterParameter("hasTrafficService", hasTrafficService);
	}
	public void setPositionOfInterest(String positionOfInterest) {
		super.setFilterParameter("positionOfInterest", positionOfInterest);
	}
	public String getPositionOfInterest() {
		return super.getFilterParameter("positionOfInterest");
	}
	public void setRadiusOfInterestArea(String radiusOfInterestArea) {
		super.setFilterParameter("radiusOfInterestArea", radiusOfInterestArea);
	}
	public String getRadiusOfInterestArea() {
		return super.getFilterParameter("radiusOfInterestArea");
	}
	public void setHasTrafficService(String hasTrafficService) {
		super.setFilterParameter("hasTrafficService", hasTrafficService);
	}
	public String getHasTrafficService() {
		return super.getFilterParameter("hasTrafficService");
	}
}

@JoynrRpcBroadcast(broadcastName = "newStationDiscovered")
abstract Future subscribeToNewStationDiscoveredBroadcast(
		NewStationDiscoveredBroadcastListener broadcastListener,
		OnChangeSubscriptionQos subscriptionQos,
		NewStationDiscoveredBroadcastFilterParameters filterParameters);

@JoynrRpcBroadcast(broadcastName = "newStationDiscovered")
abstract Future subscribeToNewStationDiscoveredBroadcast(
		NewStationDiscoveredBroadcastListener broadcastListener,
		OnChangeSubscriptionQos subscriptionQos,
		NewStationDiscoveredBroadcastFilterParameters filterParameters,
		String subscriptionId);

abstract void unsubscribeFromNewStationDiscoveredBroadcast(String subscriptionId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy