import java.util.ArrayList;
import java.util.List;
import com.anylogic.libraries.processmodeling.Queue;
import com.anylogic.libraries.processmodeling.ResourcePool;
import com.anylogic.libraries.processmodeling.Sink;
import com.anylogic.libraries.processmodeling.Source;
public class Main {
public static void main(String[] args) {
// 创建模型
MyModel model = new MyModel();
// 设置参数
model.numberOfSources = 2;
model.numberOfResources = 2;
// 运行模拟
model.run();
}
}
class MyModel extends com.anylogic.engine.Model {
// 模型参数
public int numberOfSources;
public int numberOfResources;
// 模型组件
public List