The class that has all the information about a connection between two modules.
More...
|
| Module1 |
|
| Module2 |
|
| Node1 |
|
| Node2 |
|
| Distance |
|
| Angle |
|
The class that has all the information about a connection between two modules.
def Connection.Connection.__init__ |
( |
|
self, |
|
|
|
model1, |
|
|
|
model2, |
|
|
|
node1, |
|
|
|
node2, |
|
|
|
distance = 0 , |
|
|
|
angle = 0 |
|
) |
| |
Constructor.
- Parameters
-
self | Object pointer |
model1 | A Module object of one connected module |
model2 | A module object of the other connected module |
node1 | Connected node index of module1 |
node2 | Connected node index of module2 |
distance | Connection distance offset, default: 0 |
angle | Connection angle offset, default: 0 |
def Connection.Connection.__init__ |
( |
|
self, |
|
|
|
model1, |
|
|
|
model2, |
|
|
|
node1, |
|
|
|
node2, |
|
|
|
distance = 0 , |
|
|
|
angle = 0 |
|
) |
| |
Constructor.
- Parameters
-
self | Object pointer |
model1 | A Module object of one connected module |
model2 | A module object of the other connected module |
node1 | Connected node index of module1 |
node2 | Connected node index of module2 |
distance | Connection distance offset, default: 0 |
angle | Connection angle offset, default: 0 |
def Connection.Connection.__len__ |
( |
|
self | ) |
|
len definition
- Parameters
-
def Connection.Connection.__len__ |
( |
|
self | ) |
|
len definition
- Parameters
-
def Connection.Connection.GetConnectModuleAndNode |
( |
|
self, |
|
|
|
module_name |
|
) |
| |
Giving one of the connected module, return the name and node index of the other connected module.
- Parameters
-
self | Object pointer Name string of one of the connected module |
- Returns
- If the name given is one of the module, then return the Module object of the other module; other wise return (False, False)
The documentation for this class was generated from the following file:
- ConfigGenerator/pythonGUI/Connection.py