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