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