# test-mk-module.py
from mkconnect.mouldking.MouldKing import MouldKing
from mkconnect.tracer.TracerConsole import TracerConsole
from mkconnect.advertiser.AdvertiserBTSocket import AdvertiserBTSocket

print("=== Initialisierung ===")
tracer = TracerConsole()
advertiser = AdvertiserBTSocket()

mk = MouldKing()
mk.SetAdvertiser(advertiser)
mk.SetTracer(tracer)

print("\n=== Module6_0 ===")
try:
    mod6 = mk.Module6_0()
    print("Module6_0() erfolgreich erstellt")
    print("Methoden von mod6:")
    methods = [m for m in dir(mod6) if not m.startswith('_')]
    print(methods)
    print("\nAnzahl Methoden:", len(methods))
except Exception as e:
    print("Fehler bei Module6_0():", str(e))

print("\n=== Module4_0 ===")
try:
    mod4 = mk.Module4_0()
    print("Module4_0() erfolgreich erstellt")
    print("Methoden von mod4:")
    methods = [m for m in dir(mod4) if not m.startswith('_')]
    print(methods)
    print("\nAnzahl Methoden:", len(methods))
except Exception as e:
    print("Fehler bei Module4_0():", str(e))