Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DNI-Meta-Model
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Descartes Research
DNI-Meta-Model
Commits
6ac5dbdc
Commit
6ac5dbdc
authored
8 years ago
by
Nikolai Reed
Browse files
Options
Downloads
Patches
Plain Diff
Updated Main.xtend
parent
1224f274
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
transformation-DNI3-to-Omnet/src/dni3toOmnetTransformation/Main.xtend
+3
-3
3 additions, 3 deletions
...on-DNI3-to-Omnet/src/dni3toOmnetTransformation/Main.xtend
with
3 additions
and
3 deletions
transformation-DNI3-to-Omnet/src/dni3toOmnetTransformation/Main.xtend
+
3
−
3
View file @
6ac5dbdc
...
...
@@ -45,6 +45,7 @@ import dnimm3.PerformanceNetworkInterface
import dnimm3.DNIUnit
import dnimm3.DataUnit
import dnimm3.FlowRoute
import dnimm3.ConstantDoubleVariable
class Main {
val static NAME = "dni3toomnet"
...
...
@@ -241,8 +242,6 @@ class Main {
netIF.name = iF.name
netIF.type = "NetworkInterface"
net.submodules.add(netIF)
//TODO:
//get native Switching Capacity and wrtie to ini
writeIniLine(inig, "General", iF.name + ".mtu", iF.performance.MTU.toString(), "")
writeIniLine(inig, "General", iF.name + ".isUp", iF.performance.isIsUp.toString(), "")
...
...
@@ -252,6 +251,7 @@ class Main {
//TODO
// read values correctly and parse them correctly currently
// toSTring will return like this dnimm3.impl.ConstantDoubleVariableImpl@80169cf (value: 1.0)
//CAST TO CONSTANTDOUBLEVARIABLE SEE BELOW
// need to access value 1.0 directly and use DoubleParameter
if (n.intermediate != null)
{
...
...
@@ -261,7 +261,7 @@ class Main {
n.intermediate.performance.switchingCapacityPPS.unit.toString())
writeIniLine(inig, "General", n.name + ".nativeForwardingLatency",
n.intermediate.performance.forwardingLatency.toString(),
n.intermediate.performance.forwardingLatency
.unit
.toString
()
)
(
n.intermediate.performance.forwardingLatency
as ConstantDoubleVariable).value
.toString)
writeIniLine(inig, "General", n.name + ".nativeForwardingBandwithBPS",
n.intermediate.performance.forwardingBandwidthBPS.toString(),
n.intermediate.performance.forwardingBandwidthBPS.unit.toString())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment