Package onep :: Package topology :: Module Edge :: Class Edge
[frames] | no frames]

Class Edge


Edge class represents a path as seen by a protocol from one interface (head) on a node to an interface (tail) on another node.

Instance Methods
 
__init__(self, head_node, head_node_connector, tail_node, tail_node_connector)
x.__init__(...) initializes x; see help(type(x)) for signature
boolean
equals(self, obj)
Compare two Edge object for equality.
 
__str__(self)
str(x)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables
  EdgeType = enum('DIRECTED', 'UNDIRECTED')
EdgeType specifies whether the edge is directed or un-directed.
  head_node = property(_get_head_node, None, _doc)
  head_node_connector = property(_get_head_node_connector, None,...
  tail_node = property(_get_tail_node, None, _doc)
  tail_node_connector = property(_get_tail_node_connector, None,...
Properties

Inherited from object: __class__

Method Details

__init__(self, head_node, head_node_connector, tail_node, tail_node_connector)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Raises:
Overrides: object.__init__

equals(self, obj)

 

Compare two Edge object for equality. This method returns true if the two Edge are equal and the same.

Parameters:
  • obj (Object) - The other Edge object to compare with.
Returns: boolean
True if the edge are equal or the same

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details

head_node_connector

Value:
property(_get_head_node_connector, None, _doc)

tail_node_connector

Value:
property(_get_tail_node_connector, None, _doc)