Version: 9.16.0
gui.cataitems.ItemService Class Reference
Inheritance diagram for gui.cataitems.ItemService:
Collaboration diagram for gui.cataitems.ItemService:

Public Member Functions

def __init__ (self, service, root)
 
def isExpandable (self)
 
def addNode (self, appli)
 
def getChildren (self)
 
def selected (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)
 

Public Attributes

 root
 
 service
 
 label
 
 emitting
 
- Public Attributes inherited from gui.Item.Item
 label
 
 emitting
 

Additional Inherited Members

- Static Public Attributes inherited from gui.Item.Item
 ADAPT = adapt.adapt
 

Detailed Description

Definition at line 61 of file cataitems.py.

Constructor & Destructor Documentation

◆ __init__()

def gui.cataitems.ItemService.__init__ (   self,
  service,
  root 
)

Reimplemented from gui.Item.Item.

Definition at line 62 of file cataitems.py.

62 def __init__(self,service,root):
63 Item.Item.__init__(self)
64 self.root=root
65 self.service=service
66 self.label=service.getName()
67

Member Function Documentation

◆ addNode()

◆ getChildren()

def gui.cataitems.ItemService.getChildren (   self)

Reimplemented from gui.Item.Item.

Definition at line 74 of file cataitems.py.

74 def getChildren(self):
75 sublist=[]
76 for port in self.service.getSetOfInputPort():
77 sublist.append(Items.ItemInPort(port,self.root))
78 for port in self.service.getSetOfOutputPort():
79 sublist.append(Items.ItemOutPort(port,self.root))
80 for port in self.service.getSetOfInputDataStreamPort():
81 sublist.append(Items.ItemInStream(port,self.root))
82 for port in self.service.getSetOfOutputDataStreamPort():
83 sublist.append(Items.ItemOutStream(port,self.root))
84 return sublist
85

References gui.cataitems.Obj.root, gui.cataitems.ItemService.root, gui.cataitems.ItemType.root, gui.cataitems.ItemCompo.root, gui.cataitems.ItemNode.root, gui.cataitems.ItemComposedNode.root, gui.cataitems.TypesItem.root, gui.cataitems.ComponentsItem.root, gui.cataitems.NodesItem.root, gui.cataitems.ComposedNodesItem.root, gui.Items.ItemPort.root, gui.sessions.Session.root, gui.cataitems.ItemService.service, YACS::looptypeParser< ENGINE::OptimizerLoop * >.service(), YACS::looptypeParser< T >.service(), YACS::looptypeParser< ENGINE::DynParaLoop * >.service(), YACS::looptypeParser< ENGINE::ForLoop * >.service(), YACS::looptypeParser< PseudoComposedNode * >.service(), YACS::looptypeParser< ENGINE::WhileLoop * >.service(), YACS::casetypeParser.service(), YACS::bloctypeParser< T >.service(), and YACS::bloctypeParser< YACS::ENGINE::Proc * >.service().

◆ isExpandable()

def gui.cataitems.ItemService.isExpandable (   self)

Reimplemented from gui.Item.Item.

Definition at line 68 of file cataitems.py.

68 def isExpandable(self):
69 return True
70

◆ selected()

Member Data Documentation

◆ emitting

◆ label

gui.cataitems.ItemService.label

Definition at line 66 of file cataitems.py.

Referenced by gui.CItems.Cell.moveBy(), and gui.CItems.Cell.show().

◆ root

◆ service

gui.cataitems.ItemService.service

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