From 750abccbb6be883435ca678e31067c032a012a25 Mon Sep 17 00:00:00 2001 From: Julien Tribino Date: Wed, 23 Oct 2013 16:13:14 +0200 Subject: [PATCH] Updated documentation of OMF Examples --- examples/omf/nepi_omf_vlc_experiment.py | 32 ++++++++++++++++++------- examples/omf/nepi_omf_vlc_nitos.py | 30 ++++++++++++++++------- examples/omf/nepi_omf_xeyes_nitos.py | 19 +++++++++++++++ 3 files changed, 64 insertions(+), 17 deletions(-) diff --git a/examples/omf/nepi_omf_vlc_experiment.py b/examples/omf/nepi_omf_vlc_experiment.py index 5cf0e8b9..1cfd242c 100644 --- a/examples/omf/nepi_omf_vlc_experiment.py +++ b/examples/omf/nepi_omf_vlc_experiment.py @@ -15,6 +15,30 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . + Author: Alina Quereilhac + Julien Tribino + + Example : + - Testbed : Plexus + - Explanation : + + VLC Streaming on VLC + + Node Node + omf.plexus.wlab17 omf.plexus.wlab37 + 0--------------------------------------------------0 + | | + | | + 0 0 + VLC Server VLC Client + + - Experiment: + - t0 : Deployment + - t1 : VLC Server start + - t2 (t1 + 4s) : VLC Client start + - t3 (t2 + 22s) : Client and Server Stop + - t4 (t3 + 3s): Kill all the applications + """ #!/usr/bin/env python @@ -46,10 +70,6 @@ ec.set(iface1, 'mode', "adhoc") ec.set(iface1, 'type', "g") ec.set(iface1, 'essid', "vlcexp") ec.set(iface1, 'ip', "10.0.0.17") -ec.set(iface1, 'xmppSlice', "nepi") -ec.set(iface1, 'xmppHost', "xmpp-plexus.onelab.eu") -ec.set(iface1, 'xmppPort', "5222") -ec.set(iface1, 'xmppPassword', "1234") iface2 = ec.register_resource("OMFWifiInterface") ec.set(iface2, 'alias', "w0") @@ -57,10 +77,6 @@ ec.set(iface2, 'mode', "adhoc") ec.set(iface2, 'type', 'g') ec.set(iface2, 'essid', "vlcexp") ec.set(iface2, 'ip', "10.0.0.37") -ec.set(iface2, 'xmppSlice', "nepi") -ec.set(iface2, 'xmppHost', "xmpp-plexus.onelab.eu") -ec.set(iface2, 'xmppPort', "5222") -ec.set(iface2, 'xmppPassword', "1234") # Create and Configure the Channel channel = ec.register_resource("OMFChannel") diff --git a/examples/omf/nepi_omf_vlc_nitos.py b/examples/omf/nepi_omf_vlc_nitos.py index 61ef0756..9f1b6883 100644 --- a/examples/omf/nepi_omf_vlc_nitos.py +++ b/examples/omf/nepi_omf_vlc_nitos.py @@ -18,6 +18,27 @@ Author: Alina Quereilhac Julien Tribino + Example : + - Testbed : Nitos + - Explanation : + + VLC Streaming on VLC + + Node Node + omf.nitos.node0xx omf.nitos.node0xx + 0--------------------------------------------------0 + | | + | | + 0 0 + VLC Server VLC Client + + - Experiment: + - t0 : Deployment + - t1 : VLC Server start + - t2 (t1 + 4s) : VLC Client start + - t3 (t2 + 22s) : Client and Server Stop + - t4 (t3 + 3s): Kill all the applications + """ #!/usr/bin/env python @@ -27,7 +48,6 @@ from nepi.execution.ec import ExperimentController # Create the EC ec = ExperimentController() - # Create and Configure the Nodes node1 = ec.register_resource("OMFNode") ec.set(node1, 'hostname', 'omf.nitos.node0XX') @@ -50,10 +70,6 @@ ec.set(iface1, 'mode', "adhoc") ec.set(iface1, 'type', "g") ec.set(iface1, 'essid', "vlcexp") ec.set(iface1, 'ip', "192.168.0.XX") -ec.set(iface1, 'xmppSlice', "ZZZ") -ec.set(iface1, 'xmppHost', "nitlab.inf.uth.gr") -ec.set(iface1, 'xmppPort', "5222") -ec.set(iface1, 'xmppPassword', "1234") iface2 = ec.register_resource("OMFWifiInterface") ec.set(iface2, 'alias', "w0") @@ -61,10 +77,6 @@ ec.set(iface2, 'mode', "adhoc") ec.set(iface2, 'type', 'g') ec.set(iface2, 'essid', "vlcexp") ec.set(iface2, 'ip', "192.168.0.YY") -ec.set(iface2, 'xmppSlice', "ZZZ") -ec.set(iface2, 'xmppHost', "nitlab.inf.uth.gr") -ec.set(iface2, 'xmppPort', "5222") -ec.set(iface2, 'xmppPassword', "1234") # Create and Configure the Channel channel = ec.register_resource("OMFChannel") diff --git a/examples/omf/nepi_omf_xeyes_nitos.py b/examples/omf/nepi_omf_xeyes_nitos.py index 509d1ed4..bfa5bfe2 100644 --- a/examples/omf/nepi_omf_xeyes_nitos.py +++ b/examples/omf/nepi_omf_xeyes_nitos.py @@ -18,6 +18,25 @@ Author: Alina Quereilhac Julien Tribino + Example : + - Testbed : Nitos + - Explanation : + + VLC Streaming on VLC + + Node + omf.nitos.node0xx + 0 + | + | + 0 + xEyes + + - Experiment: + - t0 : Deployment + - t1 : xEeyes Start + - t2 (t1 + 10s) : xEyes stop + - t3 (t2 + 2s) : Kill the application """ #!/usr/bin/env python -- 2.47.0