RomeoIndiaJulietUniform/AquaManage_Backend

Implement PlantedTank Sensor and MarineTank Sensor that extends Basic Tank Model in the Sensor Microservice

Open

#1 opened on Oct 6, 2024

 (4 comments) (0 reactions) (1 assignee)Java (6 forks)auto 404
JavaMicroServicesenhancementhacktoberfesthacktoberfest2024help wanted

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Issue: Implement PlantedTankService and MarineTankService

Description

We need to create two models, **PlantedTank Sensor ** and **MarineTank Sennsor **, that will manage the functionalities specific to planted and marine tanks, respectively. Both services should implement the BasicTank Model interface to ensure consistency and shared functionalities across different tank types.

Parameters

  • Basic Parameters:

    • Temperature
    • pH Levels
    • Light
    • Nitrate Sensor
  • Planted Tank Parameters:

    • CO2 Sensor
  • Marine Tank Parameters:

    • Salinity Sensor
    • Calcium Sensor
    • Alkalinity Sensor
    • Nitrite Sensor

Implement the PlantedTank class that:

  • Implements the BasicTank Model interface.
  • Provides specific functionality for managing planted tanks, including:
    • Managing the CO2 sensor.

Implement the MarineTank class that:

  • Implements the BasicTank Model interface.
  • Provides specific functionality for managing marine tanks, including:
    • Managing the salinity, calcium, alkalinity, and nitrite sensors.

Test Cases

  • Create unit tests for PlantedTank that validate:

    • The ability to correctly add and retrieve CO2 sensor readings.
    • Proper monitoring of basic parameters (Temperature, pH Levels, Light, Nitrate).
  • Create unit tests for MarineTank that validate:

    • The ability to correctly add and retrieve salinity, calcium, alkalinity, and nitrite sensor readings.
    • Proper monitoring of basic parameters (Temperature, pH Levels, Light, Nitrate).

Acceptance Criteria

  • Both services should compile without errors.
  • Each service should have its own unique functionalities while adhering to the methods defined in the BasicTankService interface.
  • Unit tests should be created to validate the behavior of each service and should pass successfully.

Additional Notes

  • Ensure proper documentation for each method and class.
  • Follow the project's coding standards and conventions.

Contributor guide