File indexing completed on 2025-01-18 09:12:09
0001
0002
0003 import acts
0004 import acts.examples
0005
0006
0007 s = acts.examples.Sequencer(events=1000, numThreads=10, logLevel=acts.logging.VERBOSE)
0008
0009
0010 class PyAlg(acts.examples.IAlgorithm):
0011 def __init__(self, name, level):
0012 acts.examples.IAlgorithm.__init__(self, name, level)
0013
0014
0015
0016
0017 def execute(self, context):
0018 return acts.examples.ProcessCode.SUCCESS
0019
0020
0021 class PyAlg1(acts.examples.IAlgorithm):
0022 def name(self):
0023 return "PyAlg1"
0024
0025 def execute(self, context):
0026 print(context.eventStore.exists("blubb"))
0027 return acts.examples.ProcessCode.SUCCESS
0028
0029
0030 s.addAlgorithm(PyAlg(name="blubb", level=acts.logging.INFO))
0031
0032 print("alg go")
0033 s.run()