Version: 8.3.0
gui.Items.ItemOutPort Class Reference
Inheritance diagram for gui.Items.ItemOutPort:
Collaboration diagram for gui.Items.ItemOutPort:

Public Member Functions

def getIconName
 
def panel1
 
def link
 
- Public Member Functions inherited from gui.Items.ItemPort
def __init__
 
def selected
 
def getIconName
 
def panel
 
def link
 
def connect
 
- Public Member Functions inherited from gui.Item.Item
def __init__
 
def isExpandable
 
def getChildren
 
def father
 
def getIconName
 
def panel
 
def box
 
def selected
 
def dblselected
 

Additional Inherited Members

- Public Attributes inherited from gui.Items.ItemPort
 port
 
 label
 
 root
 
 emitting
 
- Static Public Attributes inherited from gui.Items.ItemPort
list panels = []
 

Detailed Description

Definition at line 294 of file Items.py.

Member Function Documentation

def gui.Items.ItemOutPort.getIconName (   self)

Definition at line 295 of file Items.py.

296  def getIconName(self):
297  return "outport.png"
def gui.Items.ItemOutPort.link (   self,
  other 
)

Definition at line 303 of file Items.py.

References gui.Items.ItemPort.port, gui.CItems.ControlItem.port, and gui.CItems.PortItem.port.

304  def link(self,other):
305  nodeS=self.port.getNode()
306  nodeE=other.port.getNode()
307  father=nodeS.getFather()
308  if father != nodeE.getFather():
309  #not same father : do nothing for the moment
310  return
311  try:
312  #cflink=nodeS.getOutGate().isAlreadyInSet(nodeE.getInGate())
313  cflink= nodeE.getInGate() in nodeS.getOutGate().edSetInGate()
314  father.edAddDFLink(self.port,other.port)
315  l=DataLinkItem(other.port,self.port)
316  fitem=Item.adapt(father)
317  fitem.addLink(l)
318  if not cflink:
319  #add also a control flow link
320  fitem.addLink(ControlLinkItem(nodeS,nodeE))
321  except ValueError,ex:
322  traceback.print_exc()
323  QMessageBox.warning(None,"YACS error",str(ex))
324  return
def gui.Items.ItemOutPort.panel1 (   self,
  parent 
)

Definition at line 298 of file Items.py.

299  def panel1(self,parent):
300  return panels.PanelOutPort(parent,self)

The documentation for this class was generated from the following file: