任务序列全指挥(二)
GO
任务序列全指挥(二)
任务序列传统编制模式在Flexsim软件中先创建一个任务安排表,确定执行人、重要性、紧急程度和由单个或多个单任务组成的任务序列。
In the traditional programming mode of task sequence, a task schedule is first created in Flexsim software to determine the executor, importance, urgency and task sequence composed of single or multiple single tasks.
其中执行人是指Dispatcher,任务的第一责任人,第一责任人可能不是具体执行者但是必须经过他分配相关工作;
The executor refers to the Dispatcher, the first responsible person of the task. The first responsible person may not be the specific executor but must be assigned related work through him;
任务重要性Priority,任务执行的优先顺序,一个任务执行器可能会接到多个任务的安排任务序列,如何选择完成顺序就会由优先级来确定,若任务优先级相同时,便按照先进先出的规则完成相关序列,其中需要注意的是,只有任务序列会有优先级,任务是没有优先级的,任务只会按照自己编写的顺序执行;
Task importance Priority, the priority order of task execution. A task executor may receive multiple task scheduling tasks. How to choose the order of completion will be determined by the priority. If the task priority is the same, it will be based on the first priority. The rules listed out complete the related sequence. It should be noted that only the task sequence has priority, and the task has no priority. The tasks will only be executed in the order they wrote;
紧急程度Preempt,任务的抢占能力,对比重要性,重要性在执行的过程中是无法中断的,只能等待其任务序列执行完成,但是紧急程度可以抢占当前序列的优先级,紧急程度更高可以中断当前执行序列,转而执行紧急程度更高的任务序列。
Urgency Preempt, task preemption ability, contrast importance, importance cannot be interrupted in the execution process, can only wait for its task sequence execution to complete, but the urgency can preempt the priority of the current sequence, and the urgency can be higher. Interrupt the current execution sequence and execute the task sequence with higher urgency.
任务安排完成后,还需发布任务,发布传达过程称为Dispatch发布。其中有一个比较值得注意的事情是计划的编制时间和计划的执行时间是不一样的,编制计划的时候不一定能非常准确的预知执行过程中会遇到的困难,因此在Flexsim软件中需要我们提前进行预见,确保编制任务的时候是否会被执行。
After the task arrangement is completed, the task needs to be released. The release and communication process is called Dispatch release. One of the more noteworthy things is that the preparation time of the plan is not the same as the execution time of the plan. When preparing the plan, it may not be possible to predict the difficulties encountered during the implementation process very accurately. Therefore, we need us in the Flexsim software. Foresee in advance to ensure whether the task will be executed when the task is prepared.
了解到任务序列传统编制模式之后,就让我们以一个小案例来了解一下吧,就是一个简单的运输任务,将临时实体从暂存区1送至处理器,等待处理器进行处理之后送至暂存区2。
After understanding the traditional compilation mode of task sequence, let us take a small case to understand it, which is a simple transportation task, sending a temporary entity from temporary storage area 1 to the processor, waiting for the processor to process it and then sending it to the temporary Deposit area 2.
进行连线之后,在暂存区1临时实体流的使用操作员选项中编写相关代码,其相关解释及注明我已放入代码中可放大观看。
After the connection is made, write the relevant code in the use operator option of the temporary entity stream in temporary storage area 1, and the relevant explanation and note that I have put it in the code can be zoomed in and watched.
运行结果如下,在处理器等待当前处理临时实体,并送至暂存区2之后再进行下一个临时实体的搬运:
The results of the operation are as follows. After the processor waits for the current flowitem to be processed and sends it to the temporary storage area 2, the next flowitem is moved:
最后来总结一下完整任务序列的编制过程,第一步创建一个空的任务序列,具体设置如下:
Finally, to summarize the compilation process of the complete task sequence, the first step is to create an empty task sequence. The specific settings are as follows:
createemptytasksequence(obj dispatcher, num priority ,num preempting)
第二步:往任务序列中插入具体的任务,根据任务的不同选用不同的参数,具体设置如下:
Step 2: Insert specific tasks into the task sequence, and choose different parameters according to different tasks. The specific settings are as follows:
inserttask(obj tasksequece, num type[,obj involved1,obj involved2,num var1,num var2, num var3,num var4])
第三步:将创建好的任务序列分派出去,具体设置如下:
Step 3: Assign the created task sequence, the specific settings are as follows:
dispatchtasksequence(obj tasksequence)
希望能对你们的学习有一定的帮助。
I hope it will be helpful to your study.
参考资料:腾讯课堂《从小白到大神》
英文翻译:Google翻译
本文由LearningYard新学苑原创,若有侵权请联系删除。