RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

MAFSizerModel

Extends
  • BaseModel

Summary

MAFSizerModel Constructor

.

Description

Model Class for a MAF Sizer

Constructor

protected

new MAFSizerModel(siteId)

MAFSizerModel Constructor

Parameters

  • siteId number

    The Site ID associated with this MAF Sizer

Source

Members

fruitSizesArray.<{fruitSize: string, points: {incomingFruitPerMinute: number, recycledFruitPerMinute: number, allocatedFruitPerMinute: number}}>

The Fruit Sizes defined and handled by this MAF Sizer

Type

  • Array.<{fruitSize: string, points: {incomingFruitPerMinute: number, recycledFruitPerMinute: number, allocatedFruitPerMinute: number}}>

Source

outletsArray.<{id: string, number: number, type: string, points: {name: number, fruitPerMinute: number, articleName: number, utilization: number}}>

The Outlets defined for this MAF Sizer

Type

  • Array.<{id: string, number: number, type: string, points: {name: number, fruitPerMinute: number, articleName: number, utilization: number}}>

Source

sourcesArray.<({type: string, riserId: string}|{type: string, sizerId: string, outletNumbers: Array.<number>})>

An Array of Sources that deliver Fruit to this MAF Sizer

Type

  • Array.<({type: string, riserId: string}|{type: string, sizerId: string, outletNumbers: Array.<number>})>

Source

Methods

static

fromJSON(json, siteId) → {MAFSizerModel}

Create a new MAFSizerModel from a JSON Object or JSON String

Parameters

  • json Object.<string, any> | string

    A JSON Object or JSON String

  • siteId number

    The Site ID associated with this MAF Sizer

Returns

  • MAFSizerModel

Source