Cmodel@@)BTools@ Brelease4.5B FlowItemBin@objectBstored@@BFlowItemBinsubnode@BFlowItemBinsubnode@0@Item0_NULLNAMEB FlexsimBox@r FlexsimBox,@object@B itemtype@Bvisual@@Bcolor@a@Bred@A)Z?Bgreen@A)Z?Bblue@A)Z?Bshape@ufs3d\FlowItem.3DSB shapeindex@v?B imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@PQ?B spatialsy@QQ?B spatialsz@Rףp= ?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@@BBasic@rBasic,@objectB itemtype@Bvisual@@Bcolor@a@Bred@?Bgreen@?Bblue@?B imageobject@qbitmaps\flowitempicture.bmpBimageindexobject@rA@B imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B billboard@jB spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BCan@rCan,@objectB itemtype@Bvisual@@Bcolor@a@Bred@?Bgreen@?Bblue@?B imageobject@qfs3d\BBpepsican.bmpBimageindexobject@rA@B imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B billboard@jB spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BSphere@rSphere,@objectB itemtype@Bvisual@@Bcolor@a@Bred@?Bgreen@?Bblue@?B imageobject@qfs3d\BBsphere.bmpBimageindexobject@rB@B imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B billboard@j?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BTextured Colored Box@rTextured Colored Box,@objectB itemtype@Bvisual@@ Bcolor@a@Bred@Rr/0?Bgreen@Rr/0?Bblue@Rr/0?Bshape@ufs3d\texturebox.wrlB shapeindex@v@B imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@PQ?B spatialsy@QQ?B spatialsz@Rףp= ?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?B special@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BPallet@rPallet-@objectB itemtype@B behaviour@@Beventfunctions@@B OnReceiveD@Knodefunction(node("/project/exec/globals/nodefunctions/palletentry"),c,i);@Bd/project/exec/globals/nodefunctions/palletentrye tVIEWvirot/grjPpHo@4Bvisual@@Bcolor@a@Bred@2?Bgreen@88?Bblue@4?Bshape@ufs3d\FlowItem\Pallet.wrlB shapeindex@v@B imagebase@s***Bimageindexbase@tB nochildscale@_?B noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@Rp= ף?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BTote@rTote,@objectB itemtype@Bvisual@@Bcolor@a@Bred@9̗?Bgreen@?Bblue@2?Bshape@u!fs3d\FlowItem\Product - Tote.3DSB shapeindex@v@B imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?Bspatial@@B spatialx@MB spatialy@NB spatialz@OB spatialsx@Pffffff?B spatialsy@Qffffff?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Boffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BTextured Colored Cylinder@rTextured Colored Cylinder,@objectB itemtype@Bvisual@@ Bcolor@a@Bred@3ۃ?Bgreen@3ۃ?Bblue@3ۃ?Bshape@ufs3d\texturecyl.wrlB shapeindex@v@B imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@Pffffff?B spatialsy@Qffffff?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BTextured Colored Sphere@rTextured Colored Sphere,@objectB itemtype@Bvisual@@ Bcolor@a@Bred@3ۃ?Bgreen@3ۃ?Bblue@3ۃ?Bshape@ufs3d\texturesphere.wrlB shapeindex@v@B imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BPerson@rPerson,@objectB itemtype@Bvisual@@Bcolor@a@Bred@?Bgreen@?Bblue@Bshape@ufs3d\Operator.3DSB shapeindex@v@B imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B spatial@@B spatialx@MQ?B spatialy@N)\(B spatialz@OB spatialsx@P?B spatialsy@Q(\?B spatialsz@R{Gz?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@V?Boffsety@W?Boffsetz@XB offsetsx@\@B offsetsy@]?B offsetsz@^@33@B offsetrx@YVB offsetry@ZB offsetrz@[VB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@BLoaded Pallet@rLoaded Pallet,@objectB itemtype@Bvisual@@Bcolor@a@Bred@A)Z?Bgreen@A)Z?Bblue@A)Z?Bshape@u.fs3d\FlowItem\Loaded Pallet\Loaded Pallet.3DSB shapeindex@v8@B imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?Bspatial@@B spatialx@M?B spatialy@N{Gz?B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Boffsetx@V?Boffsety@W?Boffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^(\?B offsetrx@YB offsetry@ZB offsetrz@[Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@@BTextured Colored Plane@rTextured Colored Plane,@objectB itemtype@Bvisual@@ Bcolor@a@Bred@3ۃ?Bgreen@3ۃ?Bblue@3ۃ?Bshape@ufs3d\textureplaneup.wrlB shapeindex@v9@B imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@PQ?B spatialsy@QQ?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@B BasicSphere@r BasicSphere,@objectB itemtype@Bvisual@@Bcolor@a@Bred@A)Z?Bgreen@A)Z?Bblue@A)Z?B shapeindex@vBimageindexobject@rB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@@BBasicCylinder@rBasicCylinder,@objectB itemtype@Bvisual@@Bcolor@a@Bred@A)Z?Bgreen@A)Z?Bblue@A)Z?B shapeindex@vBimageindexobject@rB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@@B BasicCone@r BasicCone,@objectB itemtype@Bvisual@@Bcolor@a@Bred@A)Z?Bgreen@A)Z?Bblue@A)Z?B shapeindex@vBimageindexobject@rB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@@B BasicBox@r BasicBox,@objectB itemtype@Bvisual@@Bcolor@a@Bred@A)Z?Bgreen@A)Z?Bblue@A)Z?B shapeindex@vBimageindexobject@rB noondraw@k?B nopredraw@l?B spatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/FlowItemParametersBstats_lastmovetime@IBstats_creationtime@JBlabels@@BTaskExecuterFlowItem@BTaskExecuterFlowItem@objectB classes@@B Operator@8`AB TaskExecuter@]AB Dispatcher@@[ABFlexsimObject@/ABsuperclasses@@B TaskExecuter@`6`AB Dispatcher@@[ABFlexsimObject@/AB variables@@>Bactivetasksequence@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@Bunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@@Boldbreakrequirement@B breakto@Ftreenode activets = parnode(1); treenode current = ownerobject(c); @B travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@?B useoffsets@?Boffsettingnow@Boffsetbegintime@Boffsettotaltime@B offsetlocx@B offsetlocy@B offsetlocz@B offsetbeginx@B offsetbeginy@B offsetbeginz@Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@Bcollisiontrigger@treenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@#treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@Bqueuestrategy@mtreenode tasksequence = parnode(1); /**Sort by TaskSequence Priority*/ return getpriority(tasksequence);@B4/exedefupalle t? l (=Blastrecursetime@Blastrecurseinvolved@Bcoordinatedtasks@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@Bresettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@@B OnReset@@B(Bcppfunctions@@Bcppvariables@@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@Bshape@ufs3d\Operator.3DSB shapeindex@v@Bpicture@c bitmaps\TaskExecuterpicture.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?Bframe@Bspecial@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}#VIEW:/pages/TaskExecuterParametersBreportvariables@@B maxcontent@B loadtime@B loadtrigger@B unloadtime@Bunloadtrigger@B maxspeed@B acceleration@B deceleration@Bbreakto@B useoffsets@B loadedspeed@B emptyspeed@Bpassimmediately@Bpassto@Bqueuestrategy@Bmessagetrigger@Bondrawtrigger@Bcollisionspheres@Bcollisionobjects@B resettrigger@B spatial@@B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q(\?B spatialsz@R{Gz?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@V?Boffsety@W?Boffsetz@XB offsetsx@\@B offsetsy@]?B offsetsz@^333333@B offsetrx@YVB offsetry@ZB offsetrz@[VB centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Bmobileresource@B objectinfo@@B Output: 0@BStatus: NULL@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@B itemtype@B GlobalVarGen,@object Bclasses@@B GlobalVarGen@R`AB variables@@B definecode@B loadcode@Btable@@B usercode@B commands@Blabels@@B defaultlabel@B behaviour@@Beventfunctions@@Bcppfunctions@@Bspatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBvisual@@B nochildscale@_?B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @Bevents@ @Bspecial@@Btitle@dObjectB description@bBguifocusclass@}$VIEW:/pages/GlobalVarGen ParametersB ExcelAutoD9@objectB classes@@B ExcelAuto@ g`AB variables@@ Bneedtocompile@Bexcellocation@+c:\Program Files\Microsoft Office\Office10Bfirstworkbook@B curworkbook@B importtable@@BRow_1@@ BExcel_Book_Name@NEWBExcel_Sheet_Name@Sheet1BFlexsim_Table_Location@/Flask Loading>variablesBFlexsim_Table_Name@componentlistB Headers@@BData_Distinction@?B Start_Row@B Start_Col@B Num_Rows@B Num_Cols@BMain_Percent@BRow_2@@ BExcel_Book_Name@NEWBExcel_Sheet_Name@Sheet1BFlexsim_Table_Location@/Flask Loading>variablesBFlexsim_Table_Name@componentlistB Headers@@BData_Distinction@?B Start_Row@B Start_Col@B Num_Rows@B Num_Cols@BMain_Percent@BRow_3@@ BExcel_Book_Name@NEWBExcel_Sheet_Name@Sheet1BFlexsim_Table_Location@/Canister arrival>variablesBFlexsim_Table_Name@ scheduleB Headers@@BData_Distinction@?B Start_Row@B Start_Col@B Num_Rows@B Num_Cols@BMain_Percent@BRow_4@@ BExcel_Book_Name@NEWB@0.00BFlexsim_Table_Location@/Canister arrival>variablesBFlexsim_Table_Name@ scheduleB Headers@@BData_Distinction@?B Start_Row@B Start_Col@B Num_Rows@B Num_Cols@BMain_Percent@Bsheet@Btname@B headerval@Bdatadistinctval@B OnImport@w treenode pbar = node("/active/Excel Import Progress", views()); // Pointer to the Progress Window treenode mainpercent = node("/Main Percent", pbar); // Pointer to the mainpercent field treenode subtitle = node("/Sub Title", pbar); // Pointer to the subtitle field treenode subpercent = node("/Sub Percent", pbar); // Pointer to the subpercent field double mainpercentdone = parval(1); // The precentage of the Main Progress bar that has been completed (will be between 0 and 1) // This trigger fires after all of the tables have been imported // It is used to modify the imported data or create any objects based on the imported data // If you want to change the progress bar during execution of this code // The following code is an example of how to change the percent on the progress bars and sub title. // Sub Title - setviewtext(subtitle, apchar(concat("Importing ", sheetname, " into ", tablename))); // Sub Percent - setviewtext(subpercent, apchar(numtostring(0, 3, 0))); // The first zero is the percent (from 0 to 100) // Repaint the Sub Percent - repaintview(node("/Sub Bar", up(subpercent))); // This must be done after setting the percentage // Main Percent - setviewtext(mainpercent, apchar(numtostring(100 * mainper, 3, 0))); // The first zero is the percent (from 0 to 100) // Repaint the Main Percent - repaintview(node("/Main Bar", up(mainpercent))); // This must be done after setting the percentage // The following is an example of how this code would be used to change the progress bars /* setviewtext(subtitle, apchar("Import Finish Code")); // Set the subtitle to display what we are doing int iterations = 10; // Set the number of iterations to make msg("TEST", "Watch the percentages increase with each message!"); // Create a message so that we can watch the progress for(int index = 1; index <= iterations; index++) // Iterate to show how this works { setviewtext(subpercent, apchar(numtostring(((double)index / (double)iterations) * 100, 3, 0))); // Set the sub percent to the percent done - remember the value is between 0 and 100 repaintview(node("/Sub Bar", up(subpercent))); // Repaint the sub progress bar double mainper = mainpercentdone + ((1- mainpercentdone) * ((double)index / (double)iterations)); // Calculate the total percent done setviewtext(mainpercent, apchar(numtostring(100 * mainper, 3, 0))); // Set the main percent - remember the value is between 0 and 100 repaintview(node("/Main Bar", up(mainpercent))); // Repaint the main progress bar msg("TEST", "Notice how the percentages are increasing with each message!"); // Create a message so that we can watch the progress } */ @Bh/active/Excel Import Progresspallviro/Main Percent/Sub Titleawse/Sub Percent?8( ?td=XH?=?=9kBImportTriggerPercent@B behaviour@@Beventfunctions@@Bcppfunctions@@B special@@ section1B guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/DelayPipeParametersB ignoredraw@f?B MTBFMTTR@bFilling CanisterL @objectB classes@@B MTBFMTTR@`AB variables@@ Bmembers@@BFilling Canistersubnode@D Bmtbf@Ctreenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution: */ return /**/exponential(1000, 1, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BT :/nonkx>tex?o?0l$@Bmttr@Atreenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution: */ return /**/erlang(1008, 1, 2, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BX:/nonkx>tex?o?0l$@ty"Bstate@&@B firstmtbf@mtreenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution */ /**\nDistribution: */ return /**/exponential(1000, 1, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BT :/nonkx>tex?o?0l$@Bapplyindividuals@?B downtrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down B uptrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down Bdownfunction@htreenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); double downtime = parval(3); treenode membercoupling = parnode(4); /**Stop object*/ /** \nExecute stopobject().*/ /** \nID: */ int id = /**/1/**/; /** \nPriority: */ double priority = /**/0/**/; stopobject(downobject ,state, id, priority); return 0; @B%:/nonkx>tex?o?0l$6Lk@9hk\?lx 6   9    744=#B upfunction@treenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); /**Resume object*/ /** \nExecute resumeobject().*/ /** \nID: */ int id = /**/1/**/; /** \nThe resumeobject() command is class dependent. It basically tells the object it can resume doing whatever it was doing before stopobject() was called. It's important to note that a complimentary Resume Function must be defined based on the Down Function defined.*/ resumeobject(downobject, id); return 0; @B:/nonkx>tex?o?0l$6Lk@6\  4x  =l  6 ,c)B mtbfstates@@B accuracy@Y@B rangecutoff@B behaviour@@Beventfunctions@@Bcppfunctions@@Bspatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB special@@Btitle@dTime Table ObjectB description@bB guifocus@| VIEW:/pages/MTBFMTTR ParametersBguifocusclass@} VIEW:/pages/MTBFMTTR ParametersBvisual@@b Arc WeldingL @objectB classes@@B MTBFMTTR@`AB variables@@ Bmembers@@BArc Weldingsubnode@ Bmtbf@@treenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution: */ return /**/exponential(100,1,1)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BT :/nonkx>tex?o?0l$ @dBmttr@Itreenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution */ /**\nDistribution: */ return /**/erlang(8, 1, 2, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BX:/nonkx>tex?o?0l$ @Bstate@&@B firstmtbf@@treenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution: */ return /**/exponential(100,1,1)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BT :/nonkx>tex?o?0l$ @dBapplyindividuals@?B downtrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down B uptrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down Bdownfunction@htreenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); double downtime = parval(3); treenode membercoupling = parnode(4); /**Stop object*/ /** \nExecute stopobject().*/ /** \nID: */ int id = /**/1/**/; /** \nPriority: */ double priority = /**/0/**/; stopobject(downobject ,state, id, priority); return 0; @B%:/nonkx>tex?o?0l$6Lk@9hk\?lx 6   9    744=5, B upfunction@treenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); /**Resume object*/ /** \nExecute resumeobject().*/ /** \nID: */ int id = /**/1/**/; /** \nThe resumeobject() command is class dependent. It basically tells the object it can resume doing whatever it was doing before stopobject() was called. It's important to note that a complimentary Resume Function must be defined based on the Down Function defined.*/ resumeobject(downobject, id); return 0; @B:/nonkx>tex?o?0l$6Lk@6\  4x  =l  6 ,c)B mtbfstates@@B accuracy@Y@B rangecutoff@B behaviour@@Beventfunctions@@Bcppfunctions@@Bspatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB special@@Btitle@dTime Table ObjectB description@bB guifocus@| VIEW:/pages/MTBFMTTR ParametersBguifocusclass@} VIEW:/pages/MTBFMTTR ParametersBvisual@@bCharger MaintainanceL @objectB classes@@B MTBFMTTR@`AB variables@@ Bmembers@@ BCharger Maintainancesubnode@!@B@@@BCharger Maintainancesubnode@@B@@@BCharger Maintainancesubnode@n@B@@@BCharger Maintainancesubnode@*@B@@@BCharger Maintainancesubnode@3@B@@@BCharger Maintainancesubnode@4@B@@@BCharger Maintainancesubnode@$@B@@@BCharger Maintainancesubnode@&@B@@@BCharger Maintainancesubnode@!@B@@@BCharger Maintainancesubnode@F6@B@@@BCharger Maintainancesubnode@7@B@@@BCharger Maintainancesubnode@w#@B@@@Bmtbf@%treenode current = ownerobject(c); treenode involved = parnode(1); /**By Expression*/ /** \nExpression: */ double value = /**/2000/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@7Pde;Bmttr@$treenode current = ownerobject(c); treenode involved = parnode(1); /**By Expression*/ /** \nExpression: */ double value = /**/500/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@7P/ Bstate@(@B firstmtbf@%treenode current = ownerobject(c); treenode involved = parnode(1); /**By Expression*/ /** \nExpression: */ double value = /**/2000/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@7P )Bapplyindividuals@?B downtrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down B uptrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down Bdownfunction@htreenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); double downtime = parval(3); treenode membercoupling = parnode(4); /**Stop object*/ /** \nExecute stopobject().*/ /** \nID: */ int id = /**/1/**/; /** \nPriority: */ double priority = /**/0/**/; stopobject(downobject ,state, id, priority); return 0; @B%:/nonkx>tex?o?0l$6Lk@9hk\?lx 6   9    744= B upfunction@treenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); /**Resume object*/ /** \nExecute resumeobject().*/ /** \nID: */ int id = /**/1/**/; /** \nThe resumeobject() command is class dependent. It basically tells the object it can resume doing whatever it was doing before stopobject() was called. It's important to note that a complimentary Resume Function must be defined based on the Down Function defined.*/ resumeobject(downobject, id); return 0; @B:/nonkx>tex?o?0l$6Lk@6\  4x  =l  6 ,c)B mtbfstates@?@B_idle@?B accuracy@Y@B rangecutoff@B behaviour@@Beventfunctions@@Bcppfunctions@@Bspatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB special@@Btitle@dTime Table ObjectB description@bB guifocus@| VIEW:/pages/MTBFMTTR ParametersBguifocusclass@} VIEW:/pages/MTBFMTTR ParametersBvisual@@bCharger FailureL @objectB classes@@B MTBFMTTR@`AB variables@@ Bmembers@@ BCharger Failuresubnode@!@B@ktex?o?0l$@Bmttr@Ktreenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution */ /**\nDistribution: */ return /**/uniform(150, 250, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BT :/nonkx>tex?o?0l$@Bstate@&@B firstmtbf@Atreenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution: */ return /**/exponential(1000,1,1)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BT :/nonkx>tex?o?0l$@Bapplyindividuals@?B downtrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down B uptrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down Bdownfunction@htreenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); double downtime = parval(3); treenode membercoupling = parnode(4); /**Stop object*/ /** \nExecute stopobject().*/ /** \nID: */ int id = /**/1/**/; /** \nPriority: */ double priority = /**/0/**/; stopobject(downobject ,state, id, priority); return 0; @B%:/nonkx>tex?o?0l$6Lk@9hk\?lx 6   9    744= B upfunction@treenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); /**Resume object*/ /** \nExecute resumeobject().*/ /** \nID: */ int id = /**/1/**/; /** \nThe resumeobject() command is class dependent. It basically tells the object it can resume doing whatever it was doing before stopobject() was called. It's important to note that a complimentary Resume Function must be defined based on the Down Function defined.*/ resumeobject(downobject, id); return 0; @B:/nonkx>tex?o?0l$6Lk@6\  4x  =l  6 ,c)B mtbfstates@?@B _processing@@B_busy@@B _blocked@@B accuracy@Y@B rangecutoff@B behaviour@@Beventfunctions@@Bcppfunctions@@Bspatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB special@@Btitle@dTime Table ObjectB description@bB guifocus@| VIEW:/pages/MTBFMTTR ParametersBguifocusclass@} VIEW:/pages/MTBFMTTR ParametersBvisual@@bCrane FailureL @objectB classes@@B MTBFMTTR@`AB variables@@ Bmembers@@BCrane Failuresubnode@0BCrane Failuresubnode@/BCrane Failuresubnode@Bmtbf@Ctreenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution: */ return /**/exponential(3000, 1, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BT :/nonkx>tex?o?0l$@ Bmttr@@treenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution: */ return /**/erlang(504, 1, 2, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BX:/nonkx>tex?o?0l$@"Bstate@&@B firstmtbf@Ctreenode current = ownerobject(c); treenode involved = parnode(1); /**Statistical Distribution: */ return /**/exponential(3000, 1, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BT :/nonkx>tex?o?0l$@ Bapplyindividuals@?B downtrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down B uptrigger@treenode current = ownerobject(c); treenode members = var_s(current,"members"); treenode involved = parnode(1); // If involved is equal to current, all of the members went down at the same time // Otherwise, involved is the object that went down Bdownfunction@htreenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); double downtime = parval(3); treenode membercoupling = parnode(4); /**Stop object*/ /** \nExecute stopobject().*/ /** \nID: */ int id = /**/1/**/; /** \nPriority: */ double priority = /**/0/**/; stopobject(downobject ,state, id, priority); return 0; @B%:/nonkx>texaria?o?0l$6Lk@9hk\?lx 6   9    744= B upfunction@treenode current = ownerobject(c); treenode downobject = parnode(1); int state = parval(2); /**Resume object*/ /** \nExecute resumeobject().*/ /** \nID: */ int id = /**/1/**/; /** \nThe resumeobject() command is class dependent. It basically tells the object it can resume doing whatever it was doing before stopobject() was called. It's important to note that a complimentary Resume Function must be defined based on the Down Function defined.*/ resumeobject(downobject, id); return 0; @B:/nonkx>tex?o?0l$6Lk@6\  4x  =l  6 r 2B mtbfstates@@B accuracy@Y@B rangecutoff@B behaviour@@Beventfunctions@@Bcppfunctions@@Bspatial@@ B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB special@@Btitle@dTime Table ObjectB description@bB guifocus@| VIEW:/pages/MTBFMTTR ParametersBguifocusclass@} VIEW:/pages/MTBFMTTR ParametersBvisual@@B settings@B fullhistory?B Charting@B fullreport@Busesummaryreport?Busestatereport?Bsummaryreport@ Bstats_contentBstats_contentminBstats_contentmaxBstats_contentavgB stats_inputB stats_outputBstats_staytimeminBstats_staytimemaxBstats_staytimeavgBstate_currentB state_sinceB statereport@B showpercents?B statelist@Bidle?B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing @Bwaiting_for_operator"@Bwaiting_for_transporter$@B breakdown&@Bscheduled_down(@B conveying*@B travel_empty,@Btravel_loaded.@Boffset_travel_empty0@Boffset_travel_loaded1@Bloading2@B unloading3@Bdown4@Bsetup5@Butilize6@B classlist@+BSourceBQueueB ProcessorBSinkB CombinerB SeparatorBMultiProcessorB ConveyorB MergeSortBRackB ReservoirB DispatcherB OperatorB TransporterB ElevatorBRobotBCraneB ASRSvehicleB FlowNodeB NetworkNodeBTrafficControlB VisualToolB RecorderBBasicTEBBasicFRB FluidTickerB FluidTankBFluidGeneratorBFluidTerminatorB FluidMixerB FluidBlenderBFluidSplitterB FluidPipeBFluidProcessorB ItemToFluidB FluidToItemBBasicConveyorBDiscreteCombinerBDiscreteGeneratorBDiscreteProcessorBLineControllerB ScoreCardBSystemControllerBactive@BLibrary@objectB viewfocus@MAIN:/project/libraryBviewwindowopen@?Bviewwindowtype@@B spatialx@MB spatialy@NX@B spatialsx@P`c@B spatialsy@Q0@B windowtitle@LibraryB OnPreOpen@. treenode libraryview = NULL; // Here I'm trying to find the Library treenode active = node("VIEW:/active"); for(int i = 1; i <= content(active); i++) { treenode curnode = rank(active, i); if(objectexists(tabwindow(curnode)) && get(tabwindow(curnode)) == -102) // palettewindows tabbed in one window { for(int w=1;w<=content(node("/tabcontrol",curnode));w++) { treenode checkview = rank(node("/tabcontrol",curnode),w); if(checkview!=c && objectexists(windowtitle(checkview)) && comparetext("Library", gets(windowtitle(checkview)))) { // activate that tab sendwindowmessage(windowfromnode(node("/tabcontrol",curnode)),4912,w-1,0); // TCM_SETCURFOCUS libraryview = curnode; break; } } } else if(curnode!=c && objectexists(windowtitle(curnode)) && comparetext("Library", gets(windowtitle(curnode)))) { libraryview = curnode; break; } } if(objectexists(libraryview)) { makeactive(libraryview); destroyobject(c); return(0); } setname(c, "Library"); if (not(get(node(">wasopen",c)))) { iterate(1, content(library()), 1) { setitem(rank(library(), count)); if(objectexists(node(">displaygrouplist/standard",item))) { sets(node(">displaygroup",item), "standard"); } } set(node(">wasopen",c),1); } //sets(node("/GroupIconGrid>displaygroup",c),"standard"); // Position the view if(!maintenance(42,-1)) // if onactivatenotify isn't disabled - (if this isn't firing because of tab dragging) { // the workspace rect int left = getsystemmetric(3); int right = getsystemmetric(4); int top = getsystemmetric(5); int bottom = getsystemmetric(6); set(spatialx(c),0); treenode activeviews = node("VIEW:/active"); int bust=1; // to prevent possible infinite loops int moved=1; int nextypos = 0; int nextxpos = 0; while(moved && bust<20) { moved = 0; for(int i=2;i<=content(activeviews);i++) { treenode view = rank(activeviews,i); if(view==c) continue; int my_left = get(spatialx(c)); int my_right = get(spatialx(c))+get(spatialsx(c)); int view_left = get(spatialx(view)); int view_right = get(spatialx(view))+get(spatialsx(view)); int my_top = get(spatialy(c)); int my_bottom = get(spatialy(c))+get(spatialsy(c)); int view_top = get(spatialy(view)); int view_bottom = get(spatialy(view))+get(spatialsy(view)); int xoverlap = ( (my_left >= view_left && my_left < view_right) || (my_right > view_left && my_right <= view_right) ); int yoverlap = ( (my_top >= view_top && my_top < view_bottom) || (my_bottom > view_top && my_bottom <= view_bottom) ); if( xoverlap && yoverlap && fabs(get(tabwindow(view)))==fabs(get(tabwindow(c))) ) { set(spatialy(c),view_bottom); if(nextxpos==0) nextxpos = view_right; if(nextypos==0) nextypos = view_top; if(get(spatialy(c))+get(spatialsy(c)) > bottom-top) { set(spatialx(c),nextxpos); nextxpos = 0; set(spatialy(c),nextypos); nextypos = 0; } moved = 1; break; } } bust++; } }@B"4GrouVIEW:/activeustmiginojecydispdisp/tabcontrolaygplay/tabcontrolplisLibraryngwi/tabcontrolteniaygrrepeLibraryojecbrar.>orems Libraryaygr>wasopen..>doupplay..>v>displaygrouplist/standard>displaygroup..>peftostandard>wasopenturettori..>cVIEW:/activeal ..>_left/tablignleft>picnlef>picnlefellhtorignceellwinalterreal..>pignlturelheionGr>cellwidthignl real ngwiectf >vietbtupw:/1/balsctiotupWtp; ??, 6< k?4= I  )$  #  | # =   # =  64   0 ?    4   =   ")Bt1t=h\)L @14=((o=a 40&=>$=  5     & | l =`  P 4D   )Bt1=)| p1d=X(Ho@=4 >=  5 &pd=X4L $ =  = !0!o(#?"%wP%D%o< 9 &*&|&t&ol&`- -((((*?**/* + +++B+-uP-D-4-B,-00}00t0ol0` 7*777*:6::9:;6;;9;<6<<9<=6= =9=?}4??(?o @?`@ @T@DA6pA AB6B BC6C CD6DD G5G GH6HH {J?xJJhJ4\JJ=PJ iK#KoK=K g L6LL|LLoM6, MMM|MMoM|MMoN6`NN|TNHN=<NO6 OO O|OO=OO|O|O=pOP6PP|PPoQ6X QQH Q|< Q0 Qo( Q| Q Qo R6 RR| Rt R=h RS6 SS S| S S= SS| S S= SV6 V V+ V) V& V4 VV4 VV%| V4p VV4d VU)T U'D U48 UU4, UU$ U4 UU4 UX6 X X+ X) X& X4x XX4l XX%\ X4P XX4D XW)4 W'$ W4 WW4 WW$ W4 WW4 W dJY)X Y#H Y< Y|0 Y#$ Yo Y Y| Y# Y= YY) Y4 YY4 Y[} [4| [[p [oh  { \# \\4 \\5 \\4 \  ]# ]]4 ] ]5 ] ]4 ] s^% ^p ^4d ^^4X ^ ^H ^|< ^0 ^o( ^| ^ ^o `} `4 `` `o a5 aab} b4 b b bo c5c ce5e e H5<HHH i5H&,H H=H H4Hi5 iii  t#E)E'EE4E E4E  }BOnOpen@setname(c, "Library"); windowshow(windowfromnode(node( "/editName",c)), 0); windowshow(windowfromnode(node("/Apply",c)), 0); nodefunction(node("/ChooseGroup>refresh",c)); nodefunction(node("/GroupIconGrid>refresh",c)); @B wasopen@?Binstallcomponents@ytreenode newlibrary = parnode(1); if(not(maintenance(20))) { // I need to go through a first swipe and install all user commands forobjectlayerunder(node(">loadinstall",parnode(1))) { dropuserlibraryobject(a, 0, 0, 0, 0, 0, 0); } forobjectlayerunder(node(">newmodelinstall",parnode(1))) { dropuserlibraryobject(a, 0, 0, 0, 0, 0, 0); } return(1); } @B*tive>loadinstall>newmodelinstall? l &*(PlD4  h`  $  l            "Bnewuserlibrary@]setcurrent(node("../ChooseGroup",c)); setitem(node("MAIN:/project/userlibrary")); createuserlibrary(); set(itemcurrent(current), content(item) + get(node("..>originalitems",c))); nodeinsertinto(items(current)); setname(last(items(current)), getname(last(item))); comborefresh(current); nodefunction(node("../GroupIconGrid>refresh",c)); @B\"../ChooseGroupMAIN:/project/userlibrarylins..>originalitemsayg../GroupIconGrid>refreshcont>(o?\P4h} |oB xApAwPvD8B0$A h A` j  o tBdragfunction@R// parnode(1) : dropnodefrom // parnode(2) : dropnodeto // parval(3) : dropx // parval(4) : dropy // parval(5) : dropz // parnode(6) : i (or the view onto which I dropped) treenode ontoview = parnode(6); if(ontoview == node("../GroupIconGrid",c)) return(0); if(ne(node("../GroupIconGrid>viewfocus+",c), library())) { return(dropuserlibraryobject(parnode(1), parnode(2), parval(3), parval(4), parval(5), parnode(6))); } if(maintenance(20)) { msg("Operation Not Allowed", "You are in Presenter mode and are not allowed to do this operation"); return(0); } int unusualcontainer = 1; treenode droponto = parnode(2); if(objectexists(droponto)) { if( objectexists(classes(droponto)) && classobject(droponto) == node("/VisualTool", library()) ) unusualcontainer = 0; } else { droponto = node(">viewfocus+",parnode(6)); unusualcontainer = 0; } if(unusualcontainer) { if(msg("Unusual Container",gets(node("../GroupIconGrid>messagetext",c)))) unusualcontainer = 0; } treenode createdobject = 0; if(!unusualcontainer) { createdobject = createinstance(parnode(1), droponto); double x = parval(3); double y = parval(4); double z = parval(5); if(get(viewsnaptogrid(ontoview))) { double xgrid = get(gridx(ontoview)); double ygrid = get(gridy(ontoview)); set(spatialx(createdobject), mul(sign(x), round(fabs(x) / xgrid) * xgrid)); set(spatialy(createdobject), mul(sign(y), round(fabs(y)/ ygrid) * ygrid)); set(spatialz(createdobject, z)); } else { set(spatialx(createdobject), x); set(spatialy(createdobject), y); set(spatialz(createdobject), z); } if(comparetext(getname(parnode(1)), stringcopy(getname(createdobject), 1, stringlen(getname(parnode(1)))))) { int appendnum = content(droponto); if(droponto == model) appendnum--; appendnum = max(1, appendnum); while(objectexists(node(concat("/", getname(parnode(1)), numtostring(appendnum, 0,0)), droponto))) appendnum++; setname(createdobject, concat(getname(parnode(1)), numtostring(appendnum, 0,0))); } return createdobject; } return createdobject; @BP eGro../GroupIconGridprt/us../GroupIconGrid>viewfocus+..>onali Operation Not AllowedYou are in Presenter mode and are not allowed to do this operationplis/VisualTool>viewfocus+rolUnusual Container../GroupIconGrid>messagetextrepeLibraygr>displisrd grou..>pdard>was VIEWal /tab nlef/h ellw  ? l   #T D o< ( = ?\   (   o d}  lkkk ll F@( h6?l = )L #<,$=Y=5\  #>###l|##l$5$$ ! '4' )F)t))o))*5,**,?<,, M -*X-4L-/>//|/=p//ld/0900k01911k12922k2 =<3|33=359855|,5 5=569l66|`6T6=H67}77 777777777777777777=|78}88 87888|87p88d87X88L87@8848=(89}99799=9 ?=},=7 =====>}`>7T>>H>=<>?}?7??|?=p? iBAB  A= A>AvAlAAAvA=AAvAlAC64C C(C=C B D#XDPD=DDD5hD DD E5E EE4|E E GG5 GGG  JFF F=FFA F;FF F4F FvFlFFHw HAx H;dHHH4XH HvLHl@HH=4HL6J=JN6`M=MoBautoinstallmessage@This library contains components that can be automatically installed to your model. Click OK to install these components.Bunusualcontainermessage@You are dragging the object into an object that does not usually act as a container. Click OK if you want to continue this action.Bautoinstallwarning@This library's auto-install Components are already installed if: 1. You loaded this library with the current model open. 2. You created a new model with this library loaded. Components may not have been installed, or you may want to install them again if: 1. A previously created model was opened with this library already loaded. 2. Updates to the library require a re-install of this library's components. Click OK to continue and install this library's components. B tempfile@Boriginalitems@@Bstyle@@B WS_CAPTION@BWS_CLIPSIBLINGS@BWS_CLIPCHILDREN@BWS_OVERLAPPED@B WS_SYSMENU@BWS_THICKFRAME@B exstyle@@BWS_EX_TOOLWINDOW@BWS_EX_TOPMOST@Bpalettewindow@@Y@@B tabwindow@Y@@BOnDropWindow@#// dragging from a window to another window if(objectexists(i)) executefsnode(node("MAIN:/project/exec/globals/nodefunctions/droptab_in_palette"),c,i,0,0); // dragging a tab out of a window else executefsnode(node("MAIN:/project/exec/globals/nodefunctions/droptab_out_palette"),c,i,0,0);B@\buttons\view_library.bmpBviewwindowclean@@B overlay@objectB viewfocus@../..Bviewwindowopen@Bviewwindowtype@@B spatialx@M?B spatialy@N@B spatialsx@P0@B spatialsy@Q`@B viewpointx@B viewpointy@B viewpointz@_|@Bhidden@?Bviewhidealllabels@?B transparent@?Bviewhideallbases@?Bgridx@@Bgridy@@Bviewsnaptogrid@?B buttonpanel@objectBviewwindowtype@Y@B spatialx@M@B spatialy@N@B spatialsx@P`@B spatialsy@Q9@B tooltip@B beveltype@@B New Library@objectBviewwindowtype@Y@B spatialx@MB spatialy@NB spatialsx@P9@B spatialsy@Q9@Bbitmap@buttons\newlibrary.bmpB OnPress@1nodefunction(node("../..>newuserlibrary", c)); @B tooltip@ New LibraryBOpen Libraries@objectBviewwindowtype@Y@B spatialx@M;@B spatialy@NB spatialsx@P9@B spatialsy@Q9@Bbitmap@buttons\openlibraries.bmpB OnPress@ setitem(node("MAIN:/project/userlibrary")); setcurrent(node("/project/exec/globals/nodevariables/tempfilename",maintree())); treenode openpathnode = node("VIEW:/environment/librarypath"); if(stringlen(gets(openpathnode))>0 && fileexists(gets(openpathnode))) { int index = 0; int nextindex = stringsearch(gets(openpathnode), "\\", index); int i = 1; while(nextindex >= 0) { index = nextindex; nextindex = stringsearch(gets(openpathnode), "\\", index+1); } string directory = stringpart(gets(openpathnode), 0, index); sets(current,directory); } else sets(current,concat(cdir(),"libraries")); // Load multiple libraries setcursor(3); treenode liblist = node("/project/filelist",maintree()); clearcontents(liblist); getfilebrowse("*.fsl","Flexsim Library","",getnodestr(current),2,liblist); for (treenode curlib = rank(liblist,2); objectexists(curlib); curlib = next(curlib)) { setcurrent(node("/project/exec/globals/nodevariables/tempfilename",maintree())); // This will be changed, so make sure it's set here too setnodestr(current,apchar(getname(curlib))); nodeinsertinto(item); if (not(comparetext(getnodestr(current),""))) { cmdloadtree(last(item),getnodestr(current), 1); } if(or(gt(content(last(item)), 0), objectexists(node(">1", last(item))))) { setcurrent(node("../../ChooseGroup",c)); set(itemcurrent(current), content(item) + get(node("../..>originalitems",c))); nodeinsertinto(items(current)); setname(last(items(current)), getname(last(item))); setviewtext(node("../../editName",c), getname(last(item))); comborefresh(current); nodefunction(node("../../GroupIconGrid>refresh",c)); setport(0);// port says: do I need to update if(not(objectexists(node(">release", last(item))))) setport(1); else { if(stringtonum(gets(node(">release", last(item)))) < stringtonum(gets(node("MAIN:/project/release")))) setport(1); } if(port) { nodefunction(node("MAIN:/project/exec/globals/nodefunctions/updatemodelversion"), 1, tonum(last(item))); } if(and(or(objectexists(node(">loadinstall/1",last(item))),objectexists(node(">newmodelinstall/1",last(item)))), not(maintenance(20)))) { nodefunction(node("../..>installcomponents", c), last(item)); buildnodeflexscript(model()); } buildnodeflexscript(last(item)); autoloadallmedia(); documentusercommands(); } else { destroyobject(last(item)); } } setcursor(1); @B tooltip@Open LibrariesBSave Library@objectBviewwindowtype@Y@B spatialx@MK@B spatialy@NB spatialsx@P9@B spatialsy@Q9@Bbitmap@buttons\savelibrary.bmpB OnPress@Lsetitem(node("../../GroupIconGrid>viewfocus+", c)); if(not(objectexists(item))) return(0); if(eq(item, library())) { msg("Cannot Save Standard Library", "You cannot save Flexsim's standard library", 1); return(0); } setcurrent(node("../..>tempfile",c)); treenode openpathnode = node("VIEW:/environment/librarypath"); if(stringlen(gets(openpathnode))>0 && fileexists(gets(openpathnode))) { int index = 0; int nextindex = stringsearch(gets(openpathnode), "\\", index); int i = 1; while(nextindex >= 0) { index = nextindex; nextindex = stringsearch(gets(openpathnode), "\\", index+1); } string directory = stringpart(gets(openpathnode), 0, index); sets(current,directory); } else sets(current,concat(cdir(),"libraries")); if(objectexists(item)) { savetree(item,"fsl", "Flexsim Library", gets(current)); }@B tooltip@ Save LibraryBClose Library@objectBviewwindowtype@Y@B spatialx@M@T@B spatialy@NB spatialsx@P9@B spatialsy@Q9@Bbitmap@buttons\closelibrary.bmpB OnPress@rsetitem(node("../../GroupIconGrid>viewfocus+", c)); if(not(objectexists(item))) return(0); if(eq(item, library())) { msg("Cannot Close Standard Library", "You cannot close Flexsim's standard library", 1); return(0); } if(msg("Close Library",concat("Close ",getname(item),"?"))) { if(objectexists(node(">uninstall",item))) nodefunction(node(">uninstall",item)); destroyobject(item); setnodenum(node("../../ChooseGroup>itemcurrent",c), getnodenum(node("../../ChooseGroup>itemcurrent",c))-1); nodefunction(node("../../ChooseGroup>refresh",c)); nodefunction(node("../../GroupIconGrid>refresh",c)); }@B tooltip@Close LibraryB!Install Auto-Install Components@objectBviewwindowtype@Y@B spatialx@M[@B spatialy@NB spatialsx@P9@B spatialsy@Q9@Bbitmap@#buttons\userlibraryautoinstall.bmpB OnPress@Lif (license()) { setitem(node("../../GroupIconGrid>viewfocus+", c)); if(not(objectexists(item))) return(0); if(eq(item, library())) { msg("No Library Components", "Flexsim's standard library does not contain any install components", 1); return(0); } if(and(objectexists(node(">newmodelinstall", item)), content(node(">newmodelinstall", item)) > 0)) { if(msg("Auto-Install Components", gets(node("../..>autoinstallwarning",c)))) { setcurrent(node(">newmodelinstall", item)); if(objectexists(current)) { forobjectlayerunder(current) { dropuserlibraryobject(a, 0,0,0,0,0); } } } } else { msg("No Library Components", "This library does not contain any install components", 1); return(0); } } else{msg("Flexsim","Not available in evaluation mode.");}@B tooltip@ Install Auto-Install ComponentsB ChooseGroup@objectBviewwindowtype@@[@B spatialx@M@B spatialy@N=@B spatialsx@P[@B spatialsy@Q^@B tooltip@Bitems@@BDiscrete Objects@ standardBFluid Objects@fluidB itemcurrent@?Balignrightmargin@@@B OnSelect@F applylinks(c); nodefunction(node("../GroupIconGrid>refresh",c)); @B coldlink@..>currentgroupB pickitem@Bcurrentgroup@?B refresh@setitem(node("MAIN:/project/userlibrary")); setcurrent(node("..>items",c)); while(content(current) > get(node("../..>originalitems",c))) { destroyobject(last(current)); } if(content(item) != 0) { iterate(1, content(item), 1) { nodeinsertinto(current); setname(last(current), getname(rank(item, count))); } } if(get(itemcurrent(up(current)))>content(current)) set(itemcurrent(up(current)), 1); comborefresh(up(current));@B 8MAIN:/project/userlibrary:/prec/g..>itemsevblesustm../..>originalitemsc/gls/n/conustm:/acjects+tiveewfo?(>XHo@4 A %|oxlAd  (   B    B  $ AwpvdT/LBD8A0  %A| A} AA@BRename Library@object Bviewwindowtype@Y@B spatialx@M]@B spatialy@N;@B spatialsx@P9@B spatialsy@Q9@Bbitmap@buttons\_rename.bmpBalignrightposition@=@B OnPress@setitem(node("../GroupIconGrid>viewfocus+", c)); if(not(objectexists(item))) return(0); if(eq(item, library())) { msg("Cannot Rename Standard Library", "You cannot rename Flexsim's standard library", 1); return(0); } windowshow(windowfromnode(node("../ChooseGroup",c)), 0); windowshow(windowfromnode(node("../Rename Library",c)), 0); windowshow(windowfromnode(node( "../editName",c)), 1); windowshow(windowfromnode(node("../Apply",c)), 1); setviewtext(node( "../editName",c), getname(item));@B tooltip@Rename LibraryBGroupIconGrid@objectBviewwindowtype@@B spatialx@M?B spatialy@NK@B spatialsx@P@b@B spatialsy@Q@B cellwidth@a@Bcellwidthoriginal@a@B cellheight@4@Bcellheightoriginal@4@Bcellwidthoriginalaligncenter@Q@Bcellheightoriginalaligncenter@Q@Bpicture@cbitmaps\views\static.bmpB viewfocus@MAIN:/project/libraryBviewwindowsource@?B displaygroup@ standardBalignrightmargin@Balignbottommargin@BOnDrag@//pr();pt("OnDrag "); //pt(getname(i));pt(" "); //pf(dropx());pt(" "); //pf(dropy());pt(" "); //pf(dropz());pt(" "); //pf(eventdata); //pt(" Event code"); //pt(" ");pt(getname(selectedobject(c))); //pt(" ");pt(getname(selectedobject(i))); //pt(" drop node to ");pt(getname(dropnodeto())); //pt(" drop nodefrom ")/;pt(getname(dropnodefrom())); nodefunction(node("..>dragfunction",c), dropnodefrom(), dropnodeto(), dropx(), dropy(), dropz(), i);@B messagetext@You are dragging the object into an object that does not usually act as a container. Click OK if you want to continue this action.B menupopup@@BExplore Object Tree@if (license()) { setitem(selectedobject(node("../..",c))); if (objectexists(item)) { createview("VIEW:/standardviews/inspector",nodetopath(item),nodetopath(item)); } } else{msg("Flexsim","Not available in evaluation mode.");}BExplore Library Tree@if (license()) { createview("VIEW:/standardviews/inspector",gets(viewfocus(node("../..",c))),gets(viewfocus(node("../..",c)))); } else{msg("Flexsim","Not available in evaluation mode.");} B-@BRemove Object From Library@L//pt(getname(selectedobject(node("../..",c)))) setitem(node("../..>viewfocus+", c)); if(eq(item, library())) { msg("Cannot Remove Object", "You cannot remove objects from Flexsim's standard library", 1); return(0); } if(objectexists(selectedobject(node("../..",c)))) { destroyobject(selectedobject(node("../..",c))); }B-@B Parameters@setitem(node("../..>viewfocus+", c)); if(eq(item, library())) { msg("Cannot View Parameters", "You cannot view parameters for Flexsim standard library objects", 1); return(0); } viewmenucommand("Parameters",node("../..",c));B Properties@setitem(node("../..>viewfocus+", c)); if(eq(item, library())) { msg("Cannot View Parameters", "You cannot view parameters for Flexsim standard library objects", 1); return(0); } viewmenucommand("Properties",node("../..",c));B refresh@setport(node("../../ChooseGroup",c)); if(le(get(itemcurrent(port)), get(node("../..>originalitems",c)))) { sets(viewfocus(node("..",c)), "MAIN:/project/library"); if(objectexists(node("..>_displaygroup",c))) setname(node("..>_displaygroup",c), "displaygroup"); forobjectlayerunder(library()) { setcurrent(node(">displaygroup",a)); if(objectexists(current)) { setitem(node(">displaygrouplist",a)); iterate(1,content(item),1) { if(comparetext(getnodestr(rank(items(port),get(itemcurrent(port)))),getname(rank(item,count())))) { setnodestr(current,getname(rank(item,count()))); } } } } sets( node("..>displaygroup",c), gets(rank(items(port),get(itemcurrent(port)))) ); } else { sets(viewfocus(node("..",c)), concat("MAIN:/project/userlibrary/", numtostring(get(itemcurrent(port)) - get(node("../..>originalitems",c)), 0, 0))); if(objectexists(node("..>displaygroup",c))) setname(node("..>displaygroup",c), "_displaygroup"); } treenode focus = node("..>viewfocus+",c); int height = 0; int width = 0; int picturealign = get(node("..>picturealignleftoriginal",c)); if (focus == library() || objectexists(node(">picturealignleft",focus))) // The library is recent - use the new defaults { height = get(node("..>cellheightoriginal",c)); width = get(node("..>cellwidthoriginal",c)); if (objectexists(node("..>_picturealignleft",c))) setname(node("..>_picturealignleft",c),"picturealignleft"); if(objectexists(node(">picturealignleft",focus))) picturealign = get(node(">picturealignleft",focus)); } else { height = get(node("..>cellheightoriginalaligncenter",c)); width = get(node("..>cellwidthoriginalaligncenter",c)); if (objectexists(node("..>picturealignleft",c))) setname(node("..>picturealignleft",c),"_picturealignleft"); } if(objectexists(node(">cellheight",focus))) set(cellheight(node("..",c)), get(node(">cellheight",focus))); else set(cellheight(node("..",c)), height); if(objectexists(node(">cellwidth",focus))) set(cellwidth(node("..",c)), get(node(">cellwidth",focus))); else set(cellwidth(node("..",c)), width); if(objectexists(node("..>picturealignleft",c))) set(node("..>picturealignleft",c), picturealign); repaintview(node("..",c));@Bd ../../ChooseGroupiy..>ievustm../..>originalitemsalit..MAIN:/project/library..>_displaygroup..>_displaygroupdisplaygroup>displaygroup>displaygrouplisttive>lisngwitiveteni..>displaygroup..repeMAIN:/project/userlibrary/../..>originalitems ..>displaygroup..>displaygroup_displaygroup..>viewfocus+..>picturealignleftoriginaltive>picturealignleft..>cellheightoriginal..>cellwidthoriginal ..>_picturealignleft/tab..>_picturealignleftpicturealignleft>picturealignleft>picturealignleftary..>cellheightoriginalaligncenter ..>cellwidthoriginalaligncenter..>picturealignleft..>picturealignleftd_picturealignleft>cellheightdran..onGr>cellheight..>cellwidth..>cellwidth....>picturealignleft..>picturealignleft..@,o 0O&|xopX|L @C8u9o  owhXHo@,x ( >    !  A ?    B B vt/lBdxXH|< 0C(Cyv/BA u` tTD|8 ,C$Co 2uDA4 ;  |o| C9|otp  pohT w   o #?###o#$6$$%6 %%&6t&&|h&X&oP&0 T/(+ (((=(((#((=(*50**|$**o *+5|++|p+`+oX+@ 0 ,,,o,-w ---o- 9 .L.<.=0../5//|/x/=l//X X3533|33o345D44|84(4o 4 O 55t5ol5T6w666o6 Z9 9 9=99:}| :|p :` :=T ::D :8 :( :o :  e;} ;4 ; ; ; ;o ;  g < < <= << =}` =|T =D ==8 ==, = = =o =  i>} >4 > > >| >ot >p  f @ @ @o @ A}, A4 AA Ao A B X BH Bo@ B< Bpicturealignleft@6@Bpicturealignleftoriginal@6@Bdepresshighlighted@B editName@objectBviewwindowtype@@Y@B spatialx@M@B spatialy@N=@B spatialsy@Q5@Balignrightmargin@E@B tooltip@#Enter the name of the User LibraryBhidden@?BApply@objectBviewwindowtype@Y@Balignrightposition@E@B spatialy@N;@B spatialsx@PD@B spatialsy@Q9@B OnPress@4setitem(node("../GroupIconGrid>viewfocus+",c)); if(and(objectexists(item), ne(item, library))) { setname(item, getviewtext(node( "../editName",c))); setname(rank(node("../ChooseGroup>items",c), getrank(item) + get(node("..>originalitems",c))), getviewtext(node( "../editName",c))); comborefresh(node("../ChooseGroup",c)); } windowshow(windowfromnode(node("../ChooseGroup",c)), 1); windowshow(windowfromnode(node("../Rename Library",c)), 1); windowshow(windowfromnode(node( "../editName",c)), 0); windowshow(windowfromnode(node("../Apply",c)), 0); @Bhidden@?Bortho@object@B viewfocus@MAIN:/project/modelBviewwindowopen@?Bviewwindowtype@@Blisteningwindow@%VIEW:/active/RackParameters167324744@B@?B spatialx@Mc@B spatialy@N@Y@B spatialsx@P(@B spatialsy@Q0@B viewpointx@@]iE@B viewpointy@@?YB viewpointz@B viewpointrx@VB viewpointry@B viewpointrz@Bviewmagnification@\E@Bviewprojectiontype@?Bviewpointradius@D@Bviewbackgroundcolor@@B@?B@?B@?Bviewhideallbases@?Bviewhidealldrawcontent@Bviewhidealllabels@Bviewhideallconnectors@B viewlights@@BLight Source 1@@B viewlightx@?B viewlighty@B viewlightz@?B viewlightr@?B viewlightg@?B viewlightb@?Bviewlightaspos@BLight Source 2@@B viewlightx@B viewlighty@?B viewlightz@?B viewlightr@?B viewlightg@?B viewlightb@?Bviewlightaspos@Bviewautoconnect@Bviewsnaptogrid@?Bviewsyncupdate@B viewnear@yB viewfar@y@B viewfield@V@Bviewfirstperson@B viewshowgrid@?Bgridx@?Bgridy@?Bviewlabelalignment@?B OnDropNode@@//pt(" drop node");pt(getname(c));pt(getname(i));pr(); if(i != c) { string thekey; if(!iskeydown()) { int editmode = modeleditmode(-1); switch(editmode) { case EDITMODE_A_CONNECT: thekey = "A"; break; case EDITMODE_Q_CONNECT: thekey = "Q"; break; case EDITMODE_S_CONNECT: thekey = "S"; break; case EDITMODE_W_CONNECT: thekey = "W"; break; case EDITMODE_E_CONNECT: thekey = "E"; break; case EDITMODE_D_CONNECT: thekey = "D"; break; } } else thekey = strascii(lastkeydown()); if(switch_selected(c, -1) && !switch_selected(i, -1)) groupconnectto(i, thekey); else if(switch_selected(i, -1) && !switch_selected(c, -1)) groupconnectfrom(c, thekey); else contextdragconnection(c, i, thekey); set(node("MAIN:/project/exec/globals/nodevariables/connectionjustmade"), 1); } @BOnDrop@makeactive(c);@B menuview@B viewlist@ OrthoViewsB menupopup@@BEdit@@BDesignate This Node (so)@Aviewmenucommand("Edit|Designate This Node (so)",ownerobject(c));B-@BReset Object@setcurrent(selectedobject(ownerobject(c))); // Make sure something was actually selected if(not(objectexists(current))) { return(0); } set(spatialrx(current),0); set(spatialry(current),0); set(spatialrz(current),0); set(spatialz(current),0);BSet Object Reset Position@eif(objectexists(selectedobject(ownerobject(c)))) setresetposition(selectedobject(ownerobject(c)));B-@BAdd to User Library@4addtouserlibrary(selectedobject(ownerobject(c))); BView@@ BDesignate This View (sv)@Aviewmenucommand("View|Designate This View (sv)",ownerobject(c));B-@B&Capture Screen p@.viewmenucommand("View|Print",ownerobject(c));B Reset View@l//pt(" Resetting view ");popupmenu(node("../..",c)); viewmenucommand("View|Zoom...|Reset",ownerobject(c));BReset View Rotation@treenode theview = ownerobject(c); set(viewpointrx(theview),-90); set(viewpointry(theview),0); set(viewpointrz(theview),0);B0"/buttons/view_viewsettings.bmp"V&iew Settings@treenode theview = node("VIEW:/standardviews/View Settings"); nodefunction(node("VIEW:/nodefunctions/createview_palette"),theview);BSave Settings as Default@>setcurrent(ownerview(c)); if(and(not(comparetext(getname(current), "ortho")), not(comparetext(getname(current), "persp")))) { msg("Error", "The view must be either an untabbed Orthographic \nor Perspective view to make it the default."); return(0); } if(not(objectexists(node("/Tools/DefaultGUIs",model())))) { nodeinsertinto(node("/Tools",model())); setname(last(node("/Tools",model())), "DefaultGUIs"); } setitem(node("/Tools/DefaultGUIs",model())); if(not(objectexists(node(concat("/", getname(current)), item)))) { nodeinsertinto(item); setname(last(item), getname(current)); nodeadddata(last(item), DATATYPE_STRING); } setport(node(concat("/", getname(current)), item)); clearcontents(port); createcopy(current, port); setname(last(port), getname(current)); sets(port, nodetopath(last(port),1));B-@BView Container@0treenode view = ownerobject(c); treenode focus = node(">viewfocus+",view); if(focus == model()) return 0; viewmenucommand("View|Up", view); focus = node(">viewfocus+",view); set(viewpointx(view), xcenter(focus)); set(viewpointy(view), ycenter(focus)); set(viewpointz(view), 0); /*int orthonr = 0; treenode activeviews = node("VIEW:/active"); for(int i = 1; i < getrank(view); i++) { treenode curview = rank(activeviews, i); if(comparetext(getname(curview), "ortho")) orthonr++; }*/ string path = nodetopath(focus, 1); if(stringlen(path)>20) path = stringpart(path, 20, stringlen(path)-20); else path = getname(focus); //sets(windowtitle(view), concat("Orthographic View - ", numtostring(orthonr, 0,0), " - ", path)); sets(windowtitle(view), concat("Orthographic View - ", path)); BView Contents@treenode view = ownerobject(c); set(viewpointx(view), 0); set(viewpointy(view), 0); set(viewpointz(view), 0); viewmenucommand("View|Down", view); treenode focus = node(">viewfocus+",view); /*int orthonr = 0; treenode activeviews = node("VIEW:/active"); for(int i = 1; i < getrank(view); i++) { treenode curview = rank(activeviews, i); if(comparetext(getname(curview), "ortho")) orthonr++; }*/ string path = nodetopath(focus, 1); if(stringlen(path)>20) path = stringpart(path, 20, stringlen(path)-20); else path = getname(focus); //sets(windowtitle(view), concat("Orthographic View - ", numtostring(orthonr, 0,0), " - ", path)); sets(windowtitle(view), concat("Orthographic View - ", path)); B-@BExplore Structure@if (license()) { viewmenucommand("View|Structure...|Explore structure",ownerobject(c)); } else{msg("Flexsim","Not available in evaluation mode.");} BModeling Utilities@@BC"/buttons/view_edithighlightedobject.bmp"Edit &Highlighted Object@treenode theview = node("VIEW:/standardviews/Edit Highlighted Object"); nodefunction(node("VIEW:/nodefunctions/createview_palette"),theview,1);B?"/buttons/view_editselectedobjects.bmp"Edit &Selected Objects@treenode theview = node("VIEW:/standardviews/Edit Selected Objects"); nodefunction(node("VIEW:/nodefunctions/createview_palette"),theview,1);B."/buttons/view_findobjects.bmp"&Find Objects@treenode theview = node("VIEW:/standardviews/Find Objects"); nodefunction(node("VIEW:/nodefunctions/createview_palette"),theview,1);B4"/buttons/view_travelnetworks.bmp"Travel &Networks@treenode theview = node("VIEW:/standardviews/Travel Networks"); nodefunction(node("VIEW:/nodefunctions/createview_palette"),theview,1);B!"/buttons/view_views.bmp"&Views@treenode theview = node("VIEW:/standardviews/Views"); nodefunction(node("VIEW:/nodefunctions/createview_palette"),theview,1);B#"/buttons/view_groups.bmp"&Groups@treenode theview = node("VIEW:/standardviews/Groups"); nodefunction(node("VIEW:/nodefunctions/createview_palette"),theview,1);B0"/buttons/view_modellayouts.bmp"&Model Layouts@treenode theview = node("VIEW:/standardviews/Model Layouts"); nodefunction(node("VIEW:/nodefunctions/createview_palette"),theview,1);B&"/buttons/view_tree.bmp"Explore Tree@if (license()) { viewmenucommand("Explore|As Tree",ownerobject(c)); } else{msg("Flexsim","Not available in evaluation mode.");} B Properties@setcurrent(node("VIEW:/active")); setport(content(current)); viewmenucommand("Parameters",ownerobject(c)); if(content(current)>port) { setcurrent(node(">listeningwindow", ownerobject(c))); sets(current, nodetopath(last(node("VIEW:/active")), 1)); set(first(current), 1); }B windowtitle@Orthographic View - modelBviewignoreobjects@B statusbar@?Bconnectorsize@?Bconnectorstyle@?B labelscale@@BOnMouseWheel@treenode vfocus = node("@>viewfocus+",c); treenode selected = selectedobject(ownerobject(c)); double mousedelta = get(node("..>OnMouseWheelDelta",c)); if(objectexists(selected)) { double dz = mousedelta / 1000; if(switch_selected(selected)) { forobjecttreeunder(vfocus) { if(switch_selected(a)) { if(up(a) != vfocus) { // do an 'erase' because vectorproject caches stuff if it gets the same parameters vectorprojectx(a,0,0,0,vfocus); double x1 = vectorprojectx(vfocus, 0,0,0,up(a)); double y1 = vectorprojecty(vfocus, 0,0,0,up(a)); double z1 = vectorprojectz(vfocus, 0,0,0,up(a)); double x2 = vectorprojectx(vfocus, 0,0,dz,up(a)); double y2 = vectorprojecty(vfocus, 0,0,dz,up(a)); double z2 = vectorprojectz(vfocus, 0,0,dz,up(a)); double newdx = x2-x1; double newdy = y2-y1; double newdz = z2-z1; setloc(a,xloc(a)+newdx, yloc(a)+newdy, zloc(a)+newdz); } else setloc(a,xloc(a), yloc(a), maxof(0,zloc(a)+dz)); } } } else { if(up(selected) != vfocus) { // do an 'erase' because vectorproject caches stuff if it gets the same parameters vectorprojectx(selected,0,0,0,vfocus); double x1 = vectorprojectx(vfocus, 0,0,0,up(selected)); double y1 = vectorprojecty(vfocus, 0,0,0,up(selected)); double z1 = vectorprojectz(vfocus, 0,0,0,up(selected)); double x2 = vectorprojectx(vfocus, 0,0,dz,up(selected)); double y2 = vectorprojecty(vfocus, 0,0,dz,up(selected)); double z2 = vectorprojectz(vfocus, 0,0,dz,up(selected)); double dx = x2 - x1; double dy = y2 - y1; dz = z2 - z1; setloc(selected,xloc(selected)+dx, yloc(selected)+dy, zloc(selected)+dz); } else setloc(selected,xloc(selected), yloc(selected), maxof(0, zloc(selected)+dz)); } } else { set(viewmagnification(ownerobject(c)), (1.0+(max(-499, mousedelta)/500))*get(viewmagnification(ownerobject(c)))); } repaintview(ownerobject(c)); @BOnMouseWheelDelta@^@B OnPreOpen@_setname(c, "ortho"); treenode activeviews = node("VIEW:/active"); /* int totalnr = 0; int orthonr = 1; for(int i = 1; i < getrank(c); i++) { treenode view = rank(activeviews, i); if(comparetext(getname(view), "ortho") || comparetext(getname(view), "persp") || comparetext(getname(view), "planar") ) totalnr++; if(comparetext(getname(view), getname(c))) orthonr++; } inc(spatialy(c), 25*totalnr); sets(windowtitle(c), concat("Orthographic View - ", numtostring(orthonr, 0,0), " - model"));*/ // This moves the view if there is another view under it. int bust=1; // to prevent possible infinite loops int moved=1; while(moved && bust<20) { moved = 0; for(int i=2;i<=content(activeviews);i++) { treenode view = rank(activeviews,i); if(view==c) continue; if(fabs(get(spatialx(view))-get(spatialx(c)))<25 && fabs(get(spatialy(view))-get(spatialy(c)))<25 && get(viewwindowtype(view))==get(viewwindowtype(c))) { inc(spatialx(c),25); inc(spatialy(c),25); moved = 1; break; } } bust++; } sets(windowtitle(c), "Orthographic View - model");@BOnOpen@set(itemcurrent(c),1); set(first(itemcurrent(c)),0); /*executefsnode(node("/ToolPanel/FindPanel>ToolOnOpen",c), node("/ToolPanel/FindPanel",c)); executefsnode(node("/ToolPanel/GroupsPanel>ToolOnOpen",c), node("/ToolPanel/GroupsPanel",c)); executefsnode(node("/ToolPanel/ViewPanel>ToolOnOpen",c), node("/ToolPanel/ViewPanel",c)); int orthonr = 1; treenode activeviews = node("VIEW:/active"); for(int i = 1; i < getrank(c); i++) { treenode view = rank(activeviews, i); if(comparetext(getname(view), "ortho")) orthonr++; }*/ treenode focus = node(">viewfocus+",c); string path = nodetopath(focus, 1); if(stringlen(path)>20) path = stringpart(path, 20, stringlen(path)-20); else path = getname(focus); //sets(windowtitle(c), concat("Orthographic View - ", numtostring(orthonr, 0,0), " - ", path)); sets(windowtitle(c), concat("Orthographic View - ", path)); //repaintview(c);@B OnClose@t/*int orthonr = 0; treenode activeviews = node("VIEW:/active"); setitem(1); while(le(item,content(activeviews))) { setcurrent(rank(activeviews,item)); if(and(comparetext("ortho",getname(current)),ne(item,getrank(c)))) { orthonr++; setnodestr(windowtitle(current), concat("Orthographic View - ",numtostring(orthonr,0,0)," - ",getname(node(">viewfocus+",current),1))); } if(and(comparetext(gets(windowtitle(current)), "View Window Settings"), eq(node(">objectfocus+", current), c))) { destroyobject(current); setitem(item - 1); } setitem(item + 1); } repaintall();*/@B OnKeyDown@set(first(itemcurrent(c)), 0);@B OnKeyUp@set(first(itemcurrent(c)), 0); // I'm going to unselect the tools folder if the last key down was a delete and the content of the model is one if(and(eq(lastkeydown(),46), eq(content(model()), 1))) { setselectedobject(c, 0); } @B itemcurrent@?@B lastclicked@B clickedx@@B clickedy@8@B viewfog@B gridfog@Bgridlinewidth@Bgridlinecolor@@B@?B@?B@?B OnClick@${//pt("OnClick clickcode = : ");pd(clickcode());pt(" ");pr(); #define MODE_NORMAL 0 if(get(viewwindowopen(c))) { treenode connectionjustmade = node("MAIN:/project/exec/globals/nodevariables/connectionjustmade"); setcurrent(node("MAIN:/project/exec/globals/nodevariables/connectionjustmade"));// I just made a drag connection int mode = modeleditmode(-1); treenode lastclickedobject = first(itemcurrent(c)); if(get(connectionjustmade))// I just did a drop node { set(connectionjustmade, 0); set(lastclickedobject, 0); return(0); } if(clickcode() == DOUBLE_CLICK && objectexists(selectedobject(c))) { if(or( node("VIEW:/active/LAST>objectfocus+") == selectedobject(c), node("VIEW:/active/LAST>viewfocus+") == selectedobject(c) )) { sets(node(">listeningwindow",c), nodetopath(last(node("VIEW:/active")),1)); set(first(node(">listeningwindow",c)), 1); } } if(clickcode() == LEFT_RELEASE) {// the left mouse button was just released int dx = cursorinfo(c,1,1,1) - getnodenum(rank(itemcurrent(c),2)); int dy = cursorinfo(c,1,2,1) - getnodenum(rank(itemcurrent(c),3)); if(fabs(dx)<3 && fabs(dy)<3) // if you release in nearly the same spot as you clicked - (if you didn't move the view) { if(iskeydown('F') || iskeydown('R') || mode == EDITMODE_CREATEOBJECTS || mode == EDITMODE_CREATEANDCONNECTOBJECTS) { if(objectexists(selectedobject(c))) { if(not(isclasstype(selectedobject(c), CLASSTYPE_VISUALTOOL))) return(0); } treenode libraryview = NULL; // Here I'm trying to find the Library treenode active = node("VIEW:/active"); for(int i = 1; i <= content(active) && !libraryview; i++) { treenode curnode = rank(active, i); if(objectexists(tabwindow(curnode)) && get(tabwindow(curnode)) == -102) // palettewindows tabbed in one window { for(int w=1;w<=content(node("/tabcontrol",curnode));w++) { treenode checkview = rank(node("/tabcontrol",curnode),w); if(objectexists(windowtitle(checkview)) && comparetext("Library", gets(windowtitle(checkview)))) { libraryview = checkview; } } } else if(objectexists(windowtitle(curnode)) && comparetext("Library", gets(windowtitle(curnode)))) { libraryview = curnode; } } if(objectexists(selectedobject(node("/GroupIconGrid", libraryview)))) { setdropcoords(c); //pt(" drop x = ");pf(dropx());pt(" drop y = ");pf(dropy());pt(" drop z = ");pf(dropz());pr(); treenode newobj = nodefunction(node(">dragfunction", libraryview), selectedobject(node("/GroupIconGrid", libraryview)), selectedobject(c), dropx(),dropy(),dropz(), c ); if(iskeydown('R') || mode==EDITMODE_CREATEANDCONNECTOBJECTS) { if(objectexists(newobj) && objectexists(get(lastclickedobject))) { contextdragconnection(get(lastclickedobject), newobj, "A"); } else { set(lastclickedobject, 0); } set(lastclickedobject, newobj); } return (0); } } } } if(clickcode() == LEFT_PRESS) {// the left mouse button was just pressed down setnodenum(rank(itemcurrent(c),2),cursorinfo(c,1,1,1)); // clickedx setnodenum(rank(itemcurrent(c),3),cursorinfo(c,1,2,1)); // clickedy if(iskeydown('G') || mode == EDITMODE_FASTPROPSWITCH)// edit objects mode { treenode listeningwindowatt = node(">listeningwindow",c); treenode listeningwindow = node(gets(listeningwindowatt)); if(objectexists(listeningwindow)) { treenode focus = node(">objectfocus+",listeningwindow); if(not(objectexists(focus))) focus = node(">viewfocus+",listeningwindow); if(objectexists(selectedobject(c)) && selectedobject(c) != focus) { if(!get(first(listeningwindowatt)) || comparetext(gets(guifocusclass(selectedobject(c))) , gets(guifocusclass(focus)))) { if(objectexists(viewfocus(listeningwindow))) sets(viewfocus(listeningwindow), nodetopath(selectedobject(c))); if(objectexists(objectfocus(listeningwindow))) sets(objectfocus(listeningwindow), nodetopath(selectedobject(c))); applylinks(listeningwindow, 1);// refresh links redirectpicklists(listeningwindow); //refreshview(item); if(objectexists(OnOpen(listeningwindow))) executefsnode(OnOpen(listeningwindow), listeningwindow, selectedobject(c)); forobjecttreeunder(listeningwindow) repaintview(a); } } } else { sets(listeningwindowatt, ""); } } } }@B$MAIN:/project/exec/globals/nodevariables/connectionjustmadeMAIN:/project/exec/globals/nodevariables/connectionjustmadeVIEW:/active/LAST>objectfocus+VIEW:/active/LAST>viewfocus+>listeningwindowVIEW:/active>listeningwindowrepe dardVIEW:/active /tabcontrol/tabcontrolLibrary Library/GroupIconGrid>dragfunction/GroupIconGrid>cel Areal>listeningwindow>objectfocus+>viewfocus+tbtupw:/1/balsctio tupWGen>adco1/1ls/GGen>ablede/Too/TooUps+>v/exeobalriabatechtajectde the |-o?l` >| 6  ,  ?    o  |, =  }D=8}`=T 6 #)+o#x0p +X #H+<o4(#+ou o|h}o j #,  0$#6 ## #~#p## d#o\#<D####o<$6  $$ $~$$$ $o$<$$$$o i&)l &'\&&P&4D&&'4&&(&4& g (+(#( (4((+ (#((4((+((R(|(F  **+*o ,*@,0,,+$,o-0?L002?x22l2\3633 =S5?055 5455=5 876) 6#66||6#p6=d66X6#L6=@6868 8 :?h : :X:4L: :<:=0::  1;) ;B;t;1;=; ;;;1;=x; =>==== 85 888 H 58&888=88848  9 0A)l AB\AtPA1DA=8AA,A A1A=AC>CC=|CH35333 >3) 3*3=33&33=3343 J?FF+FF=FFHHoO? O Oj Oo M9x M8p M7h L+\ LoT K+H K8 K=, KK J J= JJ e"P+ P# PP4 PP PR aR)0 R$ R| R= RR R= R Th Td T=X T T|L T=@ T bX} XX=| XZ} Z= Z Z= Zf8\ ic# cc0 f f< ffffo f ff  fo gp g<X ggggoP g@ gg 4 go,  H{i+ i# ii4 ii iGk? k k ko k l? l l lt l= l  ddm4 m=( m o?l oo\ o=P o o@  S p* p p=| pp> pp p= p p  eNq), q( q= qq+ qo q q+ qo  sDu+ uB ut u u= ust s s+t sol s*` s|T sH s=< s  X w w9 w= w xu8x,x+ xox9 x=x  \ y`y8Ty=Hy zuzz+zoz8xz=lz {{{={ ||=|  ` ~~=~=~ DD+8o0=$ ==  b =X  b ldc c Hu=x arnBviewconnectioncolor@@B@B@B@B distcutoff@nj@B lastloc@@Bx@By@Bsx@Bsy@Bdocumentwindow@Y@@B tabwindow@@Y@@BOnDropWindow@%// dragging from a window to another window if(objectexists(i)) executefsnode(node("MAIN:/project/exec/globals/nodefunctions/droptab_in_document"),c,i,0,0); // dragging a tab out of a window else executefsnode(node("MAIN:/project/exec/globals/nodefunctions/droptab_out_document"),c,i,0,0);BOrtho@\buttons\view_ortho.bmpBviewwindowclean@@Bflypath@BCanister arrival4 @objectBsuperclasses@@BFixedResource@ `ABFlexsimObject@@oABclasses@@BSource@`ABFixedResource@rABFlexsimObject@@oAB variables@@)B arrivalmode@@Binterarrivaltime@treenode current = ownerobject(c); /**By Expression*/ /** \nExpression: */ double value = /**/10/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B@ :/nonkx>tex?o9$  74. Btimezerocreate@Binterarrivalitemtype@?B itemclass@ @B schedule@@BUK@@B ArrivalTime@u@B ItemName@ProductB ItemType@?B Quantity@@BEU@@B@@@B@ProductB@@B@@BJapan@@B@@@B@ProductB@@B@2@Brepeat@?B sequence@@B Arrival1@@B ItemName@ProductB ItemType@?B Quantity@?Bsequencecurrow@?Bcreationtrigger@treenode item = parnode(1); treenode current = ownerobject(c); int rownumber = parval(2); //row number of the schedule/sequence table @B flowitembin@@BCanister arrivalsubnode@Bcreateparticle@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\?o?0l$6Lk@}  B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\ u( c  4x  =l ORTBnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@Bcppvariables@@Bfsnode * flowitemtocreate@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@Bcolor@a@Bred@333333?Bgreen@ffffff?Bblue@333333?Bshape@ufs3d\Source.3DSB shapeindex@v;@Bpicture@cbitmaps\sourcepicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource SourceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/SourceParametersB spatial@@B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Boffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^/$@B offsetrx@YB offsetry@ZB offsetrz@[B objectinfo@@B Output: 0@BBlocked: 0.0%@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @B@<@B@B@Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BFilling canister$@objectBclasses@@B Processor@"`ABFixedResource@rABFlexsimObject@@oAB superclasses@@BFixedResource@ `ABFlexsimObject@@oAB variables@@9B cycletime@Ttreenode current = ownerobject(c); treenode item = parnode(1);/**Statistical Distribution: */ return /**/uniform(11.333, 14.583, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@Bl :/nonkx>tex"~&@"~*-@?o?0l$?LXL@B setuptime@8treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2);/**By Expression*/ /** \nExpression: */ double value = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x:/nonkx>texy?o?0l$?Lk@9\uh7lB maxcontent@?@Buseprocessoperators@Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex"?o?0l$6@9\ cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl>vie?o?0l$6@6\cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@?Btransportdispatcher@`treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\uh c  4x  =l ORTBnroftransportsout@@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BFilling canistersubnode@oB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@Bcolor@a@Bred@RQ?Bgreen@333333?Bblue@'1Z?Bshape@ufs3d\procsr_color.3dsB shapeindex@v:@Bpicture@c"bitmaps\processorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/ProcessorParametersB spatial@@B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@<@B@?B@Bconnectionsout@ @B@ @B@B@Bconnectionscenter@ @B@1@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@B Apply Lid$@objectBclasses@@B Processor@"`ABFixedResource@rABFlexsimObject@@oAB superclasses@@BFixedResource@ `ABFlexsimObject@@oAB variables@@9B cycletime@%treenode current = ownerobject(c); treenode item = parnode(1); /**By Expression*/ /** \nExpression: */ double value = /**/0.5/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B h:/nonkx>tex?y?o?0l$9L@ ? 7\B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>texy?o?0l$6@ ?  cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl>vie?o?0l$6@6\cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@?Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>texy? l?0$o6Lk@6\uh c  4x  =l Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@Bcolor@a@Bred@RQ?Bgreen@333333?Bblue@'1Z?Bshape@ufs3d\procsr_color.3dsB shapeindex@v:@Bpicture@c"bitmaps\processorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/ProcessorParametersB spatial@@B spatialx@M@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@ @B@?B@Bconnectionsout@ @B@(@B@B@Bconnectionscenter@ @B@1@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BWelding$@objectBclasses@@B Processor@"`ABFixedResource@rABFlexsimObject@@oAB superclasses@@BFixedResource@ `ABFlexsimObject@@oAB variables@@9B cycletime@#treenode current = ownerobject(c); treenode item = parnode(1); /**By Expression*/ /** \nExpression: */ double value = /**/4/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>texy?o?0l$9@9\7P} B setuptime@8treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2);/**By Expression*/ /** \nExpression: */ double value = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x:/nonkx>texy?o?0l$?Lk@9\uh7l));B maxcontent@?@Buseprocessoperators@Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>texy?o?0l$6@9\ cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl>vie?o?0l$6@6\cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@?Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>texy? l?0$o6Lk@6\uh c  4x  =l Bnroftransportsout@@Bnroftransportsin@@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BWeldingsubnode@B networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@Bcolor@a@Bred@RQ?Bgreen@333333?Bblue@'1Z?Bshape@ufs3d\procsr_color.3dsB shapeindex@v:@Bpicture@c"bitmaps\processorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/ProcessorParametersB spatial@@B spatialx@M$@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@(@B@?B@Bconnectionsout@ @B@S @B@B@Bconnectionscenter@ @B@2@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BTesting$@objectBclasses@@B Processor@"`ABFixedResource@rABFlexsimObject@@oAB superclasses@@BFixedResource@ `ABFlexsimObject@@oAB variables@@9B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/4/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>texy?o?0l$9@9h7P} B setuptime@;treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2);/**By Expression*/ /** \nExpression: */ double value = /**/0.25/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@Bl:/nonkx>texy??o?0l$?Lk@9h\uh7xB maxcontent@?@Buseprocessoperators@Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>texy?o?0l$6@9h cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl>vie?o?0l$6@6\cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@?Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>texy? l?0$o6Lk@6\uh c  4x  =l Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@Bcolor@a@Bred@RQ?Bgreen@333333?Bblue@'1Z?Bshape@ufs3d\procsr_color.3dsB shapeindex@v:@Bpicture@c"bitmaps\processorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/ProcessorParametersB spatial@@B spatialx@M.@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@ @B@?B@Bconnectionsout@ @B@u@B@B@Bconnectionscenter@ @B@2@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BBuffer$@objectB superclasses@@BFixedResource@ `ABFlexsimObject@@oABclasses@@BQueue@@!`ABFixedResource@rABFlexsimObject@@oAB variables@@,B maxcontent@@@B usebatching@B batchsize@@B maxwaittime@Bflush@Bcurrentbatchsize@Bendcollectingtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @B placemode@?B stackinitz@B curxfringe@Bcuryloc@B curmaxysize@Bcurzloc@B curmaxzsize@Bproductspacing@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@?Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B..>tnkx>tex? l?0$o6Lk@6\uh c  4x  =l Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@Bcppvariables@@Bint lastpredrawoutput@Bint lastpredrawinput@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bspecial@@Btitle@dFixed Resource QueueB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/QueueParametersBvisual@@ Bcolor@a@Bred@MbX9?Bgreen@MbX9?Bblue@MbX9?Bshape@ufs3d\queue_n_color.3dsB shapeindex@v<@Bpicture@cbitmaps\queuepicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B spatial@@B spatialx@M2@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@BCurContent: 0@BMaxContent: 0@BAvgStaytime: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@Y @B@?B@Bconnectionsout@ @B@'@B@B@Bconnectionscenter@ @B@2@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@bDefaultNavigator@object Bclasses@@B Navigator@@`ABFlexsimObject@@oAB superclasses@@BFlexsimObject@ `AB variables@@Btravelmembers@@Bactivetravelmembers@@Blastupdatetime@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble* protectlocs@Bunsigned char portinfoflag@Bspatial@@ B spatialsx@P-C6?B spatialsy@Q-C6?B spatialsz@R-C6?B spatialx@MB spatialy@NB spatialz@OB spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Bspecial@@B guifocus@|!VIEW:/standardviews/objecteditorBtitle@dObjectB description@bBlabels@@Bvisual@@B nochildscale@_?B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@BCharger Loading$@objectBclasses@@B Processor@"`ABFixedResource@rABFlexsimObject@@oAB superclasses@@BFixedResource@ `ABFlexsimObject@@oAB variables@@9B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>texy?o?0l$9@ ? 7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>texy?o?0l$6@ ?  cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl>vie?o?0l$6@6\cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>texy? l?0$o6Lk@6\uh c  4x  =l Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Loadingsubnode@BCharger Loadingsubnode@JB networknodes@@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@Bcolor@a@Bred@Bgreen@?Bblue@?Bshape@ufs3d\comb_color.3dsB shapeindex@v>@Bpicture@c"bitmaps\processorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/ProcessorParametersB spatial@@B spatialx@M:@B spatialy@N@B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@;@B@?B@Bconnectionsout@ @B@l@B@B@Bconnectionscenter@ @B@*@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BFull flasks depart@objectB superclasses@@BFixedResource@ `ABFlexsimObject@@oABclasses@@BSink@$`ABFixedResource@rABFlexsimObject@@oAB variables@@B recycle@?B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B>vie? l?0$o6Lk@6\ c  4x  =l Bnroftransportsout@Bnroftransportsin@B outwaitinfo@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@ Bcolor@a@Bred@333333?Bgreen@?Bblue@333333?Bshape@ufs3d\Sink.3DSB shapeindex@v=@Bpicture@cbitmaps\sinkpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dFixed Resource SinkB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/SinkParametersB spatial@@B spatialx@MH@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^1Zd?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@B Input: 0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@"@B@?B@Bconnectionsout@ @Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BPit$@objectB superclasses@@BFixedResource@ `ABFlexsimObject@-XABclasses@@BRack@1`ABFixedResource@`/XABFlexsimObject@-XAB variables@@,B placeinbay@treenode item = parnode(1); treenode current = ownerobject(c); /**Random Bay if Available*/ /** \nMaximum items per cell: */ int cellcap = /**/1/**/; /** \n\nNote: If all cells are full, it will be placed in the originally chosen random bay.*/ int nrofbays = rackgetnrofbays(current); int firstguess = duniform(1, nrofbays); int curguess = firstguess; while(curguess <= nrofbays) { if( rackgetbaycontent(current, curguess) < (cellcap * rackgetnroflevels(current, curguess))) return curguess; curguess++; } curguess = firstguess - 1; while(curguess >= 1) { if( rackgetbaycontent(current, curguess) < (cellcap * rackgetnroflevels(current, curguess))) return curguess; curguess--; } return firstguess;@Bt\..>tnkx>tex  ? l?0$o6@ 6h  \ =P  6   4x   6  4   'TD44(=44=4d5p &4454  '8(4 =44= 4H5T $44hathBplaceinlevel@8treenode item = parnode(1); treenode current = ownerobject(c); double baynumber = parval(2); /**Random Level if Available*/ /** \nMaximum items per cell: */ int cellcap = /**/1/**/; /** \n\nNote: If the randomly chosen level is occupied, then search higher numbered levels first, then lower numbered levels. If all cells are full, it will placed in the originally chosen random level.*/ int nroflevels = rackgetnroflevels(current,baynumber); int firstguess = duniform(1, nroflevels ); int curguess = firstguess; while(curguess <= nroflevels ) { if( rackgetcellcontent(current, baynumber, curguess) < cellcap ) return curguess; curguess++; } curguess = firstguess - 1; while(curguess >= 1) { if( rackgetcellcontent(current, baynumber, curguess) < cellcap ) return curguess; curguess--; } return firstguess; @BPZ..>tnkx>tex? l?0$o9Lk@6\ 6   7x  =l  6   4   6  4   'X 4L84,7 =4h5t &4454  ' 447=4$ 50 $4 4DBminimumstaytime@/**Custom Code - UK stays in for 3 years*/ treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); if (time>26280) { int value = getitemtype(item); switch(value) { case 1: return 0; case 2: return 0; case 3: return 0; default: return 0; } } else { int value = getitemtype(item); switch(value) { case 1: return 26280; case 2: return 0; case 3: return 0; default: return 0; } }@B`;..>tnkx>tex    ? l?0$o6Lk@ %df\ 6   =t  4   6   5t  ! 6=4 f   & ! $ vieBenddwelltimetrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @B maxcontent@i@Bcontenttable@@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@ B@@B@B@@B@B@@B@B@B@@B@B@@B@B@@B@B@@B@B@@B@B@@B@Blocationtable@@B@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@?@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@?@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@?@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@ @@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@ @@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@!@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@"@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B@#@@ B@B@?B@?B@?B@@B@@B@@B@ @B@@B@@B sizetable@@BBay1@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay2@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay3@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay4@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay5@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay6@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay7@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay8@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay9@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay10@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay11@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay12@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay13@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay14@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay15@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay16@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay17@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay18@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay19@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?BBay20@?@ BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?BLevel6@?BLevel7@?BLevel8@?BLevel9@?BLevel10@?B rackdrawmode@?Bpickplaceyoffset@B tiltvalue@B tiltangle@Bmarkreadytogo@B floorstorage@?Bopacity@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@B@ ..>tnkx>tex? l?0$o6Lel.Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ydoB entrytrigger@treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); { //************* PickOption Start *************\\ /**Set Color by Value*/ /** \nValue: */ int value = /**/getitemtype(item)/**/; switch(value) { /** \nCases: */ /**/ case 1: colorred(item);break; case 2: colorgreen(item);break; case 3: colorblue(item);break; default: colorarray(item, value);break; /**/ } /**\n\n*/ } //******* PickOption End *******\\ @B+defugercinkx    ? l?0$o6Lk@ 6t  h =\  4  =  z=  w=  u4=  [B exittrigger@ treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); { //************* PickOption Start *************\\ /**Set Color */ /** \nColor: */ /**/colorgray/**/ ( /** \nObject: */ /**/item/**/ ); /** \n\nAvailable colors are: coloraqua, colorblack, colorblue, colorbrown, colorgray, colorgreen, colorlightblue, colorlime, colororange, colorpink, colorpurple, colorrandom, colorred, colorsilver, colorteal, colorwhite, coloryellow*/ /**\n\n*/ } //******* PickOption End *******\\ @B8tdefugercinkx? l?0$o6Lk@ yh =\ tnoB usetransport@?@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B..>tnkx>tex? l?0$o6Lk@6\  c  4x  =l ; Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@@Bcppfunctions@@Bcppvariables@@Bint lastpredrawoutput@Bint lastpredrawinput@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@Bgreen@Bblue@Bshape@u***B shapeindex@vBpicture@c&bitmaps\WarehouseRackpicturesmall.bmpB imageobject@qbitmaps\rackshelf.bmpBimageindexobject@rD@B imagebase@s***Bimageindexbase@tB nochildscale@_?B spatial@@ B spatialsx@P$@B spatialsy@Q@B spatialsz@R?@B centroid@e?B spatialx@M=@B spatialy@N@B spatialz@OB spatialrx@SB spatialry@TB spatialrz@UB special@@Btitle@dFixed Resource SinkB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/RackParametersB objectinfo@@BCurContent: 0@BMaxContent: 0@BAvgContent: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@r@B@?B@B@6@B@?B@B@7@B@?B@Bconnectionsout@ @B@'@B@B@Bconnectionscenter@ @B@@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,$@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCrane$ @objectBclasses@@BCrane@>`AB TaskExecuter@XXAB Dispatcher@`VXABFlexsimObject@-XAB superclasses@@B TaskExecuter@`6`AB Dispatcher@`VXABFlexsimObject@-XAB variables@@HB shellxloc@7@B shellyloc@@B shellzloc@B shellsizex@9@B shellsizey@@B shellsizez@@Bmoving@B liftheight@@Btravelsequence@L>XY>DB cranespeeds@@BGantry@@B Max_Speed@.@BAcceleration@?BDeceleration@?B Trolley@@B@.@B@?B@?B Hoist_Lift@@B@.@B@?B@?B Hoist_Drop@@B@.@B@?B@?BcranekinematicsA8 do not touchu???'@f$6@'@B@? D@п?== 0f$6@dJ@?Hr?~?Hr?~?Hr?~?333333?333333?333333?nk(idJ@Va/@?࿧VTY?VTY@VTY@@@@ngtodJ@Ѻ@?I?h?I?h?I?h????dit"Va/@'@?Hr?~?Hr?~?Hr?~?333333333333?333333",c))), 1, 0 );*/ I{Py OJ.antent(holder) == v_nroftransportsout) setstate(holder, STATE_WAITING_FOR_TRANSPORT)ty>coeientonen ick ?4$o?p`XD?o?=@4=( ?  | ot L   =      *  |  / =    / =  ! !h8=, 4t|hX/P=D -# =|/==, B liftradius@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>tex? l?0$o?Ll@9\  7l  B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>tex? l?0$o?Ll@9\  7l Bunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:..>tnkx>tex v:/ac? l?0$o?XL=@?h 6x    ?    4  =    #` T =H  < =0  >|  =p  5     )  * =   &  =  4 9 c=B travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@B useoffsets@?Boffsettingnow@Boffsetbegintime@f$6@Boffsettotaltime@ɦ=%@B offsetlocx@@B offsetlocy@?B offsetlocz@B offsetbeginx@B@B offsetbeginy@B offsetbeginz@?Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@'@Bcollisiontrigger@treenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Sort by TaskSequence Priority*/ return getpriority(tasksequence);@BX ..>tnkx>tex? l?0$o?XL=@l.Bcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@B Cranesubnode@B networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble lastxloc@Bdouble lastyloc@Bdouble lastzloc@Bdouble justcreated@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bshape@ufs3d\texturebox.wrlB shapeindex@v@Bpicture@cbitmaps\Cranepicturesmall.bmpB imageobject@qfs3d\concrete.bmpBimageindexobject@rE@B imagebase@s***Bimageindexbase@tBcolor@a@Bred@ffffff?Bgreen@ffffff?Bblue@?B nochildscale@_?Bspecial@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/CraneParametersBspatial@@B spatialx@M D@B spatialy@NпB spatialz@O?B spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B Status: idle@?Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @B@7@B@B@B@6@B@B@B@@B@B@B@@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Source @objectBsuperclasses@@BFixedResource@ `ABFlexsimObject@-XABclasses@@BSource@`ABFixedResource@`/XABFlexsimObject@-XAB variables@@)B arrivalmode@@Binterarrivaltime@2treenode current = ownerobject(c); /**Statistical Distribution: */ return /**/exponential(0,10,1)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@B8 ?o?0$ t(cBtimezerocreate@Binterarrivalitemtype@?B itemclass@,@B schedule@@B Arrival1@@B ArrivalTime@?B ItemName@ChargerB ItemType@?B Quantity@@Brepeat@B sequence@@B Arrival1@@B ItemName@ProductB ItemType@?B Quantity@?Bsequencecurrow@?Bcreationtrigger@treenode item = parnode(1); treenode current = ownerobject(c); int rownumber = parval(2); //row number of the schedule/sequence table @B flowitembin@@BCharger Sourcesubnode@Bcreateparticle@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\?o?0l$6Lk@?h B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B>vie? l?0$o6Lk@6\ ?  c  4x  =l ; Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@Bcppvariables@@Bfsnode * flowitemtocreate@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@333333?Bgreen@ffffff?Bblue@333333?Bshape@ufs3d\Source.3DSB shapeindex@v;@Bpicture@cbitmaps\sourcepicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dFixed Resource SourceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/SourceParametersB spatial@@B spatialx@M@@B spatialy@N@B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB centroid@e?Boffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^/$@B offsetrx@YB offsetry@ZB offsetrz@[B objectinfo@@B Output: 0@BBlocked: 0.0%@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @B@@B@B@Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BIdle Chargers$@objectB superclasses@@BFixedResource@ `ABFlexsimObject@-XABclasses@@BQueue@@!`ABFixedResource@`/XABFlexsimObject@-XAB variables@@,B maxcontent@$@@B usebatching@B batchsize@@B maxwaittime@Bflush@Bcurrentbatchsize@Bendcollectingtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @B placemode@?B stackinitz@B curxfringe@Bcuryloc@B curmaxysize@Bcurzloc@B curmaxzsize@Bproductspacing@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@ treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); { //************* PickOption Start *************\\ /**Set Color */ /** \nColor: */ /**/colorblack/**/ ( /** \nObject: */ /**/item/**/ ); /** \n\nAvailable colors are: coloraqua, colorblack, colorblue, colorbrown, colorgray, colorgreen, colorlightblue, colorlime, colororange, colorpink, colorpurple, colorrandom, colorred, colorsilver, colorteal, colorwhite, coloryellow*/ /**\n\n*/ } //******* PickOption End *******\\ @B8tdefugercinkxy? l?0$o6Lk@ vh =\ tnoB exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B..>tnkx>texy? l?0$o6Lk@6\uh c  4x  =l ); Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@B@B@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@Bcppvariables@@Bint lastpredrawoutput@Bint lastpredrawinput@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bspecial@@Btitle@dFixed Resource QueueB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/QueueParametersBvisual@@ Bcolor@a@Bred@MbX9?Bgreen@MbX9?Bblue@MbX9?Bshape@ufs3d\queue_n_color.3dsB shapeindex@v<@Bpicture@cbitmaps\queuepicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B spatial@@B spatialx@MB@B spatialy@N@B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@BCurContent: 0@BMaxContent: 0@BAvgStaytime: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@@B@?B@B@@B@?B@B@ @B@?B@B@U!@B@?B@B@v@B@?B@B@6@B@?B@B@7@B@?B@Bconnectionsout@ @B@+@B@B@B@#@B@B@B@%@B@B@B@f&@B@B@Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Preperation$@objectBclasses@@B Combiner@ &`AB Processor@DXABFixedResource@`/XABFlexsimObject@-XAB superclasses@@B Processor@"`ABFixedResource@`/XABFlexsimObject@-XAB variables@@ABcollectingcontainer@?Bcomponentlist@@BFrom Input Port 2@@BTarget Quantity@?BCurrent Quantity@?Bcurrentcomponentsum@?Btargetcomponentsum@?Bpack@?Boverriddenreceivefromport@%// This code isn't used any more @Boverriddenpullrequirement@%// This code isn't used any more. @B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@ ? 7P0; B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ ?  cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl>vie?o?0l$6@6\cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\} B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\uh c  4x  =l e; Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@Bcolor@a@Bred@?Bgreen@?Bblue@TTTTTT?Bshape@ufs3d\procsr_color.3dsB shapeindex@v:@Bpicture@c!bitmaps\combinerpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/CombinerParametersB spatial@@B spatialx@M5@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@{@B@?B@B@@B@B@Bconnectionsout@ @B@;@B@B@Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Unloading$@objectBclasses@@B Separator@'`AB Processor@DXABFixedResource@`/XABFlexsimObject@-XAB superclasses@@B Processor@"`ABFixedResource@`/XABFlexsimObject@-XAB variables@@=Bunpack@?Bsplitquantity@treenode item = parnode(1); treenode current = ownerobject(c); /**Entire Contents*/ /** \nUnpack the entire content of the flowitem which entered port 1.*/ return content(item); @BX nkx>tex? l?0$o6@L=@l.Boverriddensendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ cx h 4\  =P =@Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl>vie?o?0l$6@6\cxh4\=PBcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; @Bx#nkx>texunpack ? l?0$o6@6P   t l =`   #   l u4  ?4  allBreceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\u c  4x  =l v_Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Unloadingsubnode@BCharger Unloadingsubnode@YB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\separate_color.3dsB shapeindex@v?@Bpicture@c"bitmaps\separatorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tBspecial@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/SeparatorParametersB spatial@@B spatialx@M;@B spatialy@N@B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B spatialrz@UB ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@@B@?B@Bconnectionsout@ @B@@B@B@B@@B@B@Bconnectionscenter@ @B@#*@B@B@B@|@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Unloading$@objectBclasses@@B Separator@'`AB Processor@DXABFixedResource@`/XABFlexsimObject@-XAB superclasses@@B Processor@"`ABFixedResource@`/XABFlexsimObject@-XAB variables@@=Bunpack@?Bsplitquantity@treenode item = parnode(1); treenode current = ownerobject(c); /**Entire Contents*/ /** \nUnpack the entire content of the flowitem which entered port 1.*/ return content(item); @BX nkx>tex? l?0$o6@L=@Boverriddensendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@ ? 7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ ?  cx h 4\  =P us+Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl?o?0l$6@6\cxh4\=PBcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; @Bx#nkx>texunpack ? l?0$o6@6P  t l =`    #   l uh4 u4 DDllBreceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\uh c  4x  =l Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Unloadingsubnode@BCharger Unloadingsubnode@GB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\separate_color.3dsB shapeindex@v?@Bpicture@c"bitmaps\separatorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tBspecial@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/SeparatorParametersB spatial@@B spatialx@ME@B spatialy@N@B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B spatialrz@UB ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@#@B@?B@Bconnectionsout@ @B@r"@B@B@B@@B@B@Bconnectionscenter@ @B@h+@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Unloading$@objectBclasses@@B Separator@'`AB Processor@DXABFixedResource@`/XABFlexsimObject@-XAB superclasses@@B Processor@"`ABFixedResource@`/XABFlexsimObject@-XAB variables@@=Bunpack@?Bsplitquantity@treenode item = parnode(1); treenode current = ownerobject(c); /**Entire Contents*/ /** \nUnpack the entire content of the flowitem which entered port 1.*/ return content(item); @BX nkx>tex? l?0$o6@L=@l.Boverriddensendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@ ? 7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ ?  cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl?o?0l$6@6\cxh4\=P=@Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; @Bx#nkx>texunpack ? l?0$o6@6P  t l =`    #   l uh4 u4 DDBreceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\uh c  4x  =l ); Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Unloadingsubnode@BCharger Unloadingsubnode@DB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\separate_color.3dsB shapeindex@v?@Bpicture@c"bitmaps\separatorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tBspecial@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/SeparatorParametersB spatial@@B spatialx@ME@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B spatialrz@UB ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@%@B@?B@Bconnectionsout@ @B@v"@B@B@B@@B@B@Bconnectionscenter@ @B@,@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Unloading$@objectBclasses@@B Separator@'`AB Processor@DXABFixedResource@`/XABFlexsimObject@-XAB superclasses@@B Processor@"`ABFixedResource@`/XABFlexsimObject@-XAB variables@@=Bunpack@?Bsplitquantity@treenode item = parnode(1); treenode current = ownerobject(c); /**Entire Contents*/ /** \nUnpack the entire content of the flowitem which entered port 1.*/ return content(item); @BX nkx>tex? l?0$o6@L=@l.Boverriddensendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@ ? 7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ ?  cx h 4\  =P Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl?o?0l$6@6\cxh4\=P a Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; @Bx#nkx>texunpack ? l?0$o6@6P  t l =`    #   l uh4 u4 DDallBreceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\uh c  4x  =l ws/Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Unloadingsubnode@BCharger Unloadingsubnode@AB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\separate_color.3dsB shapeindex@v?@Bpicture@c"bitmaps\separatorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tBspecial@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/SeparatorParametersB spatial@@B spatialx@ME@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B spatialrz@UB ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@l&@B@?B@Bconnectionsout@ @B@z"@B@B@B@@B@B@Bconnectionscenter@ @B@-@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BBatching21ForTransport$@objectB superclasses@@BFixedResource@ `ABFlexsimObject@-XABclasses@@BQueue@@!`ABFixedResource@`/XABFlexsimObject@-XAB variables@@,B maxcontent@i@@B usebatching@?B batchsize@5@B maxwaittime@@@Bflush@?Bcurrentbatchsize@Bendcollectingtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @B placemode@?B stackinitz@B curxfringe@Bcuryloc@B curmaxysize@Bcurzloc@B curmaxzsize@Bproductspacing@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@B@ ..>tnkx>tex? l?0$o . Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B..>tnkx>texy? l?0$o6Lk@6\uh c  4x  =l  cBnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@Bcppvariables@@Bint lastpredrawoutput@Bint lastpredrawinput@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bspecial@@Btitle@dFixed Resource QueueB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/QueueParametersBvisual@@ Bcolor@a@Bred@MbX9?Bgreen@MbX9?Bblue@MbX9?Bshape@ufs3d\queue_n_color.3dsB shapeindex@v<@Bpicture@cbitmaps\queuepicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B spatial@@B spatialx@MF@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@BCurContent: 0@BMaxContent: 0@BAvgStaytime: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@@B@?B@B@ @B@?B@B@Q!@B@?B@Bconnectionsout@ @B@@B@B@Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Loading$@objectBclasses@@B Combiner@ &`AB Processor@DXABFixedResource@`/XABFlexsimObject@-XAB superclasses@@B Processor@"`ABFixedResource@`/XABFlexsimObject@-XAB variables@@ABcollectingcontainer@?Bcomponentlist@@BFrom Input Port 2@@BTarget Quantity@?BCurrent Quantity@?Bcurrentcomponentsum@?Btargetcomponentsum@?Bpack@?Boverriddenreceivefromport@%// This code isn't used any more @Boverriddenpullrequirement@%// This code isn't used any more. @B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@  7P0; B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@   cx h 4\  =P Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl?o?0l$6@6\cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\} B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\  c  4x  =l v_Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Loadingsubnode@BCharger Loadingsubnode@bB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\comb_color.3dsB shapeindex@v>@Bpicture@c!bitmaps\combinerpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/CombinerParametersB spatial@@B spatialx@ME@B spatialy@N@B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@'@B@?B@B@@B@B@Bconnectionsout@ @B@@B@B@Bconnectionscenter@ @B@d+@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Loading$@objectBclasses@@B Combiner@ &`AB Processor@DXABFixedResource@`/XABFlexsimObject@-XAB superclasses@@B Processor@"`ABFixedResource@`/XABFlexsimObject@-XAB variables@@ABcollectingcontainer@?Bcomponentlist@@BFrom Input Port 2@@BTarget Quantity@?BCurrent Quantity@?Bcurrentcomponentsum@?Btargetcomponentsum@?Bpack@?Boverriddenreceivefromport@%// This code isn't used any more @Boverriddenpullrequirement@%// This code isn't used any more. @B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@ ? 7P0; B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ ?  cx h 4\  =P Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl?o?0l$6@6\cxh4\=P*/Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\} B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\uh c  4x  =l v_Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Loadingsubnode@BCharger Loadingsubnode@SB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\comb_color.3dsB shapeindex@v>@Bpicture@c!bitmaps\combinerpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/CombinerParametersB spatial@@B spatialx@ME@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@'@B@?B@B@@B@B@Bconnectionsout@ @B@ @B@B@Bconnectionscenter@ @B@,@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Loading$@objectBclasses@@B Combiner@ &`AB Processor@DXABFixedResource@`/XABFlexsimObject@-XAB superclasses@@B Processor@"`ABFixedResource@`/XABFlexsimObject@-XAB variables@@ABcollectingcontainer@?Bcomponentlist@@BFrom Input Port 2@@BTarget Quantity@?BCurrent Quantity@?Bcurrentcomponentsum@?Btargetcomponentsum@?Bpack@?Boverriddenreceivefromport@%// This code isn't used any more @Boverriddenpullrequirement@%// This code isn't used any more. @B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@7P0; B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl?o?0l$6@6\cxh4\=PBcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\} B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\u c  4x  =l $Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Loadingsubnode@BCharger Loadingsubnode@VB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\comb_color.3dsB shapeindex@v>@Bpicture@c!bitmaps\combinerpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/CombinerParametersB spatial@@B spatialx@ME@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@'@B@?B@B@@B@B@Bconnectionsout@ @B@K!@B@B@Bconnectionscenter@ @B@-@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BQueue29$@objectB superclasses@@BFixedResource@ `ABFlexsimObject@-XABclasses@@BQueue@@!`ABFixedResource@`/XABFlexsimObject@-XAB variables@@,B maxcontent@$@@B usebatching@B batchsize@@B maxwaittime@Bflush@Bcurrentbatchsize@Bendcollectingtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @B placemode@?B stackinitz@B curxfringe@Bcuryloc@B curmaxysize@Bcurzloc@B curmaxzsize@Bproductspacing@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B..>tnkx>texy? l?0$o6Lk@6\uh c  4x  =l  } Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@B@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@Bcppvariables@@Bint lastpredrawoutput@Bint lastpredrawinput@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bspecial@@Btitle@dFixed Resource QueueB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/QueueParametersBvisual@@ Bcolor@a@Bred@MbX9?Bgreen@MbX9?Bblue@MbX9?Bshape@ufs3d\queue_n_color.3dsB shapeindex@v<@Bpicture@cbitmaps\queuepicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B spatial@@B spatialx@MD@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@BCurContent: 0@BMaxContent: 0@BAvgStaytime: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@ @B@?B@Bconnectionsout@ @B@#@B@B@B@%@B@B@B@b&@B@B@Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCooling Buffer$@objectB superclasses@@BFixedResource@ `ABFlexsimObject@-XABclasses@@BRack@1`ABFixedResource@`/XABFlexsimObject@-XAB variables@@,B placeinbay@treenode item = parnode(1); treenode current = ownerobject(c); /**Random Bay if Available*/ /** \nMaximum items per cell: */ int cellcap = /**/1/**/; /** \n\nNote: If all cells are full, it will be placed in the originally chosen random bay.*/ int nrofbays = rackgetnrofbays(current); int firstguess = duniform(1, nrofbays); int curguess = firstguess; while(curguess <= nrofbays) { if( rackgetbaycontent(current, curguess) < (cellcap * rackgetnroflevels(current, curguess))) return curguess; curguess++; } curguess = firstguess - 1; while(curguess >= 1) { if( rackgetbaycontent(current, curguess) < (cellcap * rackgetnroflevels(current, curguess))) return curguess; curguess--; } return firstguess;@Bt\..>tnkx>texy>valfocu cusmentndomit t/engs/fry? l?0$o6@ 6h  \ =P  6   4x   6  4   'TD44(= 44=4d5p &4454  '8(4 =44=4H5T 1$44A4h\Bplaceinlevel@8treenode item = parnode(1); treenode current = ownerobject(c); double baynumber = parval(2); /**Random Level if Available*/ /** \nMaximum items per cell: */ int cellcap = /**/1/**/; /** \n\nNote: If the randomly chosen level is occupied, then search higher numbered levels first, then lower numbered levels. If all cells are full, it will placed in the originally chosen random level.*/ int nroflevels = rackgetnroflevels(current,baynumber); int firstguess = duniform(1, nroflevels ); int curguess = firstguess; while(curguess <= nroflevels ) { if( rackgetcellcontent(current, baynumber, curguess) < cellcap ) return curguess; curguess++; } curguess = firstguess - 1; while(curguess >= 1) { if( rackgetcellcontent(current, baynumber, curguess) < cellcap ) return curguess; curguess--; } return firstguess; @BPZ..>tnkx>texy>val? l?0$o9Lk@6\ 6   7x  =l  6   4   6  4   'X 4L84,7 =4h5t &4454 1 ' 447=4$ 50 4$44DdBminimumstaytime@ftreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Statistical Distribution: */ return /**/uniform(96, 144, 0)/**/; /** bernoulli(prob, succeed-value, fail-value, stream) beta(min, max, shape1, shape2, stream) binomial (trials, prob, stream) cempirical (tablename, stream) dempirical (tablename, stream) duniform (min, max, stream) empirical (tablename, stream) erlang (location, scale, shape, stream) exponential (location, scale, stream) gamma (location, scale, shape, stream) geometric (prob, stream) inversegaussian (location, scale, shape, stream) invertedweibull (location, scale, shape, stream) johnsonbounded (min, max, shape1, shape2, stream) johnsonunbounded (location, scale, shape1, shape2, stream) loglaplace (location, scale, shape, stream) loglogistic (location, scale, shape, stream) lognormal (location, scale, shape, stream) lognormal2 (location, scale, shape, stream) negbinomial (successes, prob, stream) normal (mean, stddev, stream) pearsont5 (location, scale, shape, stream) pearsont6 (location, scale, shape1, shape2, stream) poisson (mean, stream) triangular (min, max, mode, stream) uniform (min, max, stream) weibull (location, scale, shape, stream) */@BLp..>tnkx>texy? l?0$o6Lk@6\\`(Benddwelltimetrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @B maxcontent@@Bcontenttable@@B@@B@@B@B@@B@B@@B@B@@B@B@@B@Blocationtable@@B@@B@B@?B@@B@@B@@B sizetable@@BBay1@?@BLevel1@?BLevel2@?BLevel3@?BLevel4@?BLevel5@?B rackdrawmode@?Bpickplaceyoffset@B tiltvalue@B tiltangle@Bmarkreadytogo@B floorstorage@?Bopacity@?B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ydoB entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B..>tnkx>texy? l?0$o6Lk@6\ 6 c  4x  =l ORTBnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@@Bcppfunctions@@Bcppvariables@@Bint lastpredrawoutput@Bint lastpredrawinput@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@u***B shapeindex@vBpicture@c&bitmaps\WarehouseRackpicturesmall.bmpB imageobject@qbitmaps\rackshelf.bmpBimageindexobject@rD@B imagebase@s***Bimageindexbase@tB nochildscale@_?B spatial@@ B spatialsx@P?B spatialsy@Q@B spatialsz@R?@B centroid@e?B spatialx@M @B spatialy@N@B spatialz@OB spatialrx@SB spatialry@TB spatialrz@UB special@@Btitle@dFixed Resource SinkB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/RackParametersB objectinfo@@BCurContent: 0@BMaxContent: 0@BAvgContent: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@ @B@?B@Bconnectionsout@ @B@ @B@B@Bconnectionscenter@ @B@1@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,$@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@B BasicTE26:@objectB classes@@B BasicTE@h`AB TaskExecuter@`6AB Dispatcher@4ABFlexsimObject@ ABsuperclasses@@B TaskExecuter@`6`AB Dispatcher@4ABFlexsimObject@ AB variables@@EBonbeginoffset@treenode current = ownerobject(c); // the following x, y, and z values are requested x, y, and z offsets from this object's x/y center and z base. double x = parval(1); double y = parval(2); double z = parval(3); treenode item = parnode(4); double endspeed = parval(5); double maxspeed = parval(6); double acceleration = parval(7); double deceleration = parval(8); double lastupdatedspeed = parval(9); double rotatewhiletraveling = parval(10); Bonupdateoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bonfinishoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bpickplaceoffset@treenode current = ownerobject(c); int pickoperation = parval(1); treenode item = parnode(2); treenode otherobject = parnode(3); treenode xvalnode = parnode(4); treenode yvalnode = parnode(5); treenode zvalnode = parnode(6); B stopresume@treenode current = ownerobject(c); int stopoperation = parval(1); int stopstate = parval(2); treenode nrofstopsnode = parnode(3); treenode timeoflaststopnode = parnode(4); treenode statebeforestopnode = parnode(5); Badvancedfunctions@?treenode current = ownerobject(c); int msgtype = parval(1); B poffsetx@B poffsety@B poffsetz@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x? l?0$o?Ll@9\ ?  7l B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x? l?0$o?Ll@9\ ?  7l t. Bunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:? l?0$o?XL=@?h 6x    ?    4  =   #` T =H  < =0  >|   =p  5      )  * =  &  =  4 c=eteB travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@?B useoffsets@?Boffsettingnow@Boffsetbegintime@ea@Boffsettotaltime@B offsetlocx@@B offsetlocy@433333?B offsetlocz@B offsetbeginx@;@B offsetbeginy@?B offsetbeginz@Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@ea@Bcollisiontrigger@treenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Sort by TaskSequence Priority*/ return getpriority(tasksequence);@BX ? l?0$o?XL=@Bcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@ufs3d\texturesphere.wrlB shapeindex@v@B picture@cbitmaps\spheresmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/BasicTEParametersB objectinfo@B ignoredraw@fBdisplaygroup@ standardBspatial@@B spatialx@M;@B spatialy@N?B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?Bdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @B@@B@B@B@|@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@B BasicTE27:@objectB classes@@B BasicTE@h`AB TaskExecuter@`6AB Dispatcher@4ABFlexsimObject@ ABsuperclasses@@B TaskExecuter@`6`AB Dispatcher@4ABFlexsimObject@ AB variables@@EBonbeginoffset@treenode current = ownerobject(c); // the following x, y, and z values are requested x, y, and z offsets from this object's x/y center and z base. double x = parval(1); double y = parval(2); double z = parval(3); treenode item = parnode(4); double endspeed = parval(5); double maxspeed = parval(6); double acceleration = parval(7); double deceleration = parval(8); double lastupdatedspeed = parval(9); double rotatewhiletraveling = parval(10); Bonupdateoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bonfinishoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bpickplaceoffset@treenode current = ownerobject(c); int pickoperation = parval(1); treenode item = parnode(2); treenode otherobject = parnode(3); treenode xvalnode = parnode(4); treenode yvalnode = parnode(5); treenode zvalnode = parnode(6); B stopresume@treenode current = ownerobject(c); int stopoperation = parval(1); int stopstate = parval(2); treenode nrofstopsnode = parnode(3); treenode timeoflaststopnode = parnode(4); treenode statebeforestopnode = parnode(5); Badvancedfunctions@?treenode current = ownerobject(c); int msgtype = parval(1); B poffsetx@B poffsety@B poffsetz@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x? l?0$o?Ll@9\ ?  7l B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x? l?0$o?Ll@9\ ?  7l t. Bunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:? l?0$o?XL=@?h 6x    ?    4  =   #` T =H  < =0  >|   =p  5      )  * =  &  =  4 c=eteB travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@?B useoffsets@?Boffsettingnow@Boffsetbegintime@Boffsettotaltime@B offsetlocx@B offsetlocy@B offsetlocz@B offsetbeginx@B offsetbeginy@B offsetbeginz@Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@&^IG@Bcollisiontrigger@treenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Sort by TaskSequence Priority*/ return getpriority(tasksequence);@BX ? l?0$o?XL=@Bcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@ufs3d\texturesphere.wrlB shapeindex@v@B picture@cbitmaps\spheresmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/BasicTEParametersB objectinfo@B ignoredraw@fBdisplaygroup@ standardBspatial@@B spatialx@ME@B spatialy@N?B spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?Bdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @B@#@B@B@B@@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@B BasicTE28:@objectB classes@@B BasicTE@h`AB TaskExecuter@`6AB Dispatcher@4ABFlexsimObject@ ABsuperclasses@@B TaskExecuter@`6`AB Dispatcher@4ABFlexsimObject@ AB variables@@EBonbeginoffset@treenode current = ownerobject(c); // the following x, y, and z values are requested x, y, and z offsets from this object's x/y center and z base. double x = parval(1); double y = parval(2); double z = parval(3); treenode item = parnode(4); double endspeed = parval(5); double maxspeed = parval(6); double acceleration = parval(7); double deceleration = parval(8); double lastupdatedspeed = parval(9); double rotatewhiletraveling = parval(10); Bonupdateoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bonfinishoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bpickplaceoffset@treenode current = ownerobject(c); int pickoperation = parval(1); treenode item = parnode(2); treenode otherobject = parnode(3); treenode xvalnode = parnode(4); treenode yvalnode = parnode(5); treenode zvalnode = parnode(6); B stopresume@treenode current = ownerobject(c); int stopoperation = parval(1); int stopstate = parval(2); treenode nrofstopsnode = parnode(3); treenode timeoflaststopnode = parnode(4); treenode statebeforestopnode = parnode(5); Badvancedfunctions@?treenode current = ownerobject(c); int msgtype = parval(1); B poffsetx@B poffsety@B poffsetz@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x? l?0$o?Ll@9\ ?  7l B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x? l?0$o?Ll@9\ ?  7l tecBunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:? l?0$o?XL=@?h 6x    ?    4  =   #` T =H  < =0  >|   =p  5      )  * =  &  =  4 c=eteB travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@?B useoffsets@?Boffsettingnow@Boffsetbegintime@Boffsettotaltime@B offsetlocx@B offsetlocy@B offsetlocz@B offsetbeginx@B offsetbeginy@B offsetbeginz@Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@'@Bcollisiontrigger@treenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Sort by TaskSequence Priority*/ return getpriority(tasksequence);@BX ? l?0$o?XL=@Bcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@ufs3d\texturesphere.wrlB shapeindex@v@B picture@cbitmaps\spheresmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/BasicTEParametersB objectinfo@B ignoredraw@fBdisplaygroup@ standardBspatial@@B spatialx@ME@B spatialy@NB spatialz@OQ?B spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?Bdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @B@"%@B@B@B@ @B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@B BasicTE29:@objectB classes@@B BasicTE@h`AB TaskExecuter@`6AB Dispatcher@4ABFlexsimObject@ ABsuperclasses@@B TaskExecuter@`6`AB Dispatcher@4ABFlexsimObject@ AB variables@@EBonbeginoffset@treenode current = ownerobject(c); // the following x, y, and z values are requested x, y, and z offsets from this object's x/y center and z base. double x = parval(1); double y = parval(2); double z = parval(3); treenode item = parnode(4); double endspeed = parval(5); double maxspeed = parval(6); double acceleration = parval(7); double deceleration = parval(8); double lastupdatedspeed = parval(9); double rotatewhiletraveling = parval(10); Bonupdateoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bonfinishoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bpickplaceoffset@treenode current = ownerobject(c); int pickoperation = parval(1); treenode item = parnode(2); treenode otherobject = parnode(3); treenode xvalnode = parnode(4); treenode yvalnode = parnode(5); treenode zvalnode = parnode(6); B stopresume@treenode current = ownerobject(c); int stopoperation = parval(1); int stopstate = parval(2); treenode nrofstopsnode = parnode(3); treenode timeoflaststopnode = parnode(4); treenode statebeforestopnode = parnode(5); Badvancedfunctions@?treenode current = ownerobject(c); int msgtype = parval(1); B poffsetx@B poffsety@B poffsetz@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>texy? l?0$o?Ll@9\  7l orB loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>texy? l?0$o?Ll@9\  7l xBunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:..>tnkx>tex vject@>vi? l?0$o?XL=@?h 6x    ?    4  =    #` T =H  < =0  >|   =p   5     )  * =   &  =  4  hc=B travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@?B useoffsets@?Boffsettingnow@Boffsetbegintime@Boffsettotaltime@B offsetlocx@B offsetlocy@B offsetlocz@B offsetbeginx@B offsetbeginy@B offsetbeginz@Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@@Bcollisiontrigger@treenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Sort by TaskSequence Priority*/ return getpriority(tasksequence);@BX ..>tnkx>tex? l?0$o?XL=@Bcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@ufs3d\texturesphere.wrlB shapeindex@v@B picture@cbitmaps\spheresmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/BasicTEParametersB objectinfo@B ignoredraw@fBdisplaygroup@ standardBspatial@@B spatialx@ME@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?Bdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @B@r&@B@B@B@[!@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@B Late Crane$ @objectBclasses@@BCrane@>`AB TaskExecuter@`6AB Dispatcher@4ABFlexsimObject@ AB superclasses@@B TaskExecuter@`6`AB Dispatcher@4ABFlexsimObject@ AB variables@@HB shellxloc@B shellyloc@@B shellzloc@B shellsizex@9@B shellsizey@@B shellsizez@@Bmoving@B liftheight@@Btravelsequence@L>XY>DB cranespeeds@@BGantry@@B Max_Speed@.@BAcceleration@?BDeceleration@?B Trolley@@B@.@B@?B@?B Hoist_Lift@@B@.@B@?B@?B Hoist_Drop@@B@.@B@?B@?BcranekinematicsA8 do not touch???u`@$O,@@-@п?E}♔$@?@>val$O,@  x@?Ws?Ws?Ws?ffffff?ffffff?ffffff?|h  x@.^@?YaD+?YaD+ @YaD+ @@v:ets(  x@@?;f?;f?;f????),">.^@@?Hr?~?Hr?~?Hr?~?333333333333?This object is not configured to record data for this graph. The model must be run with the "Record data for Content and Staytime gr P (( 0   @ 0 h 8 pж 8 ȧ x 0 P h  X  x H  8 @  H H 0  P   X x ( x  @ h$  H @   `  0(0  D H D PE +F XG 9 (H H `I  /H K     P 3X X ( P7 ` x H   X (   p > ؗ @ x  ;0 8 h Е X BH  P ( `+ 8J8. . / p/ H2 @0 / h + 0 5 1 x1 1 2 4 3 - 7 N3 3 P4 0, 5 X6 (7 `8 5 6 pF * (* * p h- > > U@= ȓ @ ? H? : PA @ @ Q09 9 , 7 8 : <  8   p  h XYh: A B B B P C `  Pؤ ]HL xK K p< k l D O O XP Q P PN `R N (Q = ; Q O G D `l 0m L XC < 0S R M hn n c n f g 8H 8o o m p pp q p @q r hG U `E x> S 8U ^  T F (^ `_ _ ] xr ^ V 0` K hT @d t u i Xw (x x w d r E y x `y 0z z 8| { | } @~ x I v pV   H H g Pu ` a ha 8b xe e a b 8; T P c { g h Ph  M j (D i V X i ( h{ (k X ` p G k h Я p t pI Xj Hf ( J  pc ؾ 0 d P  `  p @ v X  I @lHYB liftradius@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>texy? l?0$o?Ll@9\ 6x 7l  B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>texy? l?0$o?Ll@9\ 6x 7l Bunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:..>tnkx>tex ? l?0$o?XL=@?h 6x    ?    4  =    #` T =H  < =0  >|  =p  5     )  * =   &  =  4 Ec=B travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@B useoffsets@?Boffsettingnow@Boffsetbegintime@$O,@Boffsettotaltime@UZ)@B offsetlocx@B offsetlocy@?B offsetlocz@B offsetbeginx@-@B offsetbeginy@пB offsetbeginz@?Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@$O,@Bcollisiontrigger@otreenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); /**Crane Logic: */ /** Cranes must not cross paths along the */ #define X 1 #define Y 2 #define Z 3 int axis = /**/X/**list:X~Y~Z*/; /**- axis. If a collision is detected, then priority of tasks is determined first by priority of the task sequence being executed. If the priorities are equal, then the crane with the highest label named */ string labelname = /**/"cranepriority"/**/; /** takes precedence. Create a preempting task sequence for the other crane to move out of the way */ double traveldist = /**/5/**/; /** units of length along the axis specified, then wait for */ double delaytime = /**/2/**/; /** units of time before trying again.*/ // Here I find out which way I'm supposed to travel. int donothingflag = 0; doublearray travelloc = makearray(3); fillarray(travelloc, 0,0,0); int delayflag = 0; switch(axis) { case X: if(xloc(otherobject) > xloc(thisobject)) travelloc[1] = -traveldist; else travelloc[1] = traveldist; break; case Y: if(yloc(otherobject) > yloc(thisobject)) travelloc[2] = -traveldist; else travelloc[2] = traveldist; break; case Z: if(zloc(otherobject) > zloc(thisobject)) travelloc[3] = -traveldist; else travelloc[3] = traveldist; break; } /* Here's the real complicated part, namely figuring out when I should and when I should not preempt myself to get out of the other guy's way. Realize that this is happening on both colliding objects, so each object will decide for itself whether it needs to preempt its own active task. If this works correctly, exactly one of the two objects should preempt. Note: whenever I create a task sequence to get out of someone's way, I give that task sequence a special tag so that I can know later on (within this same field, but on the next collision detection event) that it is a task sequence created within this field. The way that I do this is I give my preemting task sequence a TASKTYPE_TAG task as its first task. This tag task does nothing as far as execution. But, as the first and second involved objects for this tag task, I set the first to point to myself, and the second to point to the guy I'm getting out of the way of. Then, next time this field fires, I can know the state of the situation, whether I'm already getting out of the way of the other guy, or whether he's getting out of my way, etc. */ treenode otheractivets = gettasksequence(otherobject, 0); treenode activets = gettasksequence(thisobject, 0); // Here are the cases in which I preempt myself if( // 1. If I am not doing anything right now !objectexists(activets) // 2. Either I'm currently already being preempted to get out of the way of the other object || (objectexists(activets) && gettasktype(activets, 1) == TASKTYPE_TAG && gettaskinvolved(activets, 1, 2) == otherobject) || ( // or the other guy is working on a task that is not a task to get out of my way, and his task takes priority over my task. objectexists(otheractivets) && (gettasktype(otheractivets, 1) != TASKTYPE_TAG || gettaskinvolved(otheractivets, 1, 2) != thisobject) && ( getpriority(otheractivets) > getpriority(activets) || ( getpriority(otheractivets) == getpriority(activets) && getlabelnum(otherobject, labelname) > getlabelnum(thisobject, labelname) ) ) ) ) { int preempttype = PREEMPT_ONLY; // If I'm already working on a task to get out of his way, then I want to abort that task // because this task will basically do the same thinge, except go a further distance further. if(objectexists(activets) && gettasktype(activets, 1) == TASKTYPE_TAG && gettaskinvolved(activets, 1, 1) == thisobject) { setpreempt(activets, PREEMPT_NOT); preempttype = PREEMPT_AND_ABORT_ACTIVE; } double priority = 0; if(objectexists(otheractivets)) priority = getpriority(otheractivets); treenode newts = createemptytasksequence(thisobject, priority, preempttype); // this is the tag task inserttask(newts, TASKTYPE_TAG, thisobject, otherobject); inserttask(newts, TASKTYPE_TRAVELRELATIVE, NULL, NULL, travelloc[1], travelloc[2], travelloc[3], 2); inserttask(newts, TASKTYPE_DELAY, NULL, NULL, delaytime, STATE_IDLE); dispatchtasksequence(newts); } @B ":/noons/inkxycranepriorityfocu/usefocuewfo@>OnEnd objeI2 Ev/tabment/6ment Docuobalente/tab p  ject0  ?o?0l$?Ll@?hl\ 6x  <996E OPC 6 J4(  "%d"X"=L""@"=4"#D# ## #7t# # $D$ $7$ $ 40 ! (%("(=(("(=()D ) )) )7) ) 8*D@* *74* * 9  D.%.&x.=l..&`.=T./D/ // /7/ / F0D0 070 0 1 KD?D DDD=DE?E EEE=E gY+HX)/W+xV)hV%X UHU:<UU=0UU U:UU=UT#TT=T TT=T S%RR=R RR=R Q)xP+hP(XP=LPP8PP P=,P P(PP PP=P OO=O M+L)L#L=LLLLL=L L)| L#lLL\L L=PL LDL=8L J*,J J=J [6[ [ W_)H_#8_=,_____= _ _) _#____=_ __=_ adaa=Xa b5tb be9ee \ ff=f f8fff=f g?  ggg4g g7gg=gi@i=4ii=(iii=ijjjCj jjCtj j jCdj jjjj j=Xjk kk7kkkk k=km m=m Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@@B@?B@B@B@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Pass to the object that is closest to the destination (if the object is on a network, then network travel is calculated; otherwise centroid-to-centroid distance is used).*/ /** \nConsider available objects only: */ int yes = 1; int no = 0; int onlyavailable =/**/yes/**/;/** (yes, no) */ /** \nIf none are found, then the tasksequence will be queued up using the Queue Strategy, and will be sent to the first available.*/ double curmin = GLOBAL_UNREACHABLE; int minindex = 0; treenode destination = NULL; for(int taskrank = 1; taskrank <= gettotalnroftasks(tasksequence) && destination == NULL; taskrank++) // this finds the first task in the tasksequence that is a travel task. { if(gettasktype(tasksequence,taskrank) == TASKTYPE_TRAVEL) destination = gettaskinvolved(tasksequence,taskrank,1); } if(destination==NULL) // first available if there is no travel task return 0; for(int index = 1; index <= nrop(current); index++) { treenode curobj = outobject(current, index); if(curobj && isclasstype(curobj, CLASSTYPE_TASKEXECUTER)) { int validcheck=1; if(onlyavailable && !(ipopen(curobj, opipno(current, index)) && inputopen(curobj)) ) validcheck=0; if(validcheck) { double curdist = distancetotravel(curobj, destination); if(curdist != GLOBAL_UNREACHABLE && (curmin == GLOBAL_UNREACHABLE || curmin > curdist)) { curmin = curdist; minindex = index; } } } } return minindex;@B D..>tnkx>tex End   Evto t",c? l?0$o6@6P6l4` 9|   6  ?6  #XH4<=0>4t=h5 )  #= &=4 ##=6  =M?@ 04$ = 9A )xh=\ =P 6  4)* ) = 4 == 45,  8"4< !9p! !`!=T!!=H!  ")"+ "%"7" "7""#""7""(""7" $8 $$7$ %5(%%4% 5 /&=4 0D*48*Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Prioritize by distance: \nSort the task sequences based on the closest involved object.*/ /** \n\nTask Rank: */ int taskrank = /**/4/**/; /** \nInvolved Object Number: */ int involvednum = /**/1/**/; /** \nConsider only partially completed tasksequences: */ int yes = 1; int no = 0; int onlypartial =/**/yes/**list:yes~no*/; /** \nCondition: */ int condition = /**/true/**/; /**\n\n*/ if(condition) { treenode station = gettaskinvolved(tasksequence,taskrank,involvednum); double dist = distancetotravel(current, station); double inversedist = 0; if((getnroftasks(tasksequence) < gettotalnroftasks(tasksequence) || !onlypartial) && dist != GLOBAL_UNREACHABLE) { if(dist > 0) { inversedist = 0.1 / dist; } else { inversedist = 0.1; } } //pt(getname(station));pr(); //pf(time());pt(" : ");pf(inversedist);pr(); return inversedist; } else return getpriority(tasksequence); /**Hints:*/ /**\nFor standard transport task sequences, use 4 / 1 / yes. */ /**\nFor standard request operators task sequences, use 4 / 2 / no. */ /**\nAs a Condition you can write getpriority(tasksequence)==0 such that task sequences with a specified priority are still handled first.*/ @BpZ..>tnkx>tex ??tr g? l?0$o6@6P 6`   6p   6  4 6 !:4?  44=9( = =98   )(7 + *4 'xl=`T=H # %7 8  7  8< 05,"7L"  $4%d%=X%icaBcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BLate Cranesubnode@B networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@@B@@Bx@?By@пBz@Bradius@@Bcollisionobjects@@B Early Crane@0B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble lastxloc@Bdouble lastyloc@Bdouble lastzloc@Bdouble justcreated@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bshape@ufs3d\texturebox.wrlB shapeindex@v@Bpicture@cbitmaps\Cranepicturesmall.bmpB imageobject@qfs3d\concrete.bmpBimageindexobject@rE@B imagebase@s***Bimageindexbase@tBcolor@a@Bred@?Bgreen@Bblue@B nochildscale@_?Bspecial@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/CraneParametersBspatial@@B spatialx@ME}♔$@B spatialy@N?B spatialz@O@B spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B Status: idle@?Blabels@@B connections@@Bconnectionsin@ @B@2@B@?B@B@1@B@?B@Bconnectionsout@ @Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@B Early Crane$ @objectBclasses@@BCrane@>`AB TaskExecuter@`6AB Dispatcher@4ABFlexsimObject@ AB superclasses@@B TaskExecuter@`6`AB Dispatcher@4ABFlexsimObject@ AB variables@@HB shellxloc@B shellyloc@@B shellzloc@B shellsizex@9@B shellsizey@@B shellsizez@@Bmoving@B liftheight@@Btravelsequence@L>XY>DB cranespeeds@@BGantry@@B Max_Speed@.@BAcceleration@?BDeceleration@?B Trolley@@B@.@B@?B@?B Hoist_Lift@@B@.@B@?B@?B Hoist_Drop@@B@.@B@?B@?BcranekinematicsA8 do not touch???u`@ @T@^@?п?B @п@>val @J|U@?Ws?Ws?Ws?ffffff?ffffff?ffffff?|hJ|U@pY@?2m?2m@2m@ffffff@ffffff@1Z.@ets(J|U@J|U@??.@),">pY@T@^@?Ws?Ws?Ws?ffffffffffff?This object is not configured to record data for this graph. The model must be run with the "Record data for Content and Staytime gr@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@  =     *   =x  h =\  H   =   =   u t| l od L < o4 >oAj o \LoD(3f<=i={7 focus = node("@>objectfocus+",c); treenode flags = node("../Flags",c); switch_hidelabel(focus, !getchecked(node("/Show Name",flags))); switch_hideconnectors(focus,!getchecked(node("/Show Ports",flags))); switch_hidebase(focus, !getchecked(node("/Show 2D Shape",flags))); switch_hideshape(focus, !getcB liftradius@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>texy? l?0$o?Ll@9\ 6x 7l  B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>texy? l?0$o?Ll@9\ 6x 7l Bunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:..>tnkx>tex ? l?0$o?XL=@?h 6x    ?    4  =    #` T =H  < =0  >|  =p  5     )  * =   &  =  4 Ec=B travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@B useoffsets@?Boffsettingnow@Boffsetbegintime@ @Boffsettotaltime@:C%@B offsetlocx@ffffff@B offsetlocy@B offsetlocz@B offsetbeginx@?B offsetbeginy@пB offsetbeginz@?Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@ @Bcollisiontrigger@otreenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); /**Crane Logic: */ /** Cranes must not cross paths along the */ #define X 1 #define Y 2 #define Z 3 int axis = /**/X/**list:X~Y~Z*/; /**- axis. If a collision is detected, then priority of tasks is determined first by priority of the task sequence being executed. If the priorities are equal, then the crane with the highest label named */ string labelname = /**/"cranepriority"/**/; /** takes precedence. Create a preempting task sequence for the other crane to move out of the way */ double traveldist = /**/5/**/; /** units of length along the axis specified, then wait for */ double delaytime = /**/2/**/; /** units of time before trying again.*/ // Here I find out which way I'm supposed to travel. int donothingflag = 0; doublearray travelloc = makearray(3); fillarray(travelloc, 0,0,0); int delayflag = 0; switch(axis) { case X: if(xloc(otherobject) > xloc(thisobject)) travelloc[1] = -traveldist; else travelloc[1] = traveldist; break; case Y: if(yloc(otherobject) > yloc(thisobject)) travelloc[2] = -traveldist; else travelloc[2] = traveldist; break; case Z: if(zloc(otherobject) > zloc(thisobject)) travelloc[3] = -traveldist; else travelloc[3] = traveldist; break; } /* Here's the real complicated part, namely figuring out when I should and when I should not preempt myself to get out of the other guy's way. Realize that this is happening on both colliding objects, so each object will decide for itself whether it needs to preempt its own active task. If this works correctly, exactly one of the two objects should preempt. Note: whenever I create a task sequence to get out of someone's way, I give that task sequence a special tag so that I can know later on (within this same field, but on the next collision detection event) that it is a task sequence created within this field. The way that I do this is I give my preemting task sequence a TASKTYPE_TAG task as its first task. This tag task does nothing as far as execution. But, as the first and second involved objects for this tag task, I set the first to point to myself, and the second to point to the guy I'm getting out of the way of. Then, next time this field fires, I can know the state of the situation, whether I'm already getting out of the way of the other guy, or whether he's getting out of my way, etc. */ treenode otheractivets = gettasksequence(otherobject, 0); treenode activets = gettasksequence(thisobject, 0); // Here are the cases in which I preempt myself if( // 1. If I am not doing anything right now !objectexists(activets) // 2. Either I'm currently already being preempted to get out of the way of the other object || (objectexists(activets) && gettasktype(activets, 1) == TASKTYPE_TAG && gettaskinvolved(activets, 1, 2) == otherobject) || ( // or the other guy is working on a task that is not a task to get out of my way, and his task takes priority over my task. objectexists(otheractivets) && (gettasktype(otheractivets, 1) != TASKTYPE_TAG || gettaskinvolved(otheractivets, 1, 2) != thisobject) && ( getpriority(otheractivets) > getpriority(activets) || ( getpriority(otheractivets) == getpriority(activets) && getlabelnum(otherobject, labelname) > getlabelnum(thisobject, labelname) ) ) ) ) { int preempttype = PREEMPT_ONLY; // If I'm already working on a task to get out of his way, then I want to abort that task // because this task will basically do the same thinge, except go a further distance further. if(objectexists(activets) && gettasktype(activets, 1) == TASKTYPE_TAG && gettaskinvolved(activets, 1, 1) == thisobject) { setpreempt(activets, PREEMPT_NOT); preempttype = PREEMPT_AND_ABORT_ACTIVE; } double priority = 0; if(objectexists(otheractivets)) priority = getpriority(otheractivets); treenode newts = createemptytasksequence(thisobject, priority, preempttype); // this is the tag task inserttask(newts, TASKTYPE_TAG, thisobject, otherobject); inserttask(newts, TASKTYPE_TRAVELRELATIVE, NULL, NULL, travelloc[1], travelloc[2], travelloc[3], 2); inserttask(newts, TASKTYPE_DELAY, NULL, NULL, delaytime, STATE_IDLE); dispatchtasksequence(newts); } @B ":/noons/inkxycranepriorityfocu/usefocuewfo@>OnEnd objeI2 Ev/tabment/6ment Docuobalente/tab p  ject0   f); ?o?0l$?Ll@?hl\ 6x  <996E OPC 6 J4(  "%d"X"=L""@"=4"#D# ## #7t# # $D$ $7$ $ 40 ! (%("(=(("(=()D ) )) )7) ) 8*D@* *74* * 9  D.%.&x.=l..&`.=T./D/ // /7/ / F0D0 070 0 1 KD?D DDD=DE?E EEE=E gY+HX)/W+xV)hV%X UHU:<UU=0UU U:UU=UT#TT=T TT=T S%RR=R RR=R Q)xP+hP(XP=LPP8PP P=,P P(PP PP=P OO=O M+L)L#L=LLLLL=L L)| L#lLL\L L=PL LDL=8L J*,J J=J [6[ [ W_)H_#8_=,_____= _ _) _#____=_ __=_ adaa=Xa b5tb be9ee \ ff=f f8fff=f g?  ggg4g g7gg=gi@i=4ii=(iii=ijjjCj jjCtj j jCdj jjjj j=Xjk kk7kkkk k=km m=mBcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@@B@?B@B@B@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Pass to the object that is closest to the destination (if the object is on a network, then network travel is calculated; otherwise centroid-to-centroid distance is used).*/ /** \nConsider available objects only: */ int yes = 1; int no = 0; int onlyavailable =/**/yes/**/;/** (yes, no) */ /** \nIf none are found, then the tasksequence will be queued up using the Queue Strategy, and will be sent to the first available.*/ double curmin = GLOBAL_UNREACHABLE; int minindex = 0; treenode destination = NULL; for(int taskrank = 1; taskrank <= gettotalnroftasks(tasksequence) && destination == NULL; taskrank++) // this finds the first task in the tasksequence that is a travel task. { if(gettasktype(tasksequence,taskrank) == TASKTYPE_TRAVEL) destination = gettaskinvolved(tasksequence,taskrank,1); } if(destination==NULL) // first available if there is no travel task return 0; for(int index = 1; index <= nrop(current); index++) { treenode curobj = outobject(current, index); if(curobj && isclasstype(curobj, CLASSTYPE_TASKEXECUTER)) { int validcheck=1; if(onlyavailable && !(ipopen(curobj, opipno(current, index)) && inputopen(curobj)) ) validcheck=0; if(validcheck) { double curdist = distancetotravel(curobj, destination); if(curdist != GLOBAL_UNREACHABLE && (curmin == GLOBAL_UNREACHABLE || curmin > curdist)) { curmin = curdist; minindex = index; } } } } return minindex;@B D..>tnkx>tex End   Ev*" keni? l?0$o6@6P6l4` 9|   6  ?6  #XH4<=0>4t=h5 )  #= &=4 ##=6  =M?@ 04$ = 9A )xh=\ =P 6  4)* ) = 4 == 45,  8"4< !9p! !`!=T!!=H!  ")"+ "%"7" "7""#""7""(""7" $8 $$7$ %5(%%4% 5 /&=4 0D*48*athBtasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Prioritize by distance: \nSort the task sequences based on the closest involved object.*/ /** \n\nTask Rank: */ int taskrank = /**/4/**/; /** \nInvolved Object Number: */ int involvednum = /**/1/**/; /** \nConsider only partially completed tasksequences: */ int yes = 1; int no = 0; int onlypartial =/**/yes/**list:yes~no*/; /** \nCondition: */ int condition = /**/true/**/; /**\n\n*/ if(condition) { treenode station = gettaskinvolved(tasksequence,taskrank,involvednum); double dist = distancetotravel(current, station); double inversedist = 0; if((getnroftasks(tasksequence) < gettotalnroftasks(tasksequence) || !onlypartial) && dist != GLOBAL_UNREACHABLE) { if(dist > 0) { inversedist = 0.1 / dist; } else { inversedist = 0.1; } } //pt(getname(station));pr(); //pf(time());pt(" : ");pf(inversedist);pr(); return inversedist; } else return getpriority(tasksequence); /**Hints:*/ /**\nFor standard transport task sequences, use 4 / 1 / yes. */ /**\nFor standard request operators task sequences, use 4 / 2 / no. */ /**\nAs a Condition you can write getpriority(tasksequence)==0 such that task sequences with a specified priority are still handled first.*/ @BpZ..>tnkx>tex ?? ? l?0$o6@6P 6`   6p   6  4 6 !:4?  44=9( = =98   )(7 + *4 'xl=`T=H # %7 8  7  8< 05,"7L"  $4%d%=X%Bcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BEarly Cranesubnode@B networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@@B@@Bx@?By@пBz@Bradius@@Bcollisionobjects@@B Late Crane@/B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble lastxloc@Bdouble lastyloc@Bdouble lastzloc@Bdouble justcreated@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bshape@ufs3d\texturebox.wrlB shapeindex@v@Bpicture@cbitmaps\Cranepicturesmall.bmpB imageobject@qfs3d\concrete.bmpBimageindexobject@rE@B imagebase@s***Bimageindexbase@tBcolor@a@Bred@?Bgreen@?Bblue@?B nochildscale@_?Bspecial@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/CraneParametersBspatial@@B spatialx@MB @B spatialy@NпB spatialz@O@B spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B Status: idle@?Blabels@@B connections@@Bconnectionsin@ @B@1@B@?B@B@2@B@?B@Bconnectionsout@ @Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BEarly Dispatcher$@objectB classes@@B Dispatcher@4`ABFlexsimObject@ `AB superclasses@@BFlexsimObject@ `AB variables@@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Prioritize by distance: \nSort the task sequences based on the closest involved object.*/ /** \n\nTask Rank: */ int taskrank = /**/4/**/; /** \nInvolved Object Number: */ int involvednum = /**/1/**/; /** \nConsider only partially completed tasksequences: */ int yes = 1; int no = 0; int onlypartial =/**/yes/**list:yes~no*/; /** \nCondition: */ int condition = /**/true/**/; /**\n\n*/ if(condition) { treenode station = gettaskinvolved(tasksequence,taskrank,involvednum); double dist = distancetotravel(current, station); double inversedist = 0; if((getnroftasks(tasksequence) < gettotalnroftasks(tasksequence) || !onlypartial) && dist != GLOBAL_UNREACHABLE) { if(dist > 0) { inversedist = 0.1 / dist; } else { inversedist = 0.1; } } //pt(getname(station));pr(); //pf(time());pt(" : ");pf(inversedist);pr(); return inversedist; } else return getpriority(tasksequence); /**Hints:*/ /**\nFor standard transport task sequences, use 4 / 1 / yes. */ /**\nFor standard request operators task sequences, use 4 / 2 / no. */ /**\nAs a Condition you can write getpriority(tasksequence)==0 such that task sequences with a specified priority are still handled first.*/ @BpZ..>tnkx>text s?@>On?tr g? l?0$o6@6P 6`   6p   6  4 6 :4? 44=9( = =98   )(7 + *4'xl=`T=H  %7 8  7  8< 0"7L"  %d%=X%Bcoordinatedtasks@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@ufs3d\dispatch.3dsB shapeindex@vA@Bpicture@c$bitmaps\taskmanagerpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?Bspecial@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}!VIEW:/pages/DispatcherParametersBspatial@@B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R@B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@V?Boffsety@W?Boffsetz@XB offsetsx@\(\?B offsetsy@](\?B offsetsz@^(\?B offsetrx@YB offsetry@ZB offsetrz@[V@B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @B@0@B@?B@B@g/@B@?B@Bconnectionscenter@ @B@ @B@B@B@ @B@B@B@(@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:@@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@?@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@BLate Dispatcher$@objectB classes@@B Dispatcher@4`ABFlexsimObject@ `AB superclasses@@BFlexsimObject@ `AB variables@@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Prioritize by distance: \nSort the task sequences based on the closest involved object.*/ /** \n\nTask Rank: */ int taskrank = /**/4/**/; /** \nInvolved Object Number: */ int involvednum = /**/1/**/; /** \nConsider only partially completed tasksequences: */ int yes = 1; int no = 0; int onlypartial =/**/yes/**list:yes~no*/; /** \nCondition: */ int condition = /**/true/**/; /**\n\n*/ if(condition) { treenode station = gettaskinvolved(tasksequence,taskrank,involvednum); double dist = distancetotravel(current, station); double inversedist = 0; if((getnroftasks(tasksequence) < gettotalnroftasks(tasksequence) || !onlypartial) && dist != GLOBAL_UNREACHABLE) { if(dist > 0) { inversedist = 0.1 / dist; } else { inversedist = 0.1; } } //pt(getname(station));pr(); //pf(time());pt(" : ");pf(inversedist);pr(); return inversedist; } else return getpriority(tasksequence); /**Hints:*/ /**\nFor standard transport task sequences, use 4 / 1 / yes. */ /**\nFor standard request operators task sequences, use 4 / 2 / no. */ /**\nAs a Condition you can write getpriority(tasksequence)==0 such that task sequences with a specified priority are still handled first.*/ @BpZ..>tnkx>text s?@>On? ? l?0$o6@6P 6`   6p   6  4 6 :4? 44=9( = =98   )(7 + *4'xl=`T=H  %7 8  7  8< 0"7L"  %d%=X%Bcoordinatedtasks@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@ufs3d\dispatch.3dsB shapeindex@vA@Bpicture@c$bitmaps\taskmanagerpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?Bspecial@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}!VIEW:/pages/DispatcherParametersBspatial@@B spatialx@M$@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R@B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@V?Boffsety@W?Boffsetz@XB offsetsx@\(\?B offsetsy@](\?B offsetsz@^(\?B offsetrx@YB offsetry@ZB offsetrz@[V@B centroid@e?B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @B@c/@B@?B@B@0@B@?B@Bconnectionscenter@ @B@! @B@B@B@_ @B@B@B@@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:@@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@?@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@BCharger Loading$@objectBclasses@@B Processor@"`ABFixedResource@ `ABFlexsimObject@ `AB superclasses@@BFixedResource@ `ABFlexsimObject@ `AB variables@@9B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>texy?o?0l$9@ ? 7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>texy?o?0l$6@ ?  cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Blragfns/?o?0l$6@cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>texy? l?0$o6Lk@6\uh c  4x  =l ); Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Loadingsubnode@BCharger Loadingsubnode@MB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@Bgreen@?Bblue@?Bshape@ufs3d\comb_color.3dsB shapeindex@v>@Bpicture@c"bitmaps\processorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/ProcessorParametersB spatial@@B spatialx@M:@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@;@B@?B@Bconnectionsout@ @B@6@B@B@Bconnectionscenter@ @B@79@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Loading$@objectBclasses@@B Processor@"`ABFixedResource@ `ABFlexsimObject@ `AB superclasses@@BFixedResource@ `ABFlexsimObject@ `AB variables@@9B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@6\7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@6\ cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Blragfsso?o?0l$6@cxh4\=P); Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\uh c  4x  =l ); Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Loadingsubnode@BCharger Loadingsubnode@PB networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@Bgreen@?Bblue@?Bshape@ufs3d\comb_color.3dsB shapeindex@v>@Bpicture@c"bitmaps\processorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/ProcessorParametersB spatial@@B spatialx@M:@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WB offsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@;@B@?B@Bconnectionsout@ @B@7@B@B@Bconnectionscenter@ @B@}:@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Unloading$@objectBclasses@@B Separator@'`AB Processor@"`ABFixedResource@ `ABFlexsimObject@ `AB superclasses@@B Processor@"`ABFixedResource@ `ABFlexsimObject@ `AB variables@@=Bunpack@?Bsplitquantity@treenode item = parnode(1); treenode current = ownerobject(c); /**Entire Contents*/ /** \nUnpack the entire content of the flowitem which entered port 1.*/ return content(item); @BX nkx>tex? l?0$o6@L=@Boverriddensendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl?o?0l$6@cxh4\=PBcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; @Bx#nkx>texunpack ? l?0$o6@6P   t l =`   #   l u4  ?4  t hBreceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\u c  4x  =l ); Bnroftransportsout@@Bnroftransportsin@B outwaitinfo@@B@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Unloadingsubnode@BCharger Unloadingsubnode@\B networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@ Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\separate_color.3dsB shapeindex@v?@Bpicture@c"bitmaps\separatorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?Bspecial@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/SeparatorParametersB spatial@@B spatialx@M;@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B spatialrz@UB ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@4@B@?B@Bconnectionsout@ @B@@B@B@B@@B@B@Bconnectionscenter@ @B@;9@B@B@B@x@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BCharger Unloading$@objectBclasses@@B Separator@'`AB Processor@"`ABFixedResource@ `ABFlexsimObject@ `AB superclasses@@B Processor@"`ABFixedResource@ `ABFlexsimObject@ `AB variables@@=Bunpack@?Bsplitquantity@treenode item = parnode(1); treenode current = ownerobject(c); /**Entire Contents*/ /** \nUnpack the entire content of the flowitem which entered port 1.*/ return content(item); @BX nkx>tex? l?0$o6@L=@Boverriddensendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; B recycle@B cycletime@treenode current = ownerobject(c); treenode item = parnode(1);/**By Expression*/ /** \nExpression: */ double value = /**/2/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B\:/nonkx>tex?o?0l$9@7P} B setuptime@treenode current = ownerobject(c); treenode item = parnode(1); treenode port = parval(2); /**No Setup Time (return zero)*/ return 0;@B maxcontent@?@Buseprocessoperators@?Busesetupoperators@Bnrofprocessoperators@?Bprocessoperatorpriority@Bpreemptprocessoperators@Bprocessdispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl:/nonkx>tex?o?0l$6@ cx h 4\  =P ); Bsetupfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bprocessfinishtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @Bmtbf@mtreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Bbreakdowntrigger@%treenode current = ownerobject(c); @Bmttr@ltreenode current = ownerobject(c); /**No Breakdowns*/ /** \nReturn a 0 for MTBF and MTTR.*/ return 0; @Brepairtrigger@%treenode current = ownerobject(c); @Busedownoperators@Bnrofdownoperators@?Bdownoperatorpriority@Bpreemptdownoperators@Bdowndispatcher@Ptreenode current = ownerobject(c); treenode item = parnode(1); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bl?o?0l$6@cxh4\=Pup(Bcurdowndispatcher@@B nextdown@Bconvey@?Bnextrepairtime@B usesameop@?Bnrofsetupoperators@?Bprocessingdownflag@?B mtbfstates@@B@@@B totaltime@B nrreleased@Bpull@B sendtoport@treenode item = parnode(1); treenode current = ownerobject(c); /**Default Separator Option*/ /** \nPort for container: */ int containerport = /**/1/**/; /** \nPort for contents: */ int contentport = /**/2/**/; /** \n\nNote: If not unpacking, just send to first available.*/ if(getvarnum(current,"unpack")) { if(getrank(parnode(1)) == 1) return containerport; else return contentport; } else return 0; @Bx#nkx>texunpack ? l?0$o6@6P   t l =`   #   l u4  ?4  t hBreceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@?@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@Bnkx>tex? l?0$o6Lk@6\u c  4x  =l e aBnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@@BCharger Unloadingsubnode@BCharger Unloadingsubnode@_B networknodes@Btimeoflaststop@B nrofstops@@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@Bvisual@@ Bcolor@a@Bred@Bgreen@Mb?Bblue@jt?Bshape@ufs3d\separate_color.3dsB shapeindex@v?@Bpicture@c"bitmaps\separatorpicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?Bspecial@@Btitle@dFixed Resource MultiserviceB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@} VIEW:/pages/SeparatorParametersB spatial@@B spatialx@M;@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B spatialrz@UB ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@B objectinfo@@B Output: 0@B %Idle: 0.0@B%Processing: 0.0@Blabels@@B connections@@Bconnectionsin@ @B@Q5@B@?B@Bconnectionsout@ @B@@B@B@B@@B@B@Bconnectionscenter@ @B@:@B@B@B@t@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@B BasicTE41:@objectB classes@@B BasicTE@h`AB TaskExecuter@`6`AB Dispatcher@4`ABFlexsimObject@ `ABsuperclasses@@B TaskExecuter@`6`AB Dispatcher@4`ABFlexsimObject@ `AB variables@@EBonbeginoffset@treenode current = ownerobject(c); // the following x, y, and z values are requested x, y, and z offsets from this object's x/y center and z base. double x = parval(1); double y = parval(2); double z = parval(3); treenode item = parnode(4); double endspeed = parval(5); double maxspeed = parval(6); double acceleration = parval(7); double deceleration = parval(8); double lastupdatedspeed = parval(9); double rotatewhiletraveling = parval(10); Bonupdateoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bonfinishoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bpickplaceoffset@treenode current = ownerobject(c); int pickoperation = parval(1); treenode item = parnode(2); treenode otherobject = parnode(3); treenode xvalnode = parnode(4); treenode yvalnode = parnode(5); treenode zvalnode = parnode(6); B stopresume@treenode current = ownerobject(c); int stopoperation = parval(1); int stopstate = parval(2); treenode nrofstopsnode = parnode(3); treenode timeoflaststopnode = parnode(4); treenode statebeforestopnode = parnode(5); Badvancedfunctions@?treenode current = ownerobject(c); int msgtype = parval(1); B poffsetx@B poffsety@B poffsetz@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>texy? l?0$o?Ll@9\  7l B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>texy? l?0$o?Ll@9\  7l Bunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:..>tnkx>tex vject@>vi? l?0$o?XL=@?h 6x    ?    4  =    #` T =H  < =0  >|   =p   5     )  * =   &  =  4  hc=B travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@?B useoffsets@?Boffsettingnow@Boffsetbegintime@M<@Boffsettotaltime@B offsetlocx@ffffff%@B offsetlocy@333333B offsetlocz@B offsetbeginx@;@B offsetbeginy@B offsetbeginz@Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@M<@Bcollisiontrigger@treenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Sort by TaskSequence Priority*/ return getpriority(tasksequence);@BX ..>tnkx>tex? l?0$o?XL=@Bcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@ufs3d\texturesphere.wrlB shapeindex@v@B picture@cbitmaps\spheresmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/BasicTEParametersB objectinfo@B ignoredraw@fBdisplaygroup@ standardBspatial@@B spatialx@M;@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?Bdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @B@4@B@B@B@6@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@B BasicTE42:@objectB classes@@B BasicTE@h`AB TaskExecuter@`6`AB Dispatcher@4`ABFlexsimObject@ `ABsuperclasses@@B TaskExecuter@`6`AB Dispatcher@4`ABFlexsimObject@ `AB variables@@EBonbeginoffset@treenode current = ownerobject(c); // the following x, y, and z values are requested x, y, and z offsets from this object's x/y center and z base. double x = parval(1); double y = parval(2); double z = parval(3); treenode item = parnode(4); double endspeed = parval(5); double maxspeed = parval(6); double acceleration = parval(7); double deceleration = parval(8); double lastupdatedspeed = parval(9); double rotatewhiletraveling = parval(10); Bonupdateoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bonfinishoffset@Ftreenode current = ownerobject(c); double offsettingnow = parval(1); double offsettotaltime = parval(2); double maxspeed = parval(3); double acceleration = parval(4); double deceleration = parval(5); double lastupdatedspeed = parval(6); double rotatewhiletraveling = parval(7); double curloadunloadtime = parval(8); Bpickplaceoffset@treenode current = ownerobject(c); int pickoperation = parval(1); treenode item = parnode(2); treenode otherobject = parnode(3); treenode xvalnode = parnode(4); treenode yvalnode = parnode(5); treenode zvalnode = parnode(6); B stopresume@treenode current = ownerobject(c); int stopoperation = parval(1); int stopstate = parval(2); treenode nrofstopsnode = parnode(3); treenode timeoflaststopnode = parnode(4); treenode statebeforestopnode = parnode(5); Badvancedfunctions@?treenode current = ownerobject(c); int msgtype = parval(1); B poffsetx@B poffsety@B poffsetz@Bactivetasksequence@@B maxcontent@?B loadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>tex? l?0$o?Ll@9\  7l B loadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B unloadtime@Etreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); /**By Expression*/ /** \nExpression: */ double value = /**/0/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value;@B`x..>tnkx>tex? l?0$o?Ll@9\  7l lorBunloadtrigger@btreenode item = parnode(1); treenode current = ownerobject(c); treenode station = parnode(2); @B maxspeed@@B acceleration@?B deceleration@?B navigator@Boldbreakrequirement@Bbreakto@treenode activets = parnode(1); treenode current = ownerobject(c); /**New Tasksequences Only*/ /** \nOnly break to task sequences that have not been started already.*/ treenode tsqueue = gettasksequencequeue(current); treenode returnts = NULL; for(int index = 1; index <= content(tsqueue) && ! returnts; index++) { treenode curts = rank(tsqueue, index); if(gettotalnroftasks(curts) == getnroftasks(curts)) returnts = curts; } return tonum(returnts);@Bl:..>tnkx>tex vject@>vi? l?0$o?XL=@?h 6x    ?    4  =    #` T =H  < =0  >|   =p   5     )  * =   &  =  4  hc=B travelinfo@@B travelstartx@B travelstarty@B travelstartz@Btraveldistance@Btraveldirection@B travelendx@B travelendy@B travelendz@B travelacc@B traveldec@Btravelstarttime@~Btravelendtime@Btraveltimealpha@Btraveltimebeta@B travelvpeak@B travelvmax@B travelvstart@B travelvend@Bmodifyrotation@?B useoffsets@?Boffsettingnow@Boffsetbegintime@ gxPU@Boffsettotaltime@B offsetlocx@ffffff'@B offsetlocy@ffffff@B offsetlocz@B offsetbeginx@;@B offsetbeginy@B offsetbeginz@Boffsetbeginxrot@Boffsetbeginyrot@Boffsetbeginzrot@B loadedspeed@@B emptyspeed@@Bcurloadunloadtime@Blastupdatedspeed@B travelvstart@B travelvend@Blastspeedupdatetime@ gxPU@Bcollisiontrigger@treenode thisobject=ownerobject(c); treenode otherobject=parnode(1); treenode thissphere=parnode(2); treenode othersphere=parnode(3); Bcollcheckinterval@?Bdrawcollspheres@B incollision@Bcollcheckstate@Btotaltraveldist@B kinematics@Bflipthreshold@f@Bpassimmediately@@Bpassto@"treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**First Available*/ /** \nIf there are no objects currently available, then queue the tasksequence up using the Queue Strategy and wait until someone connected to its output ports becomes available.*/ return 0;@Btasksequencequeue@@Bqueuestrategy@treenode tasksequence = parnode(1); treenode current = ownerobject(c); /**Sort by TaskSequence Priority*/ return getpriority(tasksequence);@BX ..>tnkx>tex? l?0$o?XL=@Bcoordinatedtasks@@Bonresourceavailable@treenode current = ownerobject(c); int port = parval(1); treenode resource = parnode(2); treenode nextts = parnode(3); treenode lastts = parnode(4); Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@B cppvariables@@Bdouble offsetloc[3] @Bfsnode* activetask@Bdouble* protectlocs@Bunsigned char portinfoflag@Bvisual@@ Bcolor@a@Bred@?Bgreen@?Bblue@?Bshape@ufs3d\texturesphere.wrlB shapeindex@v@B picture@cbitmaps\spheresmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B special@@Btitle@dObjectB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/BasicTEParametersB objectinfo@B ignoredraw@fBdisplaygroup@ standardBspatial@@B spatialx@M;@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UBoffsetx@VBoffsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?Bdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @Bconnectionsout@ @Bconnectionscenter@ @B@W5@B@B@B@7@B@B@Bevents@ @Bstats@@Bstate@@Bstate_current@,?Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. TimeBstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BQueue43$@objectB superclasses@@BFixedResource@ `ABFlexsimObject@ `ABclasses@@BQueue@@!`ABFixedResource@ `ABFlexsimObject@ `AB variables@@,B maxcontent@?@B usebatching@B batchsize@@B maxwaittime@Bflush@Bcurrentbatchsize@Bendcollectingtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @B placemode@?B stackinitz@B curxfringe@Bcuryloc@B curmaxysize@Bcurzloc@B curmaxzsize@Bproductspacing@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>tex?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B..>tnkx>tex? l?0$o6Lk@6\ u( c  4x  =l  } Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@B@B@Bsendtocontinuous@?Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@Bcppvariables@@Bint lastpredrawoutput@Bint lastpredrawinput@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bspecial@@Btitle@dFixed Resource QueueB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/QueueParametersBvisual@@ Bcolor@a@Bred@MbX9?Bgreen@MbX9?Bblue@MbX9?Bshape@ufs3d\queue_n_color.3dsB shapeindex@v<@Bpicture@cbitmaps\queuepicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B spatial@@B spatialx@M8@B spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@BCurContent: 0@BMaxContent: 0@BAvgStaytime: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@1@B@?B@Bconnectionsout@ @B@|@B@B@B@ 4@B@B@B@K5@B@B@Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@BQueue44$@objectB superclasses@@BFixedResource@ `ABFlexsimObject@ `ABclasses@@BQueue@@!`ABFixedResource@ `ABFlexsimObject@ `AB variables@@,B maxcontent@~.A@B usebatching@B batchsize@@B maxwaittime@Bflush@Bcurrentbatchsize@Bendcollectingtrigger@Btreenode item = parnode(1); treenode current = ownerobject(c); @B placemode@?B stackinitz@B curxfringe@Bcuryloc@B curmaxysize@Bcurzloc@B curmaxzsize@Bproductspacing@B nrreleased@Bpull@B sendtoport@ztreenode item = parnode(1); treenode current = ownerobject(c); /**First available*/ /** \nOpen all ports.*/ return 0 ;@Breceivefromport@@treenode current = ownerobject(c); /**Any Port*/ return 0; @Bpullrequirement@treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /**No Requirement*/ /** \nAlways return true.*/ return 1;@B\nkx>texy?o?0l$6Lk@6\ B entrytrigger@Ztreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B exittrigger@[treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); @B usetransport@@Btransportpriority@Bpreempttransport@Btransportdispatcher@gtreenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); /**Port by Expression*/ /** \nCenter port number: */ int portnum = /**/1/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return tonum(centerobject(current,portnum));@B..>tnkx>texy? l?0$o6Lk@6\uh c  4x  =l  } Bnroftransportsout@Bnroftransportsin@B outwaitinfo@@B@Bsendtocontinuous@Bpullcontinuous@Blifo@Bmessagetrigger@%treenode current = ownerobject(c); @Bondrawtrigger@treenode current = ownerobject(c); treenode view = parnode(1); // If this function returns a true, the default draw code of the object will not be executed. B timetables@B networknodes@Btimeoflaststop@B nrofstops@Bstatebeforestop@Bcollisionspheres@Bcollisionobjects@B resettrigger@%treenode current = ownerobject(c); B savedstate@Bresetposition@B behaviour@@Beventfunctions@Bcppfunctions@@Bcppvariables@@Bint lastpredrawoutput@Bint lastpredrawinput@Bdouble inport@Bfsnode* lastreleased@Bfsnode* curtransporter@Bdouble* protectlocs@Bunsigned char portinfoflag@Bspecial@@Btitle@dFixed Resource QueueB description@bB guifocus@|%VIEW:/standardviews/ObjectPropertiesBguifocusclass@}VIEW:/pages/QueueParametersBvisual@@ Bcolor@a@Bred@MbX9?Bgreen@MbX9?Bblue@MbX9?Bshape@ufs3d\queue_n_color.3dsB shapeindex@v<@Bpicture@cbitmaps\queuepicturesmall.bmpB imageobject@q***Bimageindexobject@rB imagebase@s***Bimageindexbase@tB nochildscale@_?B spatial@@B spatialx@MB spatialy@NB spatialz@OB spatialsx@P?B spatialsy@Q?B spatialsz@R?B spatialrx@SB spatialry@TB spatialrz@UB offsetx@VB offsety@WBoffsetz@XB offsetsx@\?B offsetsy@]?B offsetsz@^?B offsetrx@YB offsetry@ZB offsetrz@[B centroid@e?B objectinfo@@BCurContent: 0@BMaxContent: 0@BAvgStaytime: 0.0@B ignoredraw@fB displaygroup@ standardBdisplaygrouplist@@B standard@Blabels@@B connections@@Bconnectionsin@ @B@\@B@?B@Bconnectionsout@ @B@ @B@B@Bconnectionscenter@ @Bevents@ @Bstats@@Bstate@@Bstate_current@,@Bstate_changetime@B state_since@-Bstate_profile@.State@2Bidle@B processing@Bbusy@Bblocked@B generating@Bempty@B collecting@B releasing@Bwaiting_for_operator@Bwaiting_for_transporter@B breakdown@Bscheduled_down@B conveying@B travel_empty@Btravel_loaded@Boffset_travel_empty@Boffset_travel_loaded@Bloading@B unloading@Bdown@Bsetup@Butilize@Bfull@B not_empty@Bfilling@Bstarved@Bmixing@Bflowing@Ballocated_idle@B off_shift@B change_over@Brepair@B maintenance@Blunch@B on_break@Bsuspend@B available@Bpreprocessing@Bpostprocessing@B inspecting@B operating@Bstandby@Bpurging@B cleaning@B accelerating@B maxspeed@B decelerating@Bstopped@Bwaiting@B accumulating@B state_graph@0Bcontent@@Bstats_contentmin@4Bstats_contentmax@5Bstats_contentavg@6Bstats_contentupdates@7Bstats_contentsince@8Bstats_contentgraph@9Content vs. Time@Bstats_contentgraphmaxpoints@:Y@Bstats_content@2B staytime@@Bstats_staytimemin@<Bstats_staytimemax@=Bstats_staytimeavg@>Bstats_staytimeupdates@?Bstats_staytimegraph@A StaytimeBstats_staytimehisto@C@B parameters@@B startvalue@B endvalue@Y@Bbuckets@4@Bdata@ Staytime@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B@B interval@@Bmean@Blo@Bhi@Bpercent@W@Bauto@?Bstats_staytimegraphmaxpoints@BY@Bstats_staytimesince@@B throughput@@B stats_input@KB stats_output@LBstats_throughput@DBstats_throughputgraph@E ThroughputBstats_throughputgraphmaxpoints@FBstats_creationtime@JBstats_lastmovetime@IBstored@@