|
@@ -66,6 +66,14 @@ public interface Link {
|
|
@Deprecated
|
|
@Deprecated
|
|
public void simulateTimeInterval(long startTime, long duration);
|
|
public void simulateTimeInterval(long startTime, long duration);
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Initializes the simulation interval, by clearing the previously generated
|
|
|
|
+ * packets and adds Packets of previous iterations, which are are part of this interval.
|
|
|
|
+ * @param startTime startTime of the simulation interval
|
|
|
|
+ * @param duration duration of the simulation interval
|
|
|
|
+ */
|
|
|
|
+ public void initSimulationInterval(long startTime, long duration);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Encapsulates the given Packets
|
|
* Encapsulates the given Packets
|
|
* @param packets Packets which should be encapsulated
|
|
* @param packets Packets which should be encapsulated
|
|
@@ -73,6 +81,15 @@ public interface Link {
|
|
*/
|
|
*/
|
|
public Collection<Packet> encapsulatePackages(Collection<Packet> packets);
|
|
public Collection<Packet> encapsulatePackages(Collection<Packet> packets);
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Time at the end of an simulation interval, to remove Packets, which are not in bound, sort the array
|
|
|
|
+ * or manipulate the packets slightly.
|
|
|
|
+ *
|
|
|
|
+ * @param startTime startTime of the simulation interval
|
|
|
|
+ * @param duration duration of the interval
|
|
|
|
+ */
|
|
|
|
+ public void finalizeSimulationInterval(long startTime, long duration);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Returns all packets which where sent during the last Simulation time step
|
|
* Returns all packets which where sent during the last Simulation time step
|
|
*
|
|
*
|