|
@@ -338,14 +338,14 @@ public class Port implements Schedulable {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void simulateEvent() {
|
|
|
+ public void simulateEvent(long time) {
|
|
|
if(connection==null || connection.getProtocol()==null || connection.getLink()==null)
|
|
|
return;
|
|
|
|
|
|
/**
|
|
|
* Packets of the transfer initiated by this port
|
|
|
*/
|
|
|
- Collection<Packet> packets = connection.getProtocol().generateNextPackets(this, getEventTime(), false);
|
|
|
+ Collection<Packet> packets = connection.getProtocol().generateNextPackets(this, time, false);
|
|
|
|
|
|
//Packets encapsulated by Connection
|
|
|
packets = connection.encapsulatePackages(packets);
|