Class PowerSupply
java.lang.Object
domain.Component
domain.PowerSupply
Represents a power supply component in a machine |
Représente une alimentation électrique dans une machine.
- Author:
- FIGUEIRAS Jossua
-
Constructor Summary
ConstructorsConstructorDescriptionPowerSupply(int id, String brand, String model, int m, int tid, int power) Creates a PowerSupply instance with explicit values | Crée une instance PowerSupply avec des valeurs explicites.PowerSupply(ResultSet result) Creates a PowerSupply instance from a SQL result set | Crée une instance PowerSupply à partir d'un résultat SQL. -
Method Summary
Modifier and TypeMethodDescriptionintgetPower()Returns the power of this supply in watts | Renvoie la puissance de cette alimentation en watts.Methods inherited from class Component
compareComponentById, getBrand, getById, getId, getMachineId, getModel, getTicketId, setTicketId, updateComponent, whoami
-
Constructor Details
-
PowerSupply
Creates a PowerSupply instance with explicit values | Crée une instance PowerSupply avec des valeurs explicites.- Parameters:
id- the unique identifier of the component | l'identifiant unique du composantbrand- the brand of the power supply | la marque de l'alimentationmodel- the model of the power supply | le modèle de l'alimentationm- the machine ID this component belongs to | l'identifiant de la machine à laquelle le composant appartienttid- the ticket ID associated with this component | l'identifiant du ticket associé à ce composantpower- the power of the supply in watts | la puissance de l'alimentation en watts
-
PowerSupply
Creates a PowerSupply instance from a SQL result set | Crée une instance PowerSupply à partir d'un résultat SQL.- Parameters:
result- the SQL result set containing power supply data | le résultat SQL contenant les données de l'alimentation
-
-
Method Details
-
getPower
public int getPower()Returns the power of this supply in watts | Renvoie la puissance de cette alimentation en watts.- Returns:
- the power in watts | la puissance en watts
-