Plant Simulation常用命令


Plant Simulation 是面向对象的三维离散事件仿真软件,使您能够快速、直观地构建逼真的物流模型。 您还可以使用高级统计工具执行复杂的生产分析。以下介绍该软件的一些常用命令。

1. clearConsole: 清空控制台内容。

2.表操作:

is
   orderlist : table[string,real];
do
   orderlist.create;
   orderlist[1,1] := "cans";
   orderlist[2,1] := 3000.0;
   orderlist.forget;    -- 删除表
   orderlist.create(4); -- 重现创建一个4行的表end; 

 3.  When-Then-Else

例1:  is
do
   @.color := when ?.entranceLocked then "red" else "green";
end;  
例2:  (n : integer) : integer -- computes the faculty of n
is
do
   return when n > 1 then n * self.execute(n - 1)
       else 1;
end;  
例3:  Method(x, y + (when dy > 0 then y+dy else 100));  

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM