1.0.13 • Published 5 years ago

@xyzblocks/ration-formulation-domain v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@xyzblocks/ration-formulation-domain

Ration Formulation Domain

Build Status

Installation

npm install @xyzblocks/ration-formulation-domain --save

API

CompositionIngredientNutrient extends IngredientNutrient

Properties

  • id -> string
  • abbreviation -> string
  • name -> string
  • unit -> string
  • value -> number
  • lowerLimit -> number
  • upperLimit -> 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 -> string
  • group -> string
  • name -> string
  • nutrients -> Array
  • value -> number
  • cost -> number
  • lowerLimit -> number
  • upperLimit -> number

Methods

  • calculateTotalCost(): number
  • toDTO(): IFormulatedRationIngredient
1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago