RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

CompacSizerModel

Extends
  • BaseModel

Summary

CompacSizerModel Constructor

.

Description

Model Class for a Compac Sizer

Constructor

protected

new CompacSizerModel(siteId)

CompacSizerModel Constructor

Parameters

  • siteId number

    The Site ID associated with this Compac Sizer

Source

Members

framesArray.<{number: number, startLane: number, endLane: number, points: {machineRodsPerMinute: number}}>

An Optional Array of Frames defined for this Compac Sizer

Type

  • Array.<{number: number, startLane: number, endLane: number, points: {machineRodsPerMinute: number}}>

Source

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

The Fruit Sizes defined and handled by this Compac 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, productId: number, productName: number, utilization: number, status: number, pendingProductId: number, pendingProductName: number}}>

The Outlets defined for this Compac Sizer

Type

  • Array.<{id: string, number: number, type: string, points: {name: number, fruitPerMinute: number, productId: number, productName: number, utilization: number, status: number, pendingProductId: number, pendingProductName: number}}>

Source

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

An Array of Sources that deliver Fruit to this Compac Sizer

Type

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

Source

Methods

static

fromJSON(json, siteId) → {CompacSizerModel}

Create a new CompacSizerModel 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 Compac Sizer

Returns

  • CompacSizerModel

Source