Base class for FTT Actions (general).
|
Methods
|
|
|
|
|
|
__init__
|
__init__ (
self,
action="",
valueSrcList=None,
fct="",
)
Constructor method to initialize the object.
action Action related to the object.
valueSrcList Python List of FtuFttValueSrc objects.
fct Conversion Function related to the action.
|
|
|
_setFctFromFtt
|
_setFctFromFtt (
self,
action,
keyCount,
fttPafObj,
)
Check if a Conversion Function is contained in the Translation
Block.
action The action concerned (see documentation for class
for the names of the constants).
keyCount The present key count, at which the function keyword
is supposed to be.
fttPafObj Reference to the FTT Object.
Returns: Key counter in the FTT Object.
|
|
|
action2Key
|
action2Key ( self, action )
Convert a Translation Action name into its corresponding keyword
name.
action Translation Action.
Returns: Key corresponding to Translation Action.
|
|
|
addValueSrc
|
addValueSrc ( self, valueSrcObj )
Add a Value Source Object to the Translation Action.
valueSrcObj Reference to instance of FtuFttValueSrc class.
Returns: Reference to object itself.
|
|
|
clearValueSrcList
|
clearValueSrcList ( self )
Clear the Value Sources for the Translation Action.
Returns: Reference to object itself.
|
|
|
getAction
|
getAction ( self )
Return the Translation Action set for the object.
Returns: Translation Action.
|
|
|
getFct
|
getFct ( self )
Return Conversion Function for Translation Action.
Returns: Conversion Function.
|
|
|
getValueSrcList
|
getValueSrcList ( self )
Return reference to internal list of FtuFttValueSrc objects.
Returns: Reference to Value Source List.
|
|
|
key2Action
|
key2Action ( self, key )
Convert a keyword into its corresponding Translation Action.
key Keyword.
Returns: Translation Action corresponding to Key.
|
|
|
setAction
|
setAction ( self, action )
Set the Action of the object.
action Action for object. See various constants in
documentation for class.
Returns: Reference to object itself.
|
|
|
setFct
|
setFct ( self, fct )
Set Conversion Function for the Translation Action.
fct Name of Conversion Function.
Returns: Reference to object itself.
|
|
|
setValueSrcList
|
setValueSrcList ( self, valueSrcList )
|