Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wizards: updated wizards so generated code is up to date now.

  • Loading branch information...
commit c55b625116192deae7411772c4d1249070f3bdd7 1 parent d95ae26
@rhornig rhornig authored
View
19 templates/NewAdhocWirelessSimulationWizard/Net80211.ned.ftl
@@ -7,9 +7,9 @@ ${bannerComment}
// parametric: ${parametric?string}
// static: ${static?string}
-import inet.networklayer.autorouting.FlatNetworkConfigurator;
-import inet.nodes.adhoc.MobileHost;
-import inet.world.ChannelControl;
+import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator;
+import inet.nodes.inet.AdhocHost;
+import inet.world.radio.ChannelControl;
network ${targetTypeName}
@@ -18,19 +18,16 @@ network ${targetTypeName}
<#if parametric>
int numHosts;
</#if>
- double playgroundSizeX;
- double playgroundSizeY;
-
submodules:
<#if parametric>
- host[numHosts]: MobileHost
+ host[numHosts]: AdhocHost
{
parameters:
@display("r=,,#707070");
}
<#else>
<#list 0..numOfHosts?number-1 as i>
- host${i}: MobileHost
+ host${i}: AdhocHost
{
parameters:
@display("r=,,#707070");
@@ -38,15 +35,13 @@ network ${targetTypeName}
</#list>
</#if>
- channelcontrol: ChannelControl
+ channelControl: ChannelControl
{
parameters:
- playgroundSizeX = playgroundSizeX;
- playgroundSizeY = playgroundSizeY;
@display("p=60,50");
}
- configurator: FlatNetworkConfigurator
+ configurator: IPv4NetworkConfigurator
{
@display("p=140,50");
}
View
73 templates/NewAdhocWirelessSimulationWizard/omnetpp.ini.ftl
@@ -14,53 +14,54 @@ network = ${targetTypeName}
num-rngs = 3
**.mobility.rng-0 = 1
-**.wlan.mac.rng-0 = 2
+**.wlan[*].mac.rng-0 = 2
#debug-on-errors = true
tkenv-plugin-path = ../../../etc/plugins
-*.playgroundSizeX = 600
-*.playgroundSizeY = 400
-**.debug = true
-**.coreDebug = false
-**.${host_all}.**.channelNumber = 0
+**.channelNumber = 0
# channel physical parameters
-*.channelcontrol.carrierFrequency = 2.4GHz
-*.channelcontrol.pMax = 2.0mW
-*.channelcontrol.sat = -110dBm
-*.channelcontrol.alpha = 2
-*.channelcontrol.numChannels = 1
+*.channelControl.carrierFrequency = 2.4GHz
+*.channelControl.pMax = 2.0mW
+*.channelControl.sat = -110dBm
+*.channelControl.alpha = 2
+*.channelControl.numChannels = 1
# mobility
-**.${host_all}.mobility.x = -1
-**.${host_all}.mobility.y = -1
-
-**.${host_all}.mobilityType = "inet.mobility.MassMobility"
-**.${host_all}.mobility.changeInterval = truncnormal(2s, 0.5s)
-**.${host_all}.mobility.changeAngleBy = normal(0deg, 30deg)
-**.${host_all}.mobility.speed = truncnormal(20mps, 8mps)
-**.${host_all}.mobility.updateInterval = 100ms
+**.${host_all}.mobilityType = "MassMobility"
+**.mobility.constraintAreaMinZ = 0m
+**.mobility.constraintAreaMaxZ = 0m
+**.mobility.constraintAreaMinX = 0m
+**.mobility.constraintAreaMinY = 0m
+**.mobility.constraintAreaMaxX = 600m
+**.mobility.constraintAreaMaxY = 400m
+**.mobility.changeInterval = truncnormal(2s, 0.5s)
+**.mobility.changeAngleBy = normal(0deg, 30deg)
+**.mobility.speed = truncnormal(20mps, 8mps)
+**.mobility.updateInterval = 100ms
# ping app (${host_0} pinged by others)
-*.${host_0}.pingApp.destAddr = ""
-*.${host_all}.pingApp.destAddr = "${host_0}"
-**.pingApp.startTime = uniform(1s,5s)
+*.${host_0}.pingApp[0].destAddr = ""
+*.${host_all}.numPingApps = 1
+*.${host_all}.pingApp[0].destAddr = "${host_0}"
+*.${host_all}.pingApp[0].startTime = uniform(1s,5s)
+*.${host_all}.pingApp[0].printPing = true
# nic settings
-**.wlan.mgmt.frameCapacity = 10
-**.wlan.mac.address = "auto"
-**.wlan.mac.maxQueueSize = 14
-**.wlan.mac.rtsThresholdBytes = 3000B
-**.wlan.mac.bitrate = 2Mbps
-**.wlan.mac.retryLimit = 7
-**.wlan.mac.cwMinData = 7
-**.wlan.mac.cwMinBroadcast = 31
+**.wlan[*].bitrate = 2Mbps
+
+**.wlan[*].mgmt.frameCapacity = 10
+**.wlan[*].mac.address = "auto"
+**.wlan[*].mac.maxQueueSize = 14
+**.wlan[*].mac.rtsThresholdBytes = 3000B
+**.wlan[*].mac.retryLimit = 7
+**.wlan[*].mac.cwMinData = 7
+**.wlan[*].mac.cwMinMulticast = 31
-**.wlan.radio.bitrate = 2Mbps
-**.wlan.radio.transmitterPower = 2mW
-**.wlan.radio.thermalNoise = -110dBm
-**.wlan.radio.sensitivity = -85mW
-**.wlan.radio.pathLossAlpha = 2
-**.wlan.radio.snirThreshold = 4dB
+**.wlan[*].radio.transmitterPower = 2mW
+**.wlan[*].radio.thermalNoise = -110dBm
+**.wlan[*].radio.sensitivity = -85dBm
+**.wlan[*].radio.pathLossAlpha = 2
+**.wlan[*].radio.snirThreshold = 4dB
View
17 templates/NewInetSimulationWizard/NewInetNetwork.ned.ftl
@@ -9,7 +9,8 @@ package ${nedPackageName};
<#assign inetX = "inet">
<#assign hostModule = "StandardHost">
<#assign routerModule = "Router">
- <#assign configuratorModule = "FlatNetworkConfigurator">
+ <#assign configuratorModule = "IPv4NetworkConfigurator">
+import inet.networklayer.autorouting.ipv4.${configuratorModule};
</#if>
<#if ipv6Layer>
@@ -17,6 +18,7 @@ package ${nedPackageName};
<#assign hostModule = "StandardHost6">
<#assign routerModule = "Router6">
<#assign configuratorModule = "FlatNetworkConfigurator6">
+import inet.networklayer.autorouting.ipv6.${configuratorModule};
</#if>
<#if (numClients?number <= 3) >
@@ -25,7 +27,6 @@ package ${nedPackageName};
<#assign srvXpos = 10+numClients?number*30>
</#if>
-import inet.networklayer.autorouting.${configuratorModule};
import inet.nodes.${inetX}.${routerModule};
import inet.nodes.${inetX}.${hostModule};
import ned.DatarateChannel;
@@ -35,9 +36,7 @@ network ${targetTypeName}
types:
channel Channel extends DatarateChannel
{
-<#if ipv4Layer>
datarate = 100Mbps;
-</#if>
delay = 0.1us;
}
@@ -68,19 +67,9 @@ network ${targetTypeName}
}
</#list>
-<#if ipv4Layer>
- connections:
- server.pppg++ <--> Channel <--> router.pppg++;
- <#list 1..numClients?number as i>
- client${i}.pppg++ <--> Channel <--> router.pppg++;
- </#list>
-</#if>
-
-<#if ipv6Layer>
connections:
server.ethg++ <--> Channel <--> router.ethg++;
<#list 1..numClients?number as i>
client${i}.ethg++ <--> Channel <--> router.ethg++;
</#list>
-</#if>
}
View
92 templates/NewInetSimulationWizard/omnetpp.ini.ftl
@@ -1,13 +1,8 @@
-<#if ipv4Layer>
- <#assign startTime = 0.1>
-</#if>
-<#if ipv6Layer>
- <#assign startTime = 3>
-</#if>
+<#assign startTime = 0.1>
[General]
network = ${targetTypeName}
-total-stack = 7MB
+total-stack = 7MiB
tkenv-plugin-path = ../../../etc/plugins
#debug-on-errors = true
#record-eventlog = true
@@ -17,26 +12,26 @@ tkenv-plugin-path = ../../../etc/plugins
<#if tcpTraffic>
# TCP Traffic Configuration:
-**.server*.tcpType = "${serverTcpLayer}" # TCP/TCP_old/TCP_NSC
-**.client*.tcpType = "${clientTcpLayer}" # TCP/TCP_old/TCP_NSC
+**.server*.tcpType = "${serverTcpLayer}" # "TCP", "TCP_lwIP", "TCP_NSC"
+**.client*.tcpType = "${clientTcpLayer}" # "TCP", "TCP_lwIP", "TCP_NSC"
<#assign appIdx = 0 >
<#if tcpDataTraffic>
-**.server*.tcpAppType = "TCPEchoApp" #//TODO must set only tcpApp[${appIdx}]
+**.server*.tcpApp[${appIdx}].typename = "TCPEchoApp" #//TODO must set only tcpApp[${appIdx}]
**.server*.tcpApp[${appIdx}].address = ""
-**.server*.tcpApp[${appIdx}].port = 1000
+**.server*.tcpApp[${appIdx}].localPort = 1000
**.server*.tcpApp[${appIdx}].echoFactor = 2.0
**.server*.tcpApp[${appIdx}].echoDelay = 0
-**.client*.tcpAppType = "TCPSessionApp" #//TODO must set only tcpApp[${appIdx}]
+**.client*.tcpApp[${appIdx}].typename = "TCPSessionApp" #//TODO must set only tcpApp[${appIdx}]
**.client*.tcpApp[${appIdx}].active = true
**.client*.tcpApp[${appIdx}].address = ""
-**.client*.tcpApp[${appIdx}].port = -1
+**.client*.tcpApp[${appIdx}].localPort = -1
**.client*.tcpApp[${appIdx}].connectAddress = "server"
**.client*.tcpApp[${appIdx}].connectPort = 1000
**.client*.tcpApp[${appIdx}].tOpen = ${startTime}s
**.client*.tcpApp[${appIdx}].tSend = ${startTime+0.1}s
-**.client*.tcpApp[${appIdx}].sendBytes = 100MB
+**.client*.tcpApp[${appIdx}].sendBytes = 100MiB
**.client*.tcpApp[${appIdx}].sendScript = ""
**.client*.tcpApp[${appIdx}].tClose = 0
<#assign appIdx = appIdx + 1 >
@@ -44,9 +39,9 @@ tkenv-plugin-path = ../../../etc/plugins
<#if telnetTraffic>
# tcp apps
-**.client*.tcpAppType = "TelnetApp" #//TODO must set only tcpApp[${appIdx}]
+**.client*.tcpApp[${appIdx}].typename = "TelnetApp" #//TODO must set only tcpApp[${appIdx}]
**.client*.tcpApp[${appIdx}].address = ""
-**.client*.tcpApp[${appIdx}].port = 23
+**.client*.tcpApp[${appIdx}].localPort = 23
#IP address intentionally set incorrectly
**.client*.tcpApp[${appIdx}].connectAddress = "server"
**.client*.tcpApp[${appIdx}].connectPort = 1000
@@ -59,34 +54,13 @@ tkenv-plugin-path = ../../../etc/plugins
**.client*.tcpApp[${appIdx}].idleInterval = truncnormal(3600s,1200s)
**.client*.tcpApp[${appIdx}].reconnectInterval = 30s
-**.server*.tcpAppType = "TCPGenericSrvApp" #//TODO must set only tcpApp[${appIdx}]
+**.server*.tcpApp[${appIdx}].typename = "TCPGenericSrvApp" #//TODO must set only tcpApp[${appIdx}]
**.server*.tcpApp[${appIdx}].address = ""
-**.server*.tcpApp[${appIdx}].port = -1
+**.server*.tcpApp[${appIdx}].localPort = 1000
**.server*.tcpApp[${appIdx}].replyDelay = 0
<#assign appIdx = appIdx + 1 >
</#if>
-# tcp settings for TCP / TCP_old
-<#if serverTcpLayer == "TCP" || serverTcpLayer == "TCP_old" >
-<#if telnetTraffic>
-**.server*.tcp.sendQueueClass = "TCPMsgBasedSendQueue"
-**.server*.tcp.receiveQueueClass = "TCPMsgBasedRcvQueue"
-<#else>
-#**.server*.tcp.sendQueueClass = "TCPVirtualDataSendQueue"
-#**.server*.tcp.receiveQueueClass = "TCPVirtualDataRcvQueue"
-</#if>
-</#if>
-
-<#if clientTcpLayer == "TCP" || clientTcpLayer == "TCP_old" >
-<#if telnetTraffic>
-**.client*.tcp.sendQueueClass = "TCPMsgBasedSendQueue"
-**.client*.tcp.receiveQueueClass = "TCPMsgBasedRcvQueue"
-<#else>
-#**.client*.tcp.sendQueueClass = "TCPVirtualDataSendQueue"
-#**.client*.tcp.receiveQueueClass = "TCPVirtualDataRcvQueue"
-</#if>
-</#if>
-
**.server*.numTcpApps = ${appIdx}
**.client*.numTcpApps = ${appIdx}
# end of TCP Traffic Configuration
@@ -96,14 +70,14 @@ tkenv-plugin-path = ../../../etc/plugins
# Video Stream UDP Traffic Configuration:
**.server*.numUdpApps = 1
-**.server*.udpAppType = "UDPVideoStreamSvr"
-**.server*.udpApp[*].videoSize = 100MB
-**.server*.udpApp[*].serverPort = 3088
-**.server*.udpApp[*].waitInterval = 10ms
+**.server*.udpApp[*].typename = "UDPVideoStreamSvr"
+**.server*.udpApp[*].videoSize = 100MiB
+**.server*.udpApp[*].localPort = 3088
+**.server*.udpApp[*].sendInterval = 10ms
**.server*.udpApp[*].packetLen = 1000B
**.client*.numUdpApps = 1
-**.client*.udpAppType = "UDPVideoStreamCli"
+**.client*.udpApp[*].typename = "UDPVideoStreamCli"
**.client*.udpApp[*].serverAddress = "server"
**.client*.udpApp[*].localPort = 9999
**.client*.udpApp[*].serverPort = 3088
@@ -114,30 +88,30 @@ tkenv-plugin-path = ../../../etc/plugins
<#if pingTraffic>
# ping app (server pinged by others)
-**.server*.pingApp.destAddr = ""
-**.client*.pingApp.destAddr = "server"
-**.client*.pingApp.interval = 50ms
-**.client*.pingApp.startTime = ${startTime}s
+**.client*.numPingApps = 1
+**.client*.pingApp[*].destAddr = "server"
+**.client*.pingApp[*].sendInterval = 50ms
+**.client*.pingApp[*].startTime = ${startTime}s
+**.client*.pingApp[*].printPing = true
</#if>
<#if sctpTraffic && ipv4Layer>
# SCTP Traffic Configuration:
**.server*.numSctpApps = 1
-**.server*.sctpAppType = "SCTPServer"
+**.server*.sctpApp[*].typename = "SCTPServer"
**.server*.sctpApp[0].address = ""
-**.server*.sctpApp[0].port = 1000
+**.server*.sctpApp[0].localPort = 1000
**.server*.sctpApp[0].numPacketsToReceivePerClient = 30
**.server*.sctpApp[0].echoFactor = 0
**.client*.numSctpApps = 1
-**.client*.sctpAppType = "SCTPClient"
+**.client*.sctpApp[*].typename = "SCTPClient"
**.client*.sctpApp[0].address = ""
**.client*.sctpApp[0].connectAddress = "server"
**.client*.sctpApp[0].primaryPath = "server"
-**.client*.sctpApp[0].port = -1
+**.client*.sctpApp[0].localPort = -1
**.client*.sctpApp[0].connectPort = 1000
-**.client*.sctpApp[0].startTime = exponential(0.1s)
**.client*.sctpApp[0].numRequestsPerSession = 30
**.client*.sctpApp[0].requestLength = 1000
**.client*.sctpApp[0].thinkTime = exponential(0.1s)
@@ -147,19 +121,7 @@ tkenv-plugin-path = ../../../etc/plugins
# end of SCTP Traffic Configuration
</#if>
-<#if ipv4Layer>
-# ppp NIC configuration
-**.ppp[*].queueType = "DropTailQueue" # in routers
-**.ppp[*].queue.frameCapacity = 10 # in routers
-</#if>
-
-<#if ipv6Layer>
# ip settings
# Ethernet NIC configuration
**.eth[*].queueType = "DropTailQueue" # in routers
-**.eth[*].queue.frameCapacity = 10 # in routers
-
-**.eth[*].mac.txrate = 10Mbps
-**.eth[*].mac.duplexEnabled = true
-</#if>
View
10 templates/NewInetSimulationWizard/wizardpage.xswt
@@ -61,7 +61,7 @@
<layout x:class="GridLayout"/>
<x:children>
<!-- noneTcpTraffic? -->
- <button x:id="noneTcpTraffic" text="None traffic on TCP" x:style="RADIO">
+ <button x:id="noneTcpTraffic" text="No traffic on TCP" x:style="RADIO">
<layoutData x:class="GridData" horizontalSpan="2"/>
</button>
@@ -77,19 +77,19 @@
</x:children>
</group>
- <!-- serverTcpLayer:TCP/TCP_old/TCP_NSC -->
+ <!-- serverTcpLayer: "TCP", "TCP_lwIP", "TCP_NSC" -->
<label text="Server TCP layer:"/>
<combo x:id="serverTcpLayer" x:style="BORDER|READ_ONLY">
<add x:p0="TCP"/>
- <add x:p0="TCP_old"/>
+ <add x:p0="TCP_lwIP"/>
<add x:p0="TCP_NSC"/>
</combo>
- <!-- clientTcpLayer:TCP/TCP_old/TCP_NSC -->
+ <!-- clientTcpLayer: "TCP", "TCP_lwIP", "TCP_NSC" -->
<label text="Client TCP layer:"/>
<combo x:id="clientTcpLayer" x:style="BORDER|READ_ONLY">
<add x:p0="TCP"/>
- <add x:p0="TCP_old"/>
+ <add x:p0="TCP_lwIP"/>
<add x:p0="TCP_NSC"/>
</combo>
View
24 templates/NewManagedWirelessSimulationWizard/Lan80211.ned.ftl
@@ -7,10 +7,10 @@ package ${nedPackageName};
// numOfHosts: ${numOfHosts}
-import inet.networklayer.autorouting.FlatNetworkConfigurator;
-import inet.nodes.wireless.WirelessAPSimplified;
-import inet.nodes.wireless.WirelessHostSimplified;
-import inet.world.ChannelControl;
+import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator;
+import inet.nodes.inet.WirelessHost;
+import inet.nodes.wireless.AccessPoint;
+import inet.world.radio.ChannelControl;
network ${targetTypeName}
@@ -19,41 +19,35 @@ network ${targetTypeName}
<#if parametric>
int numOfHosts;
</#if>
- int playgroundSizeX;
- int playgroundSizeY;
submodules:
<#if parametric>
- host[numOfHosts]: WirelessHostSimplified
+ host[numOfHosts]: WirelessHost
{
@display("r=,,#707070");
}
<#else>
<#list 0..numOfHosts?number-1 as i>
- host${i}: WirelessHostSimplified
+ host${i}: WirelessHost
{
@display("r=,,#707070");
}
</#list>
</#if>
- ap: WirelessAPSimplified
+ ap: AccessPoint
{
@display("p=213,174;r=,,#707070");
}
- channelcontrol: ChannelControl
+ channelControl: ChannelControl
{
- playgroundSizeX = playgroundSizeX;
- playgroundSizeY = playgroundSizeY;
numChannels = 2;
@display("p=61,46");
}
- configurator: FlatNetworkConfigurator
+ configurator: IPv4NetworkConfigurator
{
- networkAddress = "145.236.0.0";
- netmask = "255.255.0.0";
@display("p=140,50");
}
}
View
80 templates/NewManagedWirelessSimulationWizard/omnetpp.ini.ftl
@@ -13,28 +13,24 @@ network = ${targetTypeName}
#debug-on-errors = true
tkenv-plugin-path = ../../../etc/plugins
-*.playgroundSizeX = 600
-*.playgroundSizeY = 400
-**.debug = true
+**.mobility.constraintAreaMinZ = 0m
+**.mobility.constraintAreaMaxZ = 0m
+**.mobility.constraintAreaMinX = 0m
+**.mobility.constraintAreaMinY = 0m
+**.mobility.constraintAreaMaxX = 600m
+**.mobility.constraintAreaMaxY = 400m
+**.debug = false
**.coreDebug = false
+
**.channelNumber = 0
-**.mobility.x = -1
-**.mobility.y = -1
# channel physical parameters
-*.channelcontrol.carrierFrequency = 2.4GHz
-*.channelcontrol.pMax = 20.0mW
-*.channelcontrol.sat = -110dBm
-*.channelcontrol.alpha = 2
-
-# access point
-**.ap.wlan.mac.address = "10:00:00:00:00:00"
-**.${host_all}.**.mgmt.accessPointAddress = "10:00:00:00:00:00"
-**.mgmt.frameCapacity = 100
+*.channelControl.carrierFrequency = 2.4GHz
+*.channelControl.pMax = 20.0mW
+*.channelControl.sat = -110dBm
+*.channelControl.alpha = 2
# mobility
-**.${host_all}.mobility.x = -1
-**.${host_all}.mobility.y = -1
**.${host_all}.mobilityType = "MassMobility"
**.${host_all}.mobility.changeInterval = truncnormal(2s, 0.5s)
@@ -45,13 +41,13 @@ tkenv-plugin-path = ../../../etc/plugins
<#if hasUdpApp>
# udp app
**.numUdpApps = 1
-**.${host_0}.udpAppType = "UDPVideoStreamSvr"
-**.${host_0}.udpApp[*].videoSize = 10MB
+**.${host_0}.udpApp[*].typename = "UDPVideoStreamSvr"
+**.${host_0}.udpApp[*].videoSize = 10MiB
**.${host_0}.udpApp[*].serverPort = 3088
-**.${host_0}.udpApp[*].waitInterval = 10ms
+**.${host_0}.udpApp[*].sendInterval = 10ms
**.${host_0}.udpApp[*].packetLen = 1000B
-**.${host_all}.udpAppType = "UDPVideoStreamCli"
+**.${host_all}.udpApp[*].typename = "UDPVideoStreamCli"
**.${host_all}.udpApp[*].serverAddress = "${host_0}"
**.${host_all}.udpApp[*].localPort = 9999
**.${host_all}.udpApp[*].serverPort = 3088
@@ -60,50 +56,40 @@ tkenv-plugin-path = ../../../etc/plugins
<#if hasPingApp>
# ping app (${host_0} pinged by others)
-*.${host_0}.pingApp.destAddr = ""
-*.${host_all}.pingApp.destAddr = "${host_0}"
-**.pingApp.interval = 10ms
-**.pingApp.startTime = uniform(0s,0.1s)
+**.numPingApps = 1
+*.${host_0}.pingApp[*].destAddr = ""
+*.${host_all}.pingApp[*].destAddr = "${host_0}"
+**.pingApp[*].sendInterval = 10ms
+**.pingApp[*].startTime = uniform(0s,0.1s)
</#if>
<#if hasTcpApp>
-**.${host_0}.tcpType = "${serverTcpLayer}" # TCP/TCP_old/TCP_NSC
-**.${host_all}.tcpType = "${clientTcpLayer}" # TCP/TCP_old/TCP_NSC
+**.${host_0}.tcpType = "${serverTcpLayer}" # TCP/TCP_lwIP/TCP_NSC
+**.${host_all}.tcpType = "${clientTcpLayer}" # TCP/TCP_lwIP/TCP_NSC
# tcp apps
**.${host_0}.numTcpApps = 1
-**.${host_0}.tcpAppType = "TCPSinkApp"
-**.${host_0}.tcpApp[0].port = 1000
+**.${host_0}.tcpApp[0].typename = "TCPSinkApp"
**.${host_all}.numTcpApps = 1
-**.${host_all}.tcpAppType = "TCPSessionApp" # ftp
-**.${host_all}.tcpApp[0].active = true
+**.${host_all}.tcpApp[0].typename = "TCPSessionApp" # ftp
**.${host_all}.tcpApp[0].connectAddress = "${host_0}"
-**.${host_all}.tcpApp[0].connectPort = 1000
-**.${host_all}.tcpApp[0].tOpen = 0
-**.${host_all}.tcpApp[0].tSend = 0
-**.${host_all}.tcpApp[0].sendBytes = 100MB
-**.${host_all}.tcpApp[0].tClose = 0
-**.tcpApp[*].address = ""
-**.tcpApp[*].port = -1
-**.tcpApp[*].sendScript = ""
</#if>
-
# nic settings
+**.bitrate = 2Mbps
+
**.mac.address = "auto"
**.mac.maxQueueSize = 14
**.mac.rtsThresholdBytes = 3000B
-**.mac.bitrate = 2Mbps
-**.wlan.mac.retryLimit = 7
-**.wlan.mac.cwMinData = 7
-**.wlan.mac.cwMinBroadcast = 31
+**.wlan[*].mac.retryLimit = 7
+**.wlan[*].mac.cwMinData = 7
+**.wlan[*].mac.cwMinMulticast = 31
-**.radio.bitrate = 2Mbps
**.radio.transmitterPower = 20.0mW
**.radio.carrierFrequency = 2.4GHz
**.radio.thermalNoise = -110dBm
-**.radio.sensitivity = -85mW
+**.radio.sensitivity = -85dBm
**.radio.pathLossAlpha = 2
**.radio.snirThreshold = 4dB
@@ -111,8 +97,8 @@ tkenv-plugin-path = ../../../etc/plugins
**.relayUnitType = "MACRelayUnitNP"
**.relayUnit.addressTableSize = 100
**.relayUnit.agingTime = 120s
-**.relayUnit.bufferSize = 1MB
-**.relayUnit.highWatermark = 512KB
+**.relayUnit.bufferSize = 1MiB
+**.relayUnit.highWatermark = 512KiB
**.relayUnit.pauseUnits = 300 # pause for 300*512 bit (19200 byte) time
**.relayUnit.addressTableFile = ""
**.relayUnit.numCPUs = 2
View
8 templates/NewManagedWirelessSimulationWizard/wizardpage.xswt
@@ -69,19 +69,19 @@
</x:children>
</group>
- <!-- serverTcpLayer:TCP/TCP_old/TCP_NSC -->
+ <!-- serverTcpLayer: "TCP", "TCP_lwIP", "TCP_NSC" -->
<label text="Server TCP layer:"/>
<combo x:id="serverTcpLayer" x:style="BORDER|READ_ONLY">
<add x:p0="TCP"/>
- <add x:p0="TCP_old"/>
+ <add x:p0="TCP_lwIP"/>
<add x:p0="TCP_NSC"/>
</combo>
- <!-- clientTcpLayer:TCP/TCP_old/TCP_NSC -->
+ <!-- clientTcpLayer: "TCP", "TCP_lwIP", "TCP_NSC" -->
<label text="Client TCP layer:"/>
<combo x:id="clientTcpLayer" x:style="BORDER|READ_ONLY">
<add x:p0="TCP"/>
- <add x:p0="TCP_old"/>
+ <add x:p0="TCP_lwIP"/>
<add x:p0="TCP_NSC"/>
</combo>
View
19 templates/NewWirelessHandoverSimulationWizard/HandoverNetwork.ned.ftl
@@ -5,17 +5,14 @@ ${bannerComment}
package ${nedPackageName};
</#if>
-import inet.networklayer.autorouting.FlatNetworkConfigurator;
-import inet.nodes.wireless.WirelessAP;
-import inet.nodes.wireless.WirelessHost;
-import inet.world.ChannelControl;
-
+import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator;
+import inet.nodes.inet.WirelessHost;
+import inet.nodes.wireless.AccessPoint;
+import inet.world.radio.ChannelControl;
network ${targetTypeName}
{
parameters:
- double playgroundSizeX;
- double playgroundSizeY;
submodules:
host: WirelessHost
@@ -24,20 +21,18 @@ network ${targetTypeName}
}
<#list 1..numAccessPoints?number as i>
- ap${i}: WirelessAP
+ ap${i}: AccessPoint
{
@display("p=${i*300-200},200;r=,,#707070");
}
</#list>
- channelcontrol: ChannelControl
+ channelControl: ChannelControl
{
- playgroundSizeX = playgroundSizeX;
- playgroundSizeY = playgroundSizeY;
@display("p=60,50");
}
- configurator: FlatNetworkConfigurator
+ configurator: IPv4NetworkConfigurator
{
@display("p=140,50");
}
View
66 templates/NewWirelessHandoverSimulationWizard/omnetpp.ini.ftl
@@ -4,26 +4,28 @@ network = ${targetTypeName}
tkenv-plugin-path = ../../../etc/plugins
#debug-on-errors = true
-*.playgroundSizeX = ${ numAccessPoints?number * 300 - 100 }
-*.playgroundSizeY = 400
-**.debug = true
+**.mobility.constraintAreaMinX = 0m
+**.mobility.constraintAreaMinY = 0m
+**.mobility.constraintAreaMaxX = ${ numAccessPoints?number * 300 - 100 }m
+**.mobility.constraintAreaMaxY = 400m
+**.debug = false
**.coreDebug = false
# channel physical parameters
-*.channelcontrol.carrierFrequency = 2.4GHz
-*.channelcontrol.pMax = 2.0mW
-*.channelcontrol.sat = -110dBm
-*.channelcontrol.alpha = 2
-*.channelcontrol.numChannels = ${numAccessPoints?number + 2}
+*.channelControl.carrierFrequency = 2.4GHz
+*.channelControl.pMax = 2.0mW
+*.channelControl.sat = -110dBm
+*.channelControl.alpha = 2
+*.channelControl.numChannels = ${numAccessPoints?number + 2}
# access point
<#list 1..numAccessPoints?number as i>
-**.ap${i}.wlan.mac.address = "1${i-1}:00:00:00:00:00"
-**.ap${i}.wlan.mgmt.ssid = "AP${i}"
-**.ap${i}.wlan.radio.channelNumber = ${i+1}
+**.ap${i}.wlan[*].mac.address = "1${i-1}:00:00:00:00:00"
+**.ap${i}.wlan[*].mgmt.ssid = "AP${i}"
+**.ap${i}.wlan[*].radio.channelNumber = ${i+1}
</#list>
-**.ap*.wlan.mgmt.beaconInterval = 100ms
-**.wlan.mgmt.numAuthSteps = 4
+**.ap*.wlan[*].mgmt.beaconInterval = 100ms
+**.wlan[*].mgmt.numAuthSteps = 4
**.mgmt.frameCapacity = 10
@@ -36,28 +38,28 @@ tkenv-plugin-path = ../../../etc/plugins
# wireless channels
-**.host.wlan.radio.channelNumber = 0 # just initially -- it'll scan
+**.host.wlan[*].radio.channelNumber = 0 # just initially -- it'll scan
# wireless configuration
-**.wlan.agent.activeScan = true
-**.wlan.agent.channelsToScan = "" # "" means all
-**.wlan.agent.probeDelay = 0.1s
-**.wlan.agent.minChannelTime = 0.15s
-**.wlan.agent.maxChannelTime = 0.3s
-**.wlan.agent.authenticationTimeout = 5s
-**.wlan.agent.associationTimeout = 5s
-
-**.mac.address = "auto"
-**.mac.maxQueueSize = 14
-**.mac.rtsThresholdBytes = 4000B
-**.mac.bitrate = 2Mbps
-**.wlan.mac.retryLimit = 7
-**.wlan.mac.cwMinData = 7
-**.wlan.mac.cwMinBroadcast = 31
-
-**.radio.bitrate = 2Mbps
+**.wlan[*].bitrate = 2Mbps
+
+**.wlan[*].agent.activeScan = true
+**.wlan[*].agent.channelsToScan = "" # "" means all
+**.wlan[*].agent.probeDelay = 0.1s
+**.wlan[*].agent.minChannelTime = 0.15s
+**.wlan[*].agent.maxChannelTime = 0.3s
+**.wlan[*].agent.authenticationTimeout = 5s
+**.wlan[*].agent.associationTimeout = 5s
+
+**.wlan[*].mac.address = "auto"
+**.wlan[*].mac.maxQueueSize = 14
+**.wlan[*].mac.rtsThresholdBytes = 4000B
+**.wlan[*].mac.retryLimit = 7
+**.wlan[*].mac.cwMinData = 7
+**.wlan[*].mac.cwMinMulticast = 31
+
**.radio.transmitterPower = 2.0mW
**.radio.thermalNoise = -110dBm
-**.radio.sensitivity = -85mW
+**.radio.sensitivity = -85dBm
**.radio.pathLossAlpha = 2
**.radio.snirThreshold = 4dB
Please sign in to comment.
Something went wrong with that request. Please try again.