本文整理汇总了Python中_FFM.FFM类的典型用法代码示例。如果您正苦于以下问题:Python FFM类的具体用法?Python FFM怎么用?Python FFM使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FFM类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Regulatory_Domain
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
示例2: Address_not_in_Network
self.requester = requester
# end def __init__
# end class Address_Already_Used
class Address_not_in_Network (Error, ValueError) :
"""Address is not in Network"""
def __init__ (self, address, net_address, msg) :
self.__super.__init__ (msg)
self.address = address
self.net_address = net_address
# end def __init__
# end class Address_not_in_Network
class No_Free_Address_Range (Error, ValueError) :
"""There is no free subrange available"""
def __init__ (self, net_address, mask_len, message) :
self.__super.__init__ (message)
self.net_address = net_address
self.mask_len = mask_len
# end def __init__
# end class No_Free_Address_Range
if __name__ != "__main__" :
FFM._Export_Module ()
### __END__ FFM.Error
示例3: txpower
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
示例4: _Belongs_to_Node_
_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_