1.0.13 • Published 7 years ago

@xyzblocks/ration-formulation-domain v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago