Package schrodinger :: Package tasks :: Module mappers :: Class ParamTarget
[hide private]
[frames] | no frames]

Class ParamTarget

       object --+                
                |                
sip.simplewrapper --+            
                    |            
          sip.wrapper --+        
                        |        
     PyQt5.QtCore.QObject --+    
                            |    
                       Target --+
                                |
                               ParamTarget

Class to allow a param to be synchronized to another param. Example:

target = ParamTarget(target_model, MyModelClass.param)

This creates a target for synchronizing target_model.param, where target_model is an instance of MyModelClass.

Instance Methods [hide private]
 
__init__(self, obj, param)
x.__init__(...) initializes x; see help(type(x)) for signature
 
getValue(self)
The standard method for getting a target's value, regardless of whether this is using a default getter or a custom one.
 
setValue(self, value)
The standard method for setting a target's value, regardless of whether this is using a default setter or a custom one.

Inherited from Target: onModelParamChanged, onTargetSignal, slot

Inherited from Target (private): _getAccess

Inherited from PyQt5.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, objectNameChanged, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from Target (private): _getDefaultAccess

Class Variables [hide private]

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Instance Variables [hide private]

Inherited from Target: targetChanged

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, obj, param)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • obj (parameters.ParamModel) - the model object which contains the param to be mapped
  • param (parameters.Param) - the abstract param to be mapped (i.e. MyModelClass.param)
Overrides: object.__init__

getValue(self)

 

The standard method for getting a target's value, regardless of whether this is using a default getter or a custom one.

Overrides: Target.getValue
(inherited documentation)

setValue(self, value)

 

The standard method for setting a target's value, regardless of whether this is using a default setter or a custom one.

Overrides: Target.setValue
(inherited documentation)