C# Class Marmalade_Global.PlantController

Afficher le fichier Open project: DMOE15C/project-marmelade

Méthodes publiques

Méthode Description
GetPlant ( int id ) : IPlant

Gets plant from the list for needed ID and returns it(IPlant).

PlantExists ( int id ) : bool

Checks if plant exists inside list.

RegisterPlant ( string name, string type, double lifetime, double procurementvalue, double scrapvalue, double yearsused ) : void

Registers a new plant.

Method Details

GetPlant() public static méthode

Gets plant from the list for needed ID and returns it(IPlant).
public static GetPlant ( int id ) : IPlant
id int
Résultat IPlant

PlantExists() public static méthode

Checks if plant exists inside list.
public static PlantExists ( int id ) : bool
id int
Résultat bool

RegisterPlant() public static méthode

Registers a new plant.
public static RegisterPlant ( string name, string type, double lifetime, double procurementvalue, double scrapvalue, double yearsused ) : void
name string
type string
lifetime double
procurementvalue double
scrapvalue double
yearsused double
Résultat void