Constructor
new CompacSizerModel(siteId)
CompacSizerModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Compac Sizer
Source
Members
autoCreateBatchDelaynumber
The Auto Create Batch Delay in Seconds for this Compac Sizer
Type
-
number
Source
deletedboolean
Whether the Compac Sizer has been deleted
Type
-
boolean
Source
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
freshPackIntegrationObject
The FreshPack Integration Configuration for this Compac Sizer
Type
-
Object
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
idstring
The Compac Sizer ID
Type
-
string
Source
lanesArray.<{id: string, number: number, points: {cupFill: number}}>
The Lanes defined for this Compac Sizer
Type
-
Array.<{id: string, number: number, points: {cupFill: number}}>
Source
namestring
The Compac Sizer Name
Type
-
string
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
packingLineIdstring
The Packing Line ID that manages this Compac Sizer
Type
-
string
Source
pointsObject
The Points used by this Compac Sizer
Type
-
Object
Source
rtuIdnumber
The RTU this Compac Sizer belongs to
Type
-
number
Source
siteIdnumber
The Site ID associated with this Compac Sizer
Type
-
number
Source
sizerTypestring
The Sizer Type
Type
-
string
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
updateTimestampDate
When the Compac Sizer was last updated
Type
-
Date
Source
Methods
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