Cat
Public Member Functions | Public Attributes | List of all members
StorageFifo.StorageFifo Class Reference
Inheritance diagram for StorageFifo.StorageFifo:

Public Member Functions

def __init__ (self, cat, obj, panel, path)
 
def onApply (self, event)
 
def update (self)
 

Public Attributes

 s1
 
 s2
 
 s3
 
 s4
 

Detailed Description

Definition at line 8 of file StorageFifo.py.

Constructor & Destructor Documentation

◆ __init__()

def StorageFifo.StorageFifo.__init__ (   self,
  cat,
  obj,
  panel,
  path 
)

Definition at line 9 of file StorageFifo.py.

References element.element.loadxrc(), and proc.proc.loadxrc().

9  def __init__(self, cat, obj, panel, path):
10  proc.__init__(self,cat,obj,panel,path)
11  self.loadxrc()
12 
13  self.s1=self.getControl("s1")
14  self.s2=self.getControl("s2")
15  self.s3=self.getControl("s3")
16  self.s4=self.getControl("s4")
17  self.update()
18 
19  self.panel.Bind(wx.EVT_BUTTON, self.onApply, id=xrc.XRCID("Apply"))
20 
def __init__(self, dict)
Definition: wrapper.py:56

Member Function Documentation

◆ onApply()

def StorageFifo.StorageFifo.onApply (   self,
  event 
)

Definition at line 21 of file StorageFifo.py.

References object.object.obj, CfgFrame.CfgFrame.obj, StorageFifo.StorageFifo.s1, StorageFifo.StorageFifo.s2, StorageFifo.StorageFifo.s3, and StorageFifo.StorageFifo.s4.

Referenced by A3PE_BitFlip.A3PE_BitFlip.__init__(), and EmulateFE.EmulateFE.__init__().

21  def onApply(self, event):
22  v1 = float(self.s1.GetValue())
23  v2 = float(self.s2.GetValue())
24  v3 = float(self.s3.GetValue())
25  v4 = float(self.s4.GetValue())
26  self.obj.setSigma(v1,v2,v3,v4)
27 

◆ update()

def StorageFifo.StorageFifo.update (   self)

Definition at line 28 of file StorageFifo.py.

References object.object.obj, CfgFrame.CfgFrame.obj, StorageFifo.StorageFifo.s1, StorageFifo.StorageFifo.s2, StorageFifo.StorageFifo.s3, and StorageFifo.StorageFifo.s4.

Referenced by AppFrame.AppFrame.deleteHardware(), ConfFrame.ConfFrame.onChange(), GraphFrame.GraphFrame.onChange(), CfgFrame.CfgFrame.onChange(), ConfFrame.ConfFrame.onEdit(), AppFrame.AppFrame.onLoad(), ConfFrame.ConfFrame.onReLoad(), GraphFrame.GraphFrame.onReLoad(), CfgFrame.CfgFrame.onReLoad(), and AppFrame.AppFrame.onReLoad().

28  def update(self):
29  v1=self.obj.sigma(0)
30  v2=self.obj.sigma(1)
31  v3=self.obj.sigma(2)
32  v4=self.obj.sigma(3)
33 
34  self.s1.SetValue(str(v1))
35  self.s2.SetValue(str(v2))
36  self.s3.SetValue(str(v3))
37  self.s4.SetValue(str(v4))
38 
39 #----------------------------------------------------------------------
40 

Member Data Documentation

◆ s1

StorageFifo.StorageFifo.s1

◆ s2

StorageFifo.StorageFifo.s2

◆ s3

StorageFifo.StorageFifo.s3

◆ s4

StorageFifo.StorageFifo.s4

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