From: <jhs...@us...> - 2009-01-28 09:32:53
|
Revision: 119 http://flexotask.svn.sourceforge.net/flexotask/?rev=119&view=rev Author: jhspring Date: 2009-01-28 09:32:50 +0000 (Wed, 28 Jan 2009) Log Message: ----------- added support for peek() and peek(index) Modified Paths: -------------- trunk/flexotask-generic/src/com/ibm/realtime/flexotask/FlexotaskInputPort.java Modified: trunk/flexotask-generic/src/com/ibm/realtime/flexotask/FlexotaskInputPort.java =================================================================== --- trunk/flexotask-generic/src/com/ibm/realtime/flexotask/FlexotaskInputPort.java 2009-01-23 15:38:10 UTC (rev 118) +++ trunk/flexotask-generic/src/com/ibm/realtime/flexotask/FlexotaskInputPort.java 2009-01-28 09:32:50 UTC (rev 119) @@ -27,4 +27,19 @@ * @return the most recent value on the port */ public T getValue(); + + /** + * Retrieves the most recent value of the InputPort or the buffer, if the + * buffer is present. The value is not removed. + * @return the value. + */ + public T peek(); + + /** + * Retrieves the most recent value of the InputPort or the n'th value of the + * buffer, if the buffer is present, without removing it. + * @param index the n'th value to be retrieved + * @return the value. + */ + public T peek(int index); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |