Skip to content

Commit

Permalink
queueing: Moved submodule parameters into parent module.
Browse files Browse the repository at this point in the history
These parameters produced errors in the IDE, because they are not defined on the module interface.
  • Loading branch information
levy committed Feb 27, 2024
1 parent 67d36e3 commit 165fa1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/inet/queueing/common/PacketHistory.ned
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module PacketHistory like IPassivePacketSink, IActivePacketSource
{
parameters:
int size = default(100); // the number of packets to remember
queue.packetCapacity = default(size);
@display("i=block/passiveq");
gates:
input in @labels(push);
Expand All @@ -32,7 +33,6 @@ module PacketHistory like IPassivePacketSink, IActivePacketSource
}
queue: <default("DropHeadQueue")> like IPacketQueue {
parameters:
packetCapacity = default(size);
@display("p=100,200");
}
connections:
Expand Down
2 changes: 1 addition & 1 deletion src/inet/queueing/common/QueueingPacketDelayer.ned
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module QueueingPacketDelayer like IPacketDelayer
string clockModule = default(""); // relative path of a module that implements IClock; optional
volatile double delay @unit(s);
*.clockModule = default(absPath("^" + clockModule));
server.processingTime = default(delay);
@class(PacketDelayer);
@display("i=block/delay");
gates:
Expand All @@ -29,7 +30,6 @@ module QueueingPacketDelayer like IPacketDelayer
}
server: <default("PacketServer")> like IPacketServer {
parameters:
processingTime = default(delay);
@display("p=350,100");
}
connections:
Expand Down

0 comments on commit 165fa1d

Please sign in to comment.