[font=宋体][color=#000000]模型中有四个实体:[/color][/font]
[font=宋体][color=#000000]发生器,处理器,暂存区,独立暂存区。[/color][/font]
[color=#000000][font=宋体]发生器,处理器,暂存区依次[/font][font=Times New Roman]A[/font][font=宋体]连接。[/font][/color]
[font=宋体][color=#000000]独立暂存区不与任何实体相连。[/color][/font]
[font=Times New Roman][color=#000000][/color][/font]
[font=宋体][color=#000000]发生器中产生两种类型的临时实体,[/color][/font]
[font=宋体][color=#000000]第一种临时实体加工后传送到暂存区,[/color][/font]
[font=宋体][color=#000000]第二种临时实体加工后“移动”到独立暂存区。[/color][/font]
[font=Times New Roman][color=#000000][/color][/font]
[font=宋体][color=#000000]发生器中创建触发中代码如下:[/color][/font]
[align=left][size=9pt]setitemtype[/size][size=9pt]([/size][size=9pt]item[/size][size=9pt],[/size][size=9pt]duniform[/size][size=9pt]([/size][size=9pt]1[/size][size=9pt],[/size][size=9pt]2[/size][size=9pt]));[/size][/align]
[size=9pt]colorarray[/size][size=9pt]([/size][size=9pt]item[/size][size=9pt],[/size][size=9pt]getitemtype[/size][size=9pt]([/size][size=9pt]item[/size][size=9pt]));[/size]
[size=9pt][/size]
[font=宋体][color=#000000]处理器的“加工结束触发”中加入以下代码:[/color][/font]
[b][size=9pt]if[/size][/b][size=9pt] ([/size][size=9pt]getitemtype[/size][size=9pt]([/size][size=9pt]item[/size][size=9pt])==[/size][size=9pt]2[/size][size=9pt]) [/size][size=9pt]moveobject[/size][size=9pt]([/size][size=9pt]item[/size][size=9pt],[/size][size=9pt]node[/size][size=9pt]([/size][size=9pt]"[/size][font=宋体][size=9pt]独立暂存区[/size][/font][size=9pt]"[/size][size=9pt], [/size][size=9pt]model[/size][size=9pt]()));[/size]
[size=9pt][/size]
[color=#000000][b][font=宋体]各种触发器触发时间的先后顺序为:[/font][/b][b][size=10.5pt][/size][/b][/color]
[color=#000000][font=宋体]重置触发[/font][font=Wingdings][font=Wingdings]à[/font][/font][font=宋体]进入触发[/font][font=Wingdings][font=Wingdings]à[/font][/font][font=宋体]预置结束触发[/font][font=Wingdings][font=Wingdings]à[/font][/font][font=宋体]加工结束触发[/font][font=Wingdings][font=Wingdings]à[/font][/font][font=宋体]发送至端口[/font][font=Wingdings][font=Wingdings]à[/font][/font][font=宋体]使用运输工具[/font][font=Wingdings][font=Wingdings]à[/font][/font][font=宋体]离开触发[/font][size=10.5pt][/size][/color]
[color=#000000][font=宋体]加工结束触发在发送至端口触发之前,[/font][size=10.5pt][/size][/color]
[color=#000000][font=宋体]理论上来讲,第二种临时实体加工完成后先应该先被移动到独立暂存区。[/font][size=10.5pt][/size][/color]
[size=10.5pt][font=Times New Roman][color=#000000][/color][/font][/size]
[color=#000000][font=宋体]可是模型运行起来并不是这样子,所有的临时实体全部堆积在暂存区。[/font][/color]
[color=#000000][font=宋体]没有任何临时实体进入“独立暂存区”。[/font][/color]
[color=#000000][font=宋体]请问问题出在哪里?[/font][size=10.5pt][/size][/color]
[size=10.5pt][font=Times New Roman][color=#000000][/color][/font][/size]
[font=Times New Roman][color=#000000]moveobject (obj object, obj location[, num outport])[/color][/font]
[font=Times New Roman][color=#000000]Moves object to the specified location[/color][/font]
[font=宋体][color=#000000]移动对象到指定位置。[/color][/font]
[font=Times New Roman][color=#000000]Description[/color][/font]
[font=Times New Roman][color=#000000]This command moves the object to the specified location through the specified port. [/color][/font]
[font=宋体][color=#000000]可以指定从哪个端口输出。[/color][/font]
[font=Times New Roman][color=#000000]The specified port does not have to actually exist, this value is used by the receiving location to be able to reference the port the object came in through. [/color][/font]
[font=宋体][color=#000000]这个端口并不一定要真正存在,主要是为了告诉接收方对象是通过哪个端口进入的。[/color][/font]
[font=Times New Roman][color=#000000]When an object moves into location, the OnReceive event function of location is executed. [/color][/font]
[font=宋体][color=#000000]当对象移动到指定位置时,将激活(执行)接收方的“接收触发”事件。(什么实体会有接收触发?)[/color][/font]
[font=Times New Roman][color=#000000]This includes the OnEntry trigger function. [/color][/font]
[font=宋体][color=#000000]这包括“进入触发”。(什么意思?接收方的进入触发吗?这句话有什么含义?)[/color][/font]
[font=Times New Roman][color=#000000]Explicitly calling this on a flowitem with events queued up for it may cause problems. [/color][/font]
[font=宋体][color=#000000]如果临时实体有事件要执行时使用这个命令将会引发不可预知的错误。[/color][/font]
[font=Times New Roman][color=#000000]Only use when you know that no events are pending for the object being moved.[/color][/font]
[font=宋体][color=#000000]只有被移动的对象没有任何事件要执行的时候才能使用这个命令。[/color][/font]
[size=9pt][/size]