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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值