当前位置: 首页>>代码示例>>Python>>正文


Python _FFM.FFM类代码示例

本文整理汇总了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
开发者ID:FFM,项目名称:FFM,代码行数:30,代码来源:Regulatory_Domain.py

示例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
开发者ID:IngoGaucho,项目名称:FFM,代码行数:30,代码来源:Error.py

示例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
开发者ID:IngoGaucho,项目名称:FFM,代码行数:30,代码来源:Wireless_Interface.py

示例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_
开发者ID:IngoGaucho,项目名称:FFM,代码行数:29,代码来源:_Belongs_to_Node_.py


注:本文中的_FFM.FFM类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。