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

org.bidib.wizard.gateway.service.ProxyConnectionAdapter Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
package org.bidib.wizard.gateway.service;

import org.bidib.jbidibc.messages.HostAdapter;
import org.bidib.jbidibc.messages.exception.ProtocolException;
import org.bidib.jbidibc.messages.message.BidibMessageInterface;
import org.bidib.wizard.api.model.connection.AbstractMessageEvent;
import org.bidib.wizard.gateway.model.connection.ProxyBidibConnection;

public interface ProxyConnectionAdapter {

    /**
     * Process the bidib message that was received from the guest.
     * 
     * @param bidibProxyConnection
     *            the proxy connection
     * @param distributedHostAdapter
     *            the host adapter
     * @param bidibMessage
     *            the bidib message
     * @throws ProtocolException
     */
    void processBidibMessageFromGuest(
        final ProxyBidibConnection bidibProxyConnection,
        final HostAdapter distributedHostAdapter, final BidibMessageInterface bidibMessage)
        throws ProtocolException;

    /**
     * Handle the message event that signals a change from the node on the bus.
     * 
     * @param bidibProxyConnection
     *            the proxy connection instance
     * @param distributedHostAdapter
     *            the host adapter
     * @param event
     *            the message event
     */
    void handleMessageEventFromBus(
        final ProxyBidibConnection bidibProxyConnection,
        final HostAdapter distributedHostAdapter, final AbstractMessageEvent event);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy