C# Class Marmalade_Global.PlantController

Exibir arquivo Open project: DMOE15C/project-marmelade

Public Methods

Method 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 method

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

PlantExists() public static method

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

RegisterPlant() public static method

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
return void