#!/bin/bash
# Launcher script for DryBox integrated protocol

echo "DryBox Integrated Protocol Launcher"
echo "==================================="
echo ""
echo "1. Start GSM Simulator"
echo "2. Run Integrated UI"
echo "3. Run Sender (CLI)"
echo "4. Run Receiver (CLI)"
echo "5. Run Test Suite"
echo ""
read -p "Select option (1-5): " choice

case $choice in
    1)
        echo "Starting GSM simulator..."
        python3 gsm_simulator.py
        ;;
    2)
        echo "Starting integrated UI..."
        python3 UI/integrated_ui.py
        ;;
    3)
        echo "Starting sender..."
        python3 integrated_protocol.py sender
        ;;
    4)
        echo "Starting receiver..."
        python3 integrated_protocol.py receiver
        ;;
    5)
        echo "Running test suite..."
        cd .. && python3 test_drybox_integration.py
        ;;
    *)
        echo "Invalid option"
        ;;
esac