@xyzblocks/ration-formulation-domain
v1.0.13
Published
Ration Formulation Domain
Downloads
1
Readme
@xyzblocks/ration-formulation-domain
Ration Formulation Domain
Installation
npm install @xyzblocks/ration-formulation-domain --save
API
CompositionIngredientNutrient extends IngredientNutrient
Properties
id
-> stringabbreviation
-> stringname
-> stringunit
-> stringvalue
-> numberlowerLimit
-> numberupperLimit
-> number
Methods
calculateInadequacy(precision: number): number
getStatusText(precision: number): string
isAdequate(precision: number): boolean
isExcessive(precision: number): boolean
isInadequate(precision: number): boolean
toDTO(): ICompositionIngredientNutrient
FormulatedRationIngredient extends Ingredient
Properties
id
-> stringgroup
-> stringname
-> stringnutrients
-> Arrayvalue
-> numbercost
-> numberlowerLimit
-> numberupperLimit
-> number
Methods
calculateTotalCost(): number
toDTO(): IFormulatedRationIngredient