使用参数的衰减元素类型
dropoff element type using parameters
我的模型中有一个子流程,其中有一个下降块 (image). I want the drop-off element type could be set in model. I mean that I want to use this sub process in every part of model with different element types. so I used a parameter and set its type as an Agent and its control type is Agent Creator (image)。但问题是在 drop-off element type 字段中我不能使用它,因为该参数在该字段中是未知的。
您描述的功能称为 'parametrised Agent'。这可以通过在代理属性的 高级 Java 区域中勾选 Parametrized type
复选框来实现,请参见下面的屏幕截图。
在图中的示例中,参数化类型称为 T
。然后必须将其设置到 Dropoff 组件的 Element Type 字段中。有关详细信息,请参阅 Agent help and generic parameters help。
.
我的模型中有一个子流程,其中有一个下降块 (image). I want the drop-off element type could be set in model. I mean that I want to use this sub process in every part of model with different element types. so I used a parameter and set its type as an Agent and its control type is Agent Creator (image)。但问题是在 drop-off element type 字段中我不能使用它,因为该参数在该字段中是未知的。
您描述的功能称为 'parametrised Agent'。这可以通过在代理属性的 高级 Java 区域中勾选 Parametrized type
复选框来实现,请参见下面的屏幕截图。
在图中的示例中,参数化类型称为 T
。然后必须将其设置到 Dropoff 组件的 Element Type 字段中。有关详细信息,请参阅 Agent help and generic parameters help。