Python scripting - Series operators

CENPyOlpSeries_AttribChangedOperator

 

The object of the CENPyOlpSeries_AttribChangedOperator class is passed to the PostSeriesOnAttribChanged callback as a parameter.

It can be used to obtain the required operators within the scope of the PostSeriesOnAttribChanged callback in the %SeriesName%.py script file.

 

[Example]

def PostSeriesOnAttribChanged(seriesAttribChangedOperator):

   pass

 

 

Methods

 

GetAttribGetter()

 

o

return

Object of CENPyOlpAttribGetter class

 

This operator gives the possibility to find attribute and get their values.

 

[Example]

   attribGetter = seriesAttribChangedOperator.GetAttribGetter()

 


 

GetAttribSetter()

 

o

return

Object of CENPyOlpAttribSetter class

 

This operator gives the possibility to change attribute values.

 

[Example]

   attribSetter = seriesAttribChangedOperator.GetAttribSetter()

 


 

GetLoggerOperator()

 

o

return

Object of CENPyOlpLogOperator class

 

This operator gives the possibility to log issues resulting by user input.

 

[Example]

   logOperator = seriesAttribChangedOperator.GetLoggerOperator()

 


 

 Method is deprecated, consider using GetChangedAttributeName()

 

GetChangedAttribute()

 

o

return

Object of CENPyOlpAttribute class

 

 This method returns the changed attribute which rises the OnAttribChanged callback.

 

[Example]

   changedAttrib = seriesAttribChangedOperator.GetChangedAttribute()

 


 

GetChangedAttributeName()

 

o

return

name of the changed attribute

 

 This method returns the name of changed attribute which rises OnAttribChanged callback.

 

[Example]

def PostOnAttribChanged(Operator):

   logging = Operator.GetLoggerOperator()

   logging.LogInfo(FILE_NAME +" GetChangedAttributeName:"+ Operator.GetChangedAttributeName())

 


 

 


Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante