Skip to content

Mostakim52/Java-University-Project---Electricity-Management-System

Repository files navigation

Java-University-Project---Electricity-Management-System

About the Project

This is an Electricity Management System developed as a university project for a CSE course in the 3rd Semester. The application provides a graphical interface to manage electricity usage, billing, and monitoring for different sectors, buildings, and apartments.

Features

  • Interactive Map Visualization: Sector-based electricity usage monitoring with color-coded intensity
  • Real-time Monitoring: Real-time electricity usage tracking with dynamic updates
  • Billing System: Automatic billing calculation based on usage
  • User Management: Add, edit, and delete users and buildings
  • Email Notifications: Send bills and notifications to users via email
  • Simulation Mode: Simulate electricity usage patterns
  • Data Persistence: Save and load data from files
  • Multi-threaded Processing: Efficient handling of real-time data updates

Team Members

Project Structure

The project is organized into the following packages:

src/
└── com/
    └── electricitymanagement/
        ├── controller/       # Business logic and control flow
        ├── gui/              # Graphical user interface components
        ├── model/            # Data models and structures
        └── util/             # Utility classes and helpers

Getting Started

Prerequisites

  • Java 8 or later
  • JavaFX library
  • JavaMail API (for email functionality)

Running the Application

  1. Using JAR File:

    • Simply run the CSE-ELctricity.jar file directly
    • Double-click on the JAR file or run from command line:
      java -jar CSE-ELctricity.jar
  2. Using an IDE:

    • Import the project into Eclipse, IntelliJ IDEA, or NetBeans
    • Ensure all dependencies are properly configured
    • Run the Main class located at src/com/electricitymanagement/Main.java

Project Files

  • src/com/electricitymanagement/Main.java: Entry point of the application
  • src/com/electricitymanagement/gui/ApplicationGUI.java: Main GUI window
  • Data Files:
    • ElectricityFile.txt: Stores electricity usage data
    • ElectricityUsers.txt: Stores user information
  • Images: Map and sector images in Sectors/ and Sector buttons/ directories

Technologies Used

  • Java: Core programming language
  • JavaFX: GUI framework
  • JavaMail API: Email functionality
  • Multi-threading: Real-time data processing
  • File I/O: Data persistence

Usage Instructions

  1. Login: Use the login screen to access the system
  2. View Map: The main map displays different sectors with color-coded usage
  3. Manage Buildings: Add, edit, or delete buildings in each sector
  4. Monitor Usage: View real-time electricity usage for each apartment
  5. Generate Bills: Calculate and send bills to users
  6. Simulation: Run simulations to test the system

License

This project is for educational purposes only.

Acknowledgments

  • Course instructors and university staff
  • All contributors and testers

Contact

For any questions or feedback, please contact the project team.

About

A Java & JavaFX–based Electricity Management System with real-time monitoring, billing, user management, and sector-level visualization.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages