Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
discus
pydtnsim
Commits
068cae67
Commit
068cae67
authored
Aug 17, 2017
by
Jarrod Pas
Browse files
Update random node example
parent
628250eb
Pipeline
#1649
passed with stage
in 1 minute and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
examples/random_node.py
View file @
068cae67
...
...
@@ -4,7 +4,7 @@ __author__ = "Jarrod Pas <j.pas@usask.ca>"
from
random
import
Random
from
pydtn
import
Network
,
Node
,
r
andom
_t
race
,
RandomTraffic
from
pydtn
import
Network
,
Node
,
R
andom
T
race
,
RandomTraffic
class
RandomNode
(
Node
):
...
...
@@ -53,7 +53,7 @@ def main():
trace_options
=
{
'seed'
:
seed
,
}
trace
=
r
andom
_t
race
(
nodes
,
**
trace_options
)
trace
=
R
andom
T
race
(
nodes
,
**
trace_options
)
network
=
Network
(
nodes
,
traffic
=
traffic
,
trace
=
trace
)
network
.
run
(
until
=
duration
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment