package osgi.enroute.trains.controller.api;

import org.osgi.util.promise.Promise;

/**
 * This controller controls a LOCATOR Segment
 */
public interface RFIDSegmentController extends SegmentController {

	/**
	 * Read an RFID. Resolves the promise when a new RFID is read.
	 * @return
	 */
	Promise<String> lastRFID();
}

@@ -199,16 +199,78 @@
 ller %7B%0A%0A
+%09/**%0A%09 * Return the last seen RFID%0A%09 */%0A%09String lastRFID();%0A%09%0A
 %09/**%0A%09 *
@@ -364,19 +364,19 @@
 String%3E 
-las
+nex
 tRFID();

Change method lastRFID to return immediately and have nextRFID method to return promise