PlantSimulation人员控制
///
人员独立控制编程方法
param SensorID: integer, Front: boolean, BookPos: boolean
@.Stopped:=true
/*Var Tab:table
Tab.Create
WorkerPool.getAssignedWorkersTable(Tab) //读取Pool 人员表 直接指定人员进行作业
Var Person:=Tab[1,1]
Person.goto(W1)
waituntil Person.Location/=void and Person.Location=W1
@.destination:=W2
@.move(Person)*/
Var Tab:object[1]
Tab:=Broker.getExportersForService("W2") //向调度中心Broker请求一个人员执行"w2"任务 返回值是数组
var Person:object
Person:=Tab[1] //读取Arry中的第一个数据
Person.goto(W1)
waituntil Person.Location/=void and Person.Location=W1
@.destination:=W2
@.move(Person)
///
var tab,tab2,tab3,tab4,tab5,tab6:table
tab.create
Broker.Brokerstat(tab) //Brokerstat 记录Broker 运行状态信息
Broker.getOfferedServices(tab2)//通过任何找到对应作业的人
///
Syntax
<Path>.getExportersForService(Service:string) → object[]
The method getExportersForService returns the Workers/Exporters who provi