1.0.13 • Published 8 years ago

@xyzblocks/ration-formulation-domain v1.0.13

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

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago