Exemplo n.º 1
0
# create Server
logger.debug("Creating Server")
server = Server("Server")
logger.debug("Finished creating Server")

# create groundstations
logger.debug("Creating Ground Stations")
groundstations = []
for i in range(num_of_nodes):
    groundstations.append(GroundStation("Groundstation " + str(i)))
logger.debug("Finished creating Ground Stations")

# create network
logger.debug("Creating Network")
network = Network(master, slaves, server, groundstations)
logger.debug("Finished creating Network")

# bootstrap network
logger.debug("Bootstrapping Network")
network.bootstrap()
network.buildGraph()
network.buildLinks()
network.init()
logger.debug("Finished bootstrapping Network")

# draw, show and save network
network.draw()
#network.show()
#network.save()
Exemplo n.º 2
0
# create Server
logger.debug("Creating Server")
server = Server("Server")
logger.debug("Finished creating Server")

# create groundstations
logger.debug("Creating Ground Stations")
groundstations = []
for i in range(num_of_nodes):
    groundstations.append(GroundStation("Groundstation " + str(i)))
logger.debug("Finished creating Ground Stations")

# create network
logger.debug("Creating Network")
network = Network(master, slaves, server, groundstations)
logger.debug("Finished creating Network")

# bootstrap network
logger.debug("Bootstrapping Network")
network.bootstrap()
network.buildGraph()
network.buildLinks()
network.init()
logger.debug("Finished bootstrapping Network")

# draw, show and save network
network.draw()
#network.show()
#network.save()
Exemplo n.º 3
0
# create Server
logger.debug("Creating Server")
server = Server("Server")
logger.debug("Finished creating Server")

# create groundstations
logger.debug("Creating Ground Stations")
groundstations = []
for i in range(num_of_nodes):
    groundstations.append(GroundStation(i))
logger.debug("Finished creating Ground Stations")

# create network
logger.debug("Creating Network")
network = Network(master, slaves, server, groundstations)
logger.debug("Finished creating Network")

# bootstrap network
logger.debug("Bootstrapping Network")
network.bootstrap()
network.buildGraph()
logger.debug("Finished bootstrapping Network")

# print network
# network.show()

# start the network
logger.debug("Starting the network")
network.start()
logger.debug("Started the network")
Exemplo n.º 4
0
# create Server
logger.debug("Creating Server")
server = Server("Server")
logger.debug("Finished creating Server")

# create groundstations
logger.debug("Creating Ground Stations")
groundstations = []
for i in range(num_of_nodes):
    groundstations.append(GroundStation(i))
logger.debug("Finished creating Ground Stations")

# create network
logger.debug("Creating Network")
network = Network(master, slaves, server, groundstations)
logger.debug("Finished creating Network")

# bootstrap network
logger.debug("Bootstrapping Network")
network.bootstrap()
network.buildGraph()
logger.debug("Finished bootstrapping Network")

# print network
# network.show()

# start the network
logger.debug("Starting the network")
network.start()
logger.debug("Started the network")