1 package org.opentrafficsim.imb; 2 3 import nl.tno.imb.TByteBuffer; 4 5 /** 6 * Interface for objects that implement prepare and qWrite. 7 * <p> 8 * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 9 * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>. 10 * <p> 11 * @version $Revision$, $LastChangedDate$, by $Author$, 12 * initial version Oct 27, 2016 <br> 13 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 14 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 15 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a> 16 */ 17 public interface SelfWrapper 18 { 19 /** 20 * Perform the prepare operation. 21 * @param tByteBuffer TByteBuffer; the buffer to prepare for reception of the object that implements this interface 22 */ 23 public void prepare(TByteBuffer tByteBuffer); 24 25 /** 26 * Perform the qWrite operation. 27 * @param tByteBuffer TByteBuffer; the buffer on which to apply the qWrite operation 28 */ 29 public void qWrite(TByteBuffer tByteBuffer); 30 31 }