Skip to content
Snippets Groups Projects
Commit 068cae67 authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Update random node example

parent 628250eb
No related branches found
No related tags found
1 merge request!7Feature/trace class
Pipeline #
......@@ -4,7 +4,7 @@ __author__ = "Jarrod Pas <j.pas@usask.ca>"
from random import Random
from pydtn import Network, Node, random_trace, RandomTraffic
from pydtn import Network, Node, RandomTrace, RandomTraffic
class RandomNode(Node):
......@@ -53,7 +53,7 @@ def main():
trace_options = {
'seed': seed,
}
trace = random_trace(nodes, **trace_options)
trace = RandomTrace(nodes, **trace_options)
network = Network(nodes, traffic=traffic, trace=trace)
network.run(until=duration)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment