CloudTwin  ROS2 Humble
Digital twin for path and trajectory optimisation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
App\Services\PredictionService Class Reference

Public Member Functions

 __construct ()
 
 predict (string $roomDepartureCode, string $roomArrivalCode, string $departureTime)
 

Private Member Functions

 fallbackPrediction (string $roomDepartureCode, string $roomArrivalCode)
 

Private Attributes

string $baseUrl
 

Constructor & Destructor Documentation

◆ __construct()

App\Services\PredictionService::__construct ( )

Member Function Documentation

◆ fallbackPrediction()

App\Services\PredictionService::fallbackPrediction ( string  $roomDepartureCode,
string  $roomArrivalCode 
)
private

Simple heuristic fallback: 5 minutes base + up to 10 minutes based on room IDs.

◆ predict()

App\Services\PredictionService::predict ( string  $roomDepartureCode,
string  $roomArrivalCode,
string  $departureTime 
)

Get the predicted delivery time (in minutes) between two rooms. Falls back to a default heuristic if the prediction service is unavailable.

Member Data Documentation

◆ $baseUrl

string App\Services\PredictionService::$baseUrl
private

The documentation for this class was generated from the following file: