Python base.Link() Examples

The following are 22 code examples of base.Link(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module base , or try the search function .
Example #1
Source File: core.py    From royal-chaos with MIT License 5 votes vote down vote up
def remove_link(self, link):
        """!
        Remove link function.

        @param self: class object.
        @param link: link to add.
        @return none
        """
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #2
Source File: core.py    From Tocino with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #3
Source File: core.py    From Tocino with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #4
Source File: core.py    From ns3-802.11ad with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        """!
        Remove link function.

        @param self: class object.
        @param link: link to add.
        @return none
        """
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #5
Source File: core.py    From ns3-802.11ad with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        """!
        Add link function.

        @param self: class object.
        @param link: link to add.
        @return none
        """
        assert isinstance(link, Link)
        self.links.append(link) 
Example #6
Source File: core.py    From ns3-ecn-sharp with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #7
Source File: core.py    From ns3-ecn-sharp with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #8
Source File: core.py    From CRE-NS3 with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #9
Source File: core.py    From CRE-NS3 with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #10
Source File: core.py    From ns-3-dev-git with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #11
Source File: core.py    From ns-3-dev-git with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #12
Source File: core.py    From ntu-dsi-dcn with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #13
Source File: core.py    From royal-chaos with MIT License 5 votes vote down vote up
def add_link(self, link):
        """!
        Add link function.

        @param self: class object.
        @param link: link to add.
        @return none
        """
        assert isinstance(link, Link)
        self.links.append(link) 
Example #14
Source File: core.py    From ns3-rdma with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #15
Source File: core.py    From ns3-rdma with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #16
Source File: core.py    From 802.11ah-ns3 with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #17
Source File: core.py    From 802.11ah-ns3 with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #18
Source File: core.py    From ns3-load-balance with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #19
Source File: core.py    From ns3-load-balance with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #20
Source File: core.py    From IEEE-802.11ah-ns-3 with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link) 
Example #21
Source File: core.py    From IEEE-802.11ah-ns-3 with GNU General Public License v2.0 5 votes vote down vote up
def add_link(self, link):
        assert isinstance(link, Link)
        self.links.append(link) 
Example #22
Source File: core.py    From ntu-dsi-dcn with GNU General Public License v2.0 5 votes vote down vote up
def remove_link(self, link):
        assert isinstance(link, Link)
        self.links.remove(link)