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));  

 

posted @ 2013-11-05 09:26  马语者  阅读(4768)  评论(0编辑  收藏  举报