【问题标题】:The default unit of the simulation time in the simulation script in Unetstack simulatorUnetstack模拟器中模拟脚本中模拟时间的默认单位
【发布时间】:2019-05-04 16:21:43
【问题描述】:

我正在使用DiscreteEventSimulator 平台在 UnetStack 模拟器中运行模拟脚本。我想知道,模拟时间T的默认时间单位是多少,如果我不指定一个,模拟器会考虑以秒为单位吗?我应该指定时间单位吗?

例如:

def T = 18
simulate T, {
  :
  :
}

在这种情况下,模拟器是否考虑模拟时间18秒?还是 18 毫秒或什么?

【问题讨论】:

    标签: time simulation unetstack


    【解决方案1】:

    模拟时间以秒为单位。所有其他单位都转换为秒(例如 5.minutes = 300),并使用 Groovy 扩展来添加单位。

    【讨论】:

      猜你喜欢
      • 2012-12-26
      • 1970-01-01
      • 1970-01-01
      • 2011-05-18
      • 2010-09-28
      • 2021-03-22
      • 1970-01-01
      • 2014-11-26
      • 2018-10-29
      相关资源
      最近更新 更多