首页 / design / oaOccProducer

oaOccProducer

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaOccProduceroapy 中可用,可通过 _design 模块访问。

本页汇总 oaOccProducer 当前在 oapy 中可用的 Python 接口。

详细说明

The oaOccProducer class implements a producer for a specific occurrence。 You can use this class or a derivation of it to create your own producer, which will help you get the occ objects contained in that occurrence。 The virtual produce() method initiates the producer。 Overriding the produce function in a derivation class will enable custom ordering for the process() set of functions。 Header filtering of instances being processed is provided by overriding the startInstHeader or startModuleInstHeader set of functions。 The virtual functions process() are called for connectivity objects of a specific type。 Applications deriving from the oaOccProducer class will need to override a subset of the process*() set of functions。

构造函数

_design.oaOccProducer(occ)

obj = _design.oaOccProducer(occ)

方法总览

状态 Python 调用
obj.getOccurrence()
obj.setOccurrence(occ)
obj.produce()
obj.processOccurrence(occ)
obj.processInst(inst)
obj.processNet(net)
obj.processBusNetDef(def)
obj.processTerm(term)
obj.processBusTermDef(def)
obj.processInstTerm(instTerm)
obj.processVectorInstDef(def)
obj.processInstHeader(ih)
obj.processModuleInstHeader(modIH)
obj.processAssignment(assign)
obj.processConnectDef(connectDef)
obj.startInstHeader(ih)
obj.endInstHeader(ih)
obj.startModuleInstHeader(modIH)
obj.endModuleInstHeader(modIH)

方法说明

obj.getOccurrence()

绑定状态: 已绑定

Python 调用: obj.getOccurrence()

This function returns the occurrence to be produced。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.getOccurrence()

obj.setOccurrence(occ)

绑定状态: 已绑定

Python 调用: obj.setOccurrence(occ)

This function sets the current occurrence to be produced。

参数

  • occ: The occurrence to be produced。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.setOccurrence(occ)

obj.produce()

绑定状态: 已绑定

Python 调用: obj.produce()

This function causes this producer to start generating connectivity objects in the specified occurrence。 The default producing order is produceInsts() ; produceNets() ; produceBusNetDefs() ; produceTerms() ; produceBusTermDefs() ; produceInstTerms() ; produceVectorInstDefs() ; produceInstHeaders() ; produceModuleInstHeaders() ; produceAssignments() ; produceConnectDefs() ; Applications can override the produce() function to change the order of objects being produced。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.produce()

obj.processOccurrence(occ)

绑定状态: 已绑定

Python 调用: obj.processOccurrence(occ)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • occ: The occurrence object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processOccurrence(occ)

obj.processInst(inst)

绑定状态: 已绑定

Python 调用: obj.processInst(inst)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • inst: The occ instance object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processInst(inst)

obj.processNet(net)

绑定状态: 已绑定

Python 调用: obj.processNet(net)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • net: The occ net object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processNet(net)

obj.processBusNetDef(def)

绑定状态: 已绑定

Python 调用: obj.processBusNetDef(def)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • def: The occ busNetDef object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processBusNetDef(def)

obj.processTerm(term)

绑定状态: 已绑定

Python 调用: obj.processTerm(term)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • term: The occ terminal object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processTerm(term)

obj.processBusTermDef(def)

绑定状态: 已绑定

Python 调用: obj.processBusTermDef(def)

This is the callback function which will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • def: The occ busTermDef object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processBusTermDef(def)

obj.processInstTerm(instTerm)

绑定状态: 已绑定

Python 调用: obj.processInstTerm(instTerm)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • instTerm: The occ instTerm object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processInstTerm(instTerm)

obj.processVectorInstDef(def)

绑定状态: 已绑定

Python 调用: obj.processVectorInstDef(def)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • def: The occ vectorInstDef object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processVectorInstDef(def)

obj.processInstHeader(ih)

绑定状态: 已绑定

Python 调用: obj.processInstHeader(ih)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • ih: The occ instHeader object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processInstHeader(ih)

obj.processModuleInstHeader(modIH)

绑定状态: 已绑定

Python 调用: obj.processModuleInstHeader(modIH)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • modIH: The occ moduleInstHeader object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processModuleInstHeader(modIH)

obj.processAssignment(assign)

绑定状态: 已绑定

Python 调用: obj.processAssignment(assign)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • assign: The occ assignment object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processAssignment(assign)

obj.processConnectDef(connectDef)

绑定状态: 已绑定

Python 调用: obj.processConnectDef(connectDef)

This is the callback function that will be triggered by this producer when the specified object is visited。 This function can be overloaded in order to process objects of a specific type。

参数

  • connectDef: The occ connectDef object being visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.processConnectDef(connectDef)

obj.startInstHeader(ih)

绑定状态: 已绑定

Python 调用: obj.startInstHeader(ih)

This virtual function is called in relation to the production of instances in that occurrence。 Applications will override this function if they want better control over which instances to be produced or not。 The default implementation returns true, which means that all the instances will be produced by default。

参数

  • header: The header that is about to be produced。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.startInstHeader(ih)

obj.endInstHeader(ih)

绑定状态: 已绑定

Python 调用: obj.endInstHeader(ih)

This virtual function is called just after the instances of a specific header have been produced。 The applications can override this function。

参数

  • header: The instHeader has been visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.endInstHeader(ih)

obj.startModuleInstHeader(modIH)

绑定状态: 已绑定

Python 调用: obj.startModuleInstHeader(modIH)

This virtual function is called in relation to the production of instances in that occurrence。 Applications will override this function if they want better control over which instances to be produced or not。 The default implementation returns true, which means that all the instances will be produced by default。

参数

  • header: The header that is about to be produced。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.startModuleInstHeader(modIH)

obj.endModuleInstHeader(modIH)

绑定状态: 已绑定

Python 调用: obj.endModuleInstHeader(modIH)

This virtual function is called just after the instances of a specific header have been produced。 The applications can override this function。

参数

  • header: The instHeader has been visited。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccProducer
obj.endModuleInstHeader(modIH)