Package infrastructure.digitaltwins
Class DigitalTwinManager
java.lang.Object
infrastructure.digitaltwins.DigitalTwinManager
- All Implemented Interfaces:
ActuatorRepository
,MedicalTechnologyRepository
public class DigitalTwinManager
extends Object
implements MedicalTechnologyRepository, ActuatorRepository
Digital Twin Manager that implements the repositories of the application.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Optional<ActuatorID>
findActuatorInRoom
(ActuatorType actuatorType, RoomID roomID) Method to find an actuator of a specific type inside a room specified with its id.final Optional<MedicalTechnology>
findBy
(MedicalTechnologyID medicalTechnologyID) Find a medical technology by its id and gets its data.
-
Constructor Details
-
DigitalTwinManager
public DigitalTwinManager()Default constructor.
-
-
Method Details
-
findBy
Description copied from interface:MedicalTechnologyRepository
Find a medical technology by its id and gets its data.- Specified by:
findBy
in interfaceMedicalTechnologyRepository
- Parameters:
medicalTechnologyID
- the id used to find the medical technology- Returns:
- the medical technology data
-
findActuatorInRoom
Description copied from interface:ActuatorRepository
Method to find an actuator of a specific type inside a room specified with its id.- Specified by:
findActuatorInRoom
in interfaceActuatorRepository
- Parameters:
actuatorType
- the type of actuator to findroomID
- the room id where the actuator should be placed.- Returns:
- an optional that contains the actuator id if found, empty otherwise.
-