def __init__( self, *, continue_forever: bool = False, loops: int = None, name: str = 'Loop Controller', comments: str = '', is_enabled: bool = True, ): self.continue_forever = continue_forever if not continue_forever: if loops is None: loops = 1 if loops == -1: raise ValueError( "continue_forever can't be false, while loops equal -1") self.loops = loops else: if loops is None: loops = -1 if loops > -1: raise ValueError( "continue_forever can't be true, while loops not equal -1") self.loops = loops BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__(self, *, ignoreSubControllers: bool = False, accrossThreads: bool = False, name: str = 'Interleave Controller', comments: str = '', is_enabled: bool = True,): self.ignoreSubControllers = ignoreSubControllers self.accrossThreads = accrossThreads IncludesElements.__init__(self) BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__( self, *, name: str = 'Once Only Controller', comments: str = '', is_enabled: bool = True, ): BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__(self, *, perThread: bool = False, throughput: float = 1, throughputMode: ThroughputMode = ThroughputMode.TOTAL, name: str = 'Throughput Controller', comments: str = '', is_enabled: bool = True,): self.throughputMode = throughputMode self.perThread = perThread self.throughput = throughput IncludesElements.__init__(self) BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__( self, *, ignoreSubControllers: bool = False, name: str = 'Random Controller', comments: str = '', is_enabled: bool = True, ): self.ignoreSubControllers = ignoreSubControllers BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__( self, *, condition: str, name: str = 'While Controller', comments: str = '', is_enabled: bool = True, ): self.condition = condition BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__( self, *, node_path: str, name: str = 'Module Controller', comments: str = '', is_enabled: bool = True, ): self.node_path = node_path BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__( self, *, includePath: str, name: str = 'Include Controller', comments: str = '', is_enabled: bool = True, ): self.includePath = includePath BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__( self, *, switchValue: str, name: str = 'Switch Controller', comments: str = '', is_enabled: bool = True, ): self.switchValue = switchValue IncludesElements.__init__(self) BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__( self, *, includeTimers: bool = False, parent: bool = False, name: str = 'Transaction Controller', comments: str = '', is_enabled: bool = True, ): self.includeTimers = includeTimers self.parent = parent BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__( self, *, condition: str, evaluateAll: bool = False, useExpression: bool = True, name: str = 'If Controller', comments: str = '', is_enabled: bool = True, ): self.condition = condition self.evaluateAll = evaluateAll self.useExpression = useExpression BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)
def __init__(self, *, name: str = 'Simple Controller', comments: str = '', is_enabled: bool = True,): IncludesElements.__init__(self) BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)