def __init__(self, name, default=None, comment=None, optional=False, rng=draw.RandDraw(random)): super(ModuleOptionWithPossibleValues, self).__init__(name, default=default, comment=comment, optional=optional) self._rng = rng
def __init__(self, name, default='RandByte', comment=None, optional=False, rng=draw.RandDraw(random)): """ Handles number parameters :param default: the number cast into a string """ super(NumOpt, self).__init__(name, default=default, comment=comment, optional=optional, rng=rng)
def __init__(self, name, default='RandMac', comment=None, optional=False, rng=draw.RandDraw(random)): super(MacOpt, self).__init__(name, default=default, comment=comment, optional=optional, rng=rng)
def __init__(self, name, default='RandPort', comment=None, optional=False, rng=draw.RandDraw(random)): """ Contains a number being a valid port number """ super(PortOpt, self).__init__(name, default=default, comment=comment, optional=optional, rng=rng)
def __init__(self, name, default='RandString', comment=None, optional=False, rng=draw.RandDraw(random)): """ Handles string type parameters """ super(StrOpt, self).__init__(name, default=default, comment=comment, optional=optional, rng=rng)
def __init__(self, name, default='RandIP4', comment=None, optional=False, rng=draw.RandDraw(random)): """ Holds an IPv4 or an IPv6 address """ super(IpOpt, self).__init__(name, default=default, comment=comment, optional=optional, rng=rng)
def rand(): return draw.RandDraw(random)