您可以将 2 个单独的流程图与一个限制区域连接起来吗?

Can you connect 2 separate flowcharts with one restricted area?

我们的模型有一个 ProductionOrder 占用了一些 Operators。占用块有一个准备流程图,供操作员通过气闸 (PAL) 进入房间。在 ProductionOrder 操作(一个延迟块)之后,Operators 被释放并有一个 Wrap-Up 流程图,通过同一个气闸将他们送出房间。因为这个气闸只能容纳 2 人,所以我们需要将准备和总结流程图中的组合操作员限制为气闸中的 2 人,无论他们进出(即任何时候最多 2 人)。

如果我们通过使用连接器连接块来执行此操作,则会出现一个错误,基本上是说您无法将准备流程图连接到总结流程图。

有没有办法link圈出队列和禁区启动块?

不使用队列 (PALqueue),而是使用等待块(在两个流程中)

并且你可以在每个等待块 PALqueue 的 on enter 中做:

if(PALCapacityLimit.entitiesInside()+PALCapacityLimit1.entitiesInside()<2){
    self.free(agent);
}

并且在 PalInLimit 的上方(两者)

if(PALqueue.size()>0)
PALqueue.free(PALqueue.get(0)); //remember now PALqueue is a wait block
else if(PALqueue1.size()>0)
PALqueue1.free(PALqueue1.get(0));

好了:)