Esempio n. 1
0
def WaveguideProperty(internal_member_name= None, restriction = None,**kwargs):
    R = RestrictType(__Waveguide__) & restriction
    return RestrictedProperty(internal_member_name, restriction = R,**kwargs)
Esempio n. 2
0
def FileTypeProperty(internal_member_name=None, restriction=None, **kwargs):
    return RestrictedProperty(restriction=RestrictType(FileType), **kwargs)
Esempio n. 3
0
def DesignRuleProperty(internal_member_name=None, restriction=None, **kwargs):
    R = RestrictType(__DesignRule__) & restriction
    return RestrictedProperty(internal_member_name, restriction=R, **kwargs)
Esempio n. 4
0
def DomainProperty(internal_member_name=None, restriction=None, **kwargs):
    """Property type for storing a Domain class"""
    R = RestrictClass(__Domain__) & restriction
    return RestrictedProperty(internal_member_name, restriction=R, **kwargs)