// Path: Source/src/de/tum/in/www1/jReto/module/api/Advertiser.java
// public interface Advertiser {
// 	/**
// 	* The Advertiser.Handler interface allows the Advertiser to inform its delegate about various events.
// 	*/
// 	public static interface Handler {
// 	    /** Called when the advertiser started advertising. */
// 		void onAdvertisingStarted(Advertiser advertiser);
// 	    /** Called when the advertiser stopped advertising. */
// 		void onAdvertisingStopped(Advertiser advertiser);
// 	    /** Called when the advertiser received an incoming connection from a remote peer. */
// 		void onConnection(Advertiser advertiser, Connection connection);
// 	}
// 	
// 	/** Sets the advertiser's delegate. */
// 	void setAdvertiserHandler(Handler handler);
// 	/** Returns the advertiser's delegate. */
// 	Handler getAdvertiserHandler();
//     /** Whether the advertiser is currently active. */
// 	boolean isAdvertising();
//     /** 
//     * Starts advertising.
//     * @param identifier A UUID identifying the local peer.
//     */
// 	void startAdvertisingWithPeerIdentifier(UUID identifier);
//     /**
//     * Stops advertising.
//     */
// 	void stopAdvertising();
// }
// 
// Path: Source/test/jReto/util/RunLoop.java
// public class RunLoop implements Executor {
// 	private BlockingQueue<Runnable> queue;
// 	private boolean running;
// 	private boolean executeImmediately;
// 	
// 	public RunLoop(boolean executeImmediately) {
// 		this.queue = new LinkedBlockingQueue<>();
// 		this.running = true;
// 		this.executeImmediately = executeImmediately;
// 	}
// 	
// 	public void execute(Runnable runnable) {
// 		if (this.executeImmediately) {
// 			runnable.run();
// 		} else {
// 			this.queue.add(runnable);
// 		}
// 	}
// 	
// 	public void start() {
// 		while (this.running) {
// 			try {
// 				this.queue.take().run();
// 			} catch (InterruptedException e) {
// 				// TODO Auto-generated catch block
// 				e.printStackTrace();
// 			}
// 		}
// 	}
// 	
// 	public void stop() {
// 		this.queue.add(new Runnable() {
// 			
// 			@Override
// 			public void run() {
// 				RunLoop.this.running = false;
// 			}
// 		});
// 	}
// }


import java.util.UUID;
import de.tum.in.www1.jReto.module.api.Advertiser;
import jReto.util.RunLoop;
package jReto.module.dummy;



public class DummyAdvertiser implements Advertiser {
	private DummyNetworkInterface networkInterface;
	private RunLoop runloop;
	private boolean isAdvertising;
// Path: Source/src/de/tum/in/www1/jReto/module/api/Advertiser.java
// public interface Advertiser {
// 	/**
// 	* The Advertiser.Handler interface allows the Advertiser to inform its delegate about various events.
// 	*/
// 	public static interface Handler {
// 	    /** Called when the advertiser started advertising. */
// 		void onAdvertisingStarted(Advertiser advertiser);
// 	    /** Called when the advertiser stopped advertising. */
// 		void onAdvertisingStopped(Advertiser advertiser);
// 	    /** Called when the advertiser received an incoming connection from a remote peer. */
// 		void onConnection(Advertiser advertiser, Connection connection);
// 	}
// 	
// 	/** Sets the advertiser's delegate. */
// 	void setAdvertiserHandler(Handler handler);
// 	/** Returns the advertiser's delegate. */
// 	Handler getAdvertiserHandler();
//     /** Whether the advertiser is currently active. */
// 	boolean isAdvertising();
//     /** 
//     * Starts advertising.
//     * @param identifier A UUID identifying the local peer.
//     */
// 	void startAdvertisingWithPeerIdentifier(UUID identifier);
//     /**
//     * Stops advertising.
//     */
// 	void stopAdvertising();
// }
// 
// Path: Source/test/jReto/util/RunLoop.java
// public class RunLoop implements Executor {
// 	private BlockingQueue<Runnable> queue;
// 	private boolean running;
// 	private boolean executeImmediately;
// 	
// 	public RunLoop(boolean executeImmediately) {
// 		this.queue = new LinkedBlockingQueue<>();
// 		this.running = true;
// 		this.executeImmediately = executeImmediately;
// 	}
// 	
// 	public void execute(Runnable runnable) {
// 		if (this.executeImmediately) {
// 			runnable.run();
// 		} else {
// 			this.queue.add(runnable);
// 		}
// 	}
// 	
// 	public void start() {
// 		while (this.running) {
// 			try {
// 				this.queue.take().run();
// 			} catch (InterruptedException e) {
// 				// TODO Auto-generated catch block
// 				e.printStackTrace();
// 			}
// 		}
// 	}
// 	
// 	public void stop() {
// 		this.queue.add(new Runnable() {
// 			
// 			@Override
// 			public void run() {
// 				RunLoop.this.running = false;
// 			}
// 		});
// 	}
// }


// Path: Source/test/jReto/module/dummy/DummyAdvertiser.java
import java.util.UUID;
import de.tum.in.www1.jReto.module.api.Advertiser;
import jReto.util.RunLoop;

package jReto.module.dummy;



public class DummyAdvertiser implements Advertiser {
	private DummyNetworkInterface networkInterface;
	private RunLoop runloop;
	private boolean isAdvertising;
	private Advertiser.Handler handler;