Getting Started - jjaroztegi/BuildingSignalSimulator GitHub Wiki
Getting Started
This guide will help you set up and run the Building Signal Simulator on your system.
Prerequisites
Manual Setup
- Java JDK 1.8.0_131
- Apache Tomcat 9.0.89
- MS Access database
- Web browser with JavaScript enabled
Docker Setup
- Docker
- Docker Compose
- Web browser with JavaScript enabled
Installation
Option 1: Manual Setup (Windows University Environment)
-
Clone the repository:
git clone https://github.com/jjaroztegi/BuildingSignalSimulator.git cd BuildingSignalSimulator
-
Run the build script:
build_uni.bat
This script handles:
- Environment variables configuration
- Java compilation
- Deployment to Tomcat
-
Access the application at: http://localhost:8082/BuildingSignalSimulator
Option 2: Manual Setup (Linux/Mac Environment)
-
Clone the repository:
git clone https://github.com/jjaroztegi/BuildingSignalSimulator.git cd BuildingSignalSimulator
-
Ensure Java and Tomcat are installed and JAVA_HOME is set
-
Modify the build.sh script to set the correct TOMCAT_WEBAPPS path
-
Make the build script executable and run it:
chmod +x build.sh ./build.sh
This script handles:
- Java compilation
- Compiling with Java 8 compatibility and migrating to Jakarta EE
- Deployment to Tomcat
-
Access the application at: http://localhost:8080/BuildingSignalSimulator
Option 3: Docker Setup
-
Clone the repository:
git clone https://github.com/jjaroztegi/BuildingSignalSimulator.git cd BuildingSignalSimulator
-
Build and start the container:
docker compose up -d
-
Access the application at: http://localhost:1313/BuildingSignalSimulator
Quick Start Guide
-
Create a New Configuration
- Navigate to the "Configuration" tab
- Enter building details (name, number of floors, head-end level)
- Click "Save Configuration"
-
Add Components
- Go to the "Components" tab
- Select component type (Cable Coaxial, Base de Toma, Derivador, Distribuidor)
- Add required components for your setup
-
Run Simulation
- Switch to the "Simulation" tab
- Arrange components for each floor
- Click "Calculate" to run the simulation
-
View Results
- Check the "Results" tab
- Review signal levels for each floor
- Verify levels are within acceptable margins (color-coded)
- Review total cost and optimization suggestions
Troubleshooting
Common Issues
-
Database Connection Issues
- Verify MS Access database file location
- Check database connection settings
- Ensure proper JDBC driver is available
-
Tomcat Deployment Problems
- Verify Tomcat version (must be 9.0.89)
- Check Tomcat logs for errors
- Ensure proper permissions on deployment directory
-
Build Script Errors
- Verify Java version (must be 1.8.0_131)
- Check JAVA_HOME environment variable
- Ensure all required dependencies are available
Getting Help
If you encounter issues not covered here:
- Check the Issues section
- Review error logs in
logs/
directory - Create a new issue with detailed information about the problem
Next Steps
- Read the Architecture guide to understand the system structure
- Review the API Reference for integration
- Check the Features documentation for detailed functionality