急需解决的问题
问题:有两个暂存区a和b(分别只存放一种类型的临时实体),后面一个处理器,如何实现暂存区a中的临时实体优先进入处理器?请大伙儿帮忙解决一下 如果只有两个暂存区的话,连接处理器第一个入口就是优先端口。如果是多个暂存区的话,可在处理器的Flow属性栏里,点击“Pull“选择钮,选择或自定义Pull方式。如果是某类FlowItem优先的话,可参照下列程序自定义。treenode current = ownerobject(c);
/**getitemtype*/
/** \nPull from the port with the longest queue.*/
treenode tempinobject;
int curindex = 0;
for(int index = 1; index <= nrip(current); index++)
{
tempinobject = inobject(current, index);
if(getitemtype(rank(tempinobject,1))==2)
{
curindex = index;
}
else
{
curindex = 1;
}
}
return curindex;
Flexsim中国代理:北京创时能科技发展有限公司
电话:010-51288549
www.csn-bj.com
页:
[1]