C# 클래스 Marmalade_Global.PlantController

파일 보기 프로젝트 열기: DMOE15C/project-marmelade

공개 메소드들

메소드 설명
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.

메소드 상세

GetPlant() 공개 정적인 메소드

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

PlantExists() 공개 정적인 메소드

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

RegisterPlant() 공개 정적인 메소드

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
리턴 void