Object current = ownerobject(c); Object item = param(1); int port = param(2); /***popup:BatchProcessing*/ /**Batch Processing*/ int batchnumber = /**\nBatch size: *//***tag:batch_num*//**/20/**/; double cycletime = /**\nCycle time: *//***tag:cycle_time*//**/beta(450, 1100, 1.5, 5, getstream(current))/**/; string labelName = /**\nLabel: *//***tag:label_name*//**/"f_curbatch"/**/; treenode curlabel = current.labels.assert(labelName, 0); if (Model.time > 0 && curlabel.value > 1) { curlabel.value -= 1; return 0; } else { curlabel.value = batchnumber; return cycletime; }