本文整理汇总了Python中_FFM.FFM._Export方法的典型用法代码示例。如果您正苦于以下问题:Python FFM._Export方法的具体用法?Python FFM._Export怎么用?Python FFM._Export使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类_FFM.FFM
的用法示例。
在下文中一共展示了FFM._Export方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: txpower
# 需要导入模块: from _FFM import FFM [as 别名]
# 或者: from _FFM.FFM import _Export [as 别名]
class txpower (_Ancestor.txpower) :
kind = Attr.Query
auto_up_depends = ("hardware", )
query = Q.hardware.txpower
# end class power
# end class _Attributes
class _Predicates (_Ancestor_Essence._Predicates) :
_Ancestor = _Ancestor_Essence._Predicates
class valid_left (Pred.Condition) :
"""`left` must be equal to `hardware.left`"""
kind = Pred.Object
assertion = "left is hardware.left"
attributes = ("left", "hardware.left")
# end class valid_left
# end class _Predicates
# end class Virtual_Wireless_Interface
if __name__ != "__main__" :
FFM._Export ("*", "_Wireless_Interface_")
### __END__ FFM.Wireless_Interface
示例2: Regulatory_Domain
# 需要导入模块: from _FFM import FFM [as 别名]
# 或者: from _FFM.FFM import _Export [as 别名]
from __future__ import absolute_import, division, print_function, unicode_literals
from _MOM.import_MOM import *
from _FFM import FFM
_Ancestor_Essence = FFM.Object
class Regulatory_Domain (_Ancestor_Essence) :
"""Wireless Regulatory Domain"""
class _Attributes (_Ancestor_Essence._Attributes) :
_Ancestor = _Ancestor_Essence._Attributes
class countrycode (A_String) :
"""Two-letter country-code"""
kind = Attr.Primary
max_length = 2
ignore_case = True
# end class countrycode
# end class _Attributes
# end class Regulatory_Domain
if __name__ != "__main__" :
FFM._Export ("*")
### __END__ FFM.Regulatory_Domain
示例3: _Belongs_to_Node_
# 需要导入模块: from _FFM import FFM [as 别名]
# 或者: from _FFM.FFM import _Export [as 别名]
_Ancestor_Essence = FFM.Id_Entity
class _Belongs_to_Node_ (_Ancestor_Essence) :
"""Mixin for computed `belongs_to_node` attribute"""
is_partial = True
class _Attributes (_Ancestor_Essence._Attributes) :
_Ancestor = _Ancestor_Essence._Attributes
class belongs_to_node (A_Id_Entity) :
"""Node this %(ui_type_name)s belongs to."""
kind = Attr.Query
hidden = True
P_Type = FFM.Node
query = Q.left.belongs_to_node
query_preconditions = (Q.left, )
# end class belongs_to_node
# end class _Attributes
# end class _Belongs_to_Node_
if __name__ != "__main__" :
FFM._Export ("_Belongs_to_Node_")
### __END__ FFM._Belongs_to_Node_