2013-06-02 19:02:57 +02:00
|
|
|
package cc.arduino.packages;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import processing.app.helpers.PreferencesMap;
|
|
|
|
|
|
|
|
public interface Discovery {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set discovery preferences
|
|
|
|
*
|
|
|
|
* @param options
|
|
|
|
*/
|
|
|
|
public void setPreferences(PreferencesMap options);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Start discovery service
|
|
|
|
*
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
|
|
|
public void start() throws Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Stop discovery service
|
|
|
|
*/
|
2013-06-25 16:13:14 +02:00
|
|
|
public void stop() throws Exception;
|
2013-06-02 19:02:57 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the list of discovered ports.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public List<BoardPort> discovery();
|
|
|
|
|
|
|
|
}
|