// Path: hackadrone-api/src/main/java/nl/ordina/jtech/hackadrone/io/Device.java
// public interface Device extends Handler {
// 
//     /**
//      * Sets the listener.
//      *
//      * @param commandListener the command listener to set
//      */
//     void setListener(CommandListener commandListener);
// 
// }
// 
// Path: hackadrone-api/src/main/java/nl/ordina/jtech/hackadrone/net/Connection.java
// public interface Connection {
// 
//     /**
//      * Connects.
//      *
//      * @throws IOException if the connection failed
//      */
//     void connect() throws IOException;
// 
//     /**
//      * Disconnects.
//      *
//      * @throws IOException if the disconnection failed
//      */
//     void disconnect() throws IOException;
// 
// }


import nl.ordina.jtech.hackadrone.io.Device;
import nl.ordina.jtech.hackadrone.net.Connection;
/*
 * Copyright (C) 2017 Ordina
 *
 * 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.
 */

package nl.ordina.jtech.hackadrone;


/**
 * Interface representing a drone.
 */
public interface Drone extends Connection {

    /**
     * Connects.
     *
     * @throws DroneException if the connection failed
     */
    @Override
    void connect() throws DroneException;

    /**
     * Disconnects.
     *
     * @throws DroneException if the disconnection failed
     */
    @Override
    void disconnect() throws DroneException;

    /**
     * Sends messages.
     *
     * @throws DroneException if sending the messages failed
     */
    void sendMessages() throws DroneException;

    /**
     * Starts the heartbeat.
     *
     * @throws DroneException if starting the heartbeat failed
     */
    void startHeartbeat() throws DroneException;

    /**
     * Stops the heartbeat.
     *
     * @throws DroneException if stopping the heartbeat failed
     */
    void stopHeartbeat() throws DroneException;

    /**
     * Starts the controls.
     *
     * @param device the device to use the controls from
     * @throws DroneException if starting the controls failed
     */
// Path: hackadrone-api/src/main/java/nl/ordina/jtech/hackadrone/io/Device.java
// public interface Device extends Handler {
// 
//     /**
//      * Sets the listener.
//      *
//      * @param commandListener the command listener to set
//      */
//     void setListener(CommandListener commandListener);
// 
// }
// 
// Path: hackadrone-api/src/main/java/nl/ordina/jtech/hackadrone/net/Connection.java
// public interface Connection {
// 
//     /**
//      * Connects.
//      *
//      * @throws IOException if the connection failed
//      */
//     void connect() throws IOException;
// 
//     /**
//      * Disconnects.
//      *
//      * @throws IOException if the disconnection failed
//      */
//     void disconnect() throws IOException;
// 
// }


// Path: hackadrone-api/src/main/java/nl/ordina/jtech/hackadrone/Drone.java
import nl.ordina.jtech.hackadrone.io.Device;
import nl.ordina.jtech.hackadrone.net.Connection;

/*
 * Copyright (C) 2017 Ordina
 *
 * 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.
 */

package nl.ordina.jtech.hackadrone;


/**
 * Interface representing a drone.
 */
public interface Drone extends Connection {

    /**
     * Connects.
     *
     * @throws DroneException if the connection failed
     */
    @Override
    void connect() throws DroneException;

    /**
     * Disconnects.
     *
     * @throws DroneException if the disconnection failed
     */
    @Override
    void disconnect() throws DroneException;

    /**
     * Sends messages.
     *
     * @throws DroneException if sending the messages failed
     */
    void sendMessages() throws DroneException;

    /**
     * Starts the heartbeat.
     *
     * @throws DroneException if starting the heartbeat failed
     */
    void startHeartbeat() throws DroneException;

    /**
     * Stops the heartbeat.
     *
     * @throws DroneException if stopping the heartbeat failed
     */
    void stopHeartbeat() throws DroneException;

    /**
     * Starts the controls.
     *
     * @param device the device to use the controls from
     * @throws DroneException if starting the controls failed
     */
    void startControls(Device device) throws DroneException;