wsnsim/link.py
def convert_to_simulation_links(links: Iterable[Link], simulation_nodes: Iterable[SimulationNode]) \
        -> Iterable[SimulationLink]:
    """Returns simulation links from regular links."""
    simulation_links = []
    for link in links:
        node_1, node_2 = get_equivalent_simulation_node(link.nodes, simulation_nodes)
        # noinspection PyProtectedMember
        simulation_link = SimulationLink(node_1, node_2, link._delay_function)
        simulation_links.append(simulation_link)
    return simulation_links
Returns simulation links from regular links.
Returns simulation links from regular links.
Returns simulation links from regular links .
def convert_to_simulation_links(links: Iterable[Link], simulation_nodes: Iterable[SimulationNode]) \
        -> Iterable[SimulationLink]:
    simulation_links = []
    for link in links:
        node_1, node_2 = get_equivalent_simulation_node(link.nodes, simulation_nodes)
        simulation_link = SimulationLink(node_1, node_2, link._delay_function)
        simulation_links.append(simulation_link)
    return simulation_links
def convert_to_simulation_links ( links : Iterable [ Link ] , simulation_nodes : Iterable [ SimulationNode ] ) -> Iterable [ SimulationLink ] : simulation_links = [ ] for link in links : node_1 , node_2 = get_equivalent_simulation_node ( link . nodes , simulation_nodes ) simulation_link = SimulationLink ( node_1 , node_2 , link . _delay_function ) simulation_links . append ( simulation_link ) return simulation_links
Returns simulation links from regular links.
Returns simulation links from regular links .
"""Returns simulation links from regular links.""" # noinspection PyProtectedMember
links
Iterable[Link]
simulation_nodes
Iterable[SimulationNode]