|
@@ -95,6 +95,7 @@ public interface Connection {
|
|
* Duration of the simulation interval in milliseconds
|
|
* Duration of the simulation interval in milliseconds
|
|
* @return packets that were sent in this interval
|
|
* @return packets that were sent in this interval
|
|
*/
|
|
*/
|
|
|
|
+ @Deprecated
|
|
public Collection<Packet> simulateTimeInterval(long startTime, long duration);
|
|
public Collection<Packet> simulateTimeInterval(long startTime, long duration);
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -107,6 +108,13 @@ public interface Connection {
|
|
*/
|
|
*/
|
|
public Collection<Packet> getTerminationPackages(long startTime);
|
|
public Collection<Packet> getTerminationPackages(long startTime);
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Encapsulates the given Packets
|
|
|
|
+ * @param packets Packets which should be encapsulated
|
|
|
|
+ * @return Encapsulated Packets
|
|
|
|
+ */
|
|
|
|
+ public Collection<Packet> encapsulatePackages(Collection<Packet> packets);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Returns the Protocol which is used on this Connection
|
|
* Returns the Protocol which is used on this Connection
|
|
*
|
|
*
|