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

Public Member Functions

def getIconName (self)
 
def panel1 (self, parent)
 
def link (self, other)
 
- Public Member Functions inherited from gui.Items.ItemPort
def __init__ (self, port, root=None)
 
def selected (self)
 
def getIconName (self)
 
def panel (self, parent)
 
def link (self, other)
 
def connect (self)
 
- Public Member Functions inherited from gui.Item.Item
def __init__ (self, label="")
 
def isExpandable (self)
 
def getChildren (self)
 
def father (self)
 
def getIconName (self)
 
def panel (self, parent)
 
def box (self, parent)
 
def selected (self)
 
def dblselected (self)
 

Static Public Attributes

list panels = [("Panel1",panel1)]
 
- Static Public Attributes inherited from gui.Items.ItemPort
list panels = []
 
def box = panel
 
- Static Public Attributes inherited from gui.Item.Item
 ADAPT = adapt.adapt
 

Additional Inherited Members

- Public Attributes inherited from gui.Items.ItemPort
 port
 
 label
 
 root
 
 emitting
 
- Public Attributes inherited from gui.Item.Item
 label
 
 emitting
 

Detailed Description

Definition at line 294 of file Items.py.

Member Function Documentation

◆ getIconName()

def gui.Items.ItemOutPort.getIconName (   self)

Reimplemented from gui.Items.ItemPort.

Definition at line 295 of file Items.py.

295 def getIconName(self):
296 return "outport.png"
297

◆ link()

def gui.Items.ItemOutPort.link (   self,
  other 
)

Reimplemented from gui.Items.ItemPort.

Definition at line 303 of file Items.py.

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

References gui.CItems.ControlItem.port, gui.CItems.PortItem.port, gui.Items.ItemPort.port, gui.Items.ItemInGate.port, gui.Items.ItemOutGate.port, gui.sessions.Sessions.port, and gui.sessions.Session.port.

◆ panel1()

def gui.Items.ItemOutPort.panel1 (   self,
  parent 
)

Definition at line 298 of file Items.py.

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

Member Data Documentation

◆ panels


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