餐馆联邦一次运行的时间推进序列 (按时间排序的时间推进请求和time grant序列)

本文详细记录了一次联邦系统运行中时间推进的序列,包括TAR(时间提前请求)和NER(事件请求)事件。通过在各联邦成员的标准输出中收集并整理事件,然后在Excel中按时间排序,揭示了Manager, Production, Transport, Consumption等成员的时间推进模式和交互细节。例如,Manager如何根据TAR发出时间推进请求,以及RTI如何处理不同成员的NER请求。内容涵盖了时间戳同步、事件处理策略以及时间推进机制的实现。" 129823628,15774959,Golang Gin与Qrcode库实战:生成二维码,"['golang', 'gin', 'web开发', '二维码生成', '依赖管理']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

通过在源文件中加入System.out.print("Consumption-NER:-"+_logicalTime+"    "+System.currentTimeMillis())类似的方式在标准输出设备上输出所有NER,TAR和time grant事件及其发生的系统时间点。然后在具体运行各个联邦成员时,把标准输出重定向到文本文件中,再把各个联邦成员产生的文本文件合并。导入到Excel中(分隔符为空格)。然后在Excel中按第二列(系统时间)排序,就得到了下面的事件时间序列。下面列出了从系统开始运行,逻辑时间为0到逻辑时间50秒内发生的事件序列。

 

首先看一下与时间推进有关的各个联邦的参数列表

 

联邦成员 时间推进方式 步长 lookahead

 

Manager TAR 1.0 0.01

 

Productioon NER 0.01

 

Transport TAR 1.0 0.01

 

Consumption NER 0.01

 

Viewer TAR 1.0 0.1

 

其中,Viewer不是时间调节的,其时间推进被忽略。则Manager和Transport都为TAR方式,而Production和Consumption都为NER方式。Manager以墙钟时间推进,因此在发出TAR请求之前,考虑了slppeTime,以确保其在整数秒发出TAR请求。

 

 

注意,对于TAR方式的时间推进,RTI会如下处理:

 

The federate invokes this service to request its logical time to be advanced to T
All RO messages in the RTI’s internal queues, and all TSO messages with time stamps £ T, are delivered to the federate after TAR(T) has been invoked
If no other TSO messages with time stamps £ T are forthcoming (or will be generated by another federate later), the RTI calls the federate’s Time Advance Grant procedure with parameter T to indicate that the federate’s logical time has been advanced to T

 

 

注意,对于NER方式的时间推进,RTI会如下处理:   
After the federate F invokes NER(T):
The RTI delivers all RO messages in its internal queue
If no present or future TSO message has a time stamp  <=   T, the RTI invokes the federate’s Time Advance Grant procedure indicating that the federate’s logical time has been advanced to T
Otherwise, the RTI will deliver the next smallest TSO message destined for F (with time stamp T ´ <=  T) and all other messages with time stamp T ´ ; then the RTI calls Time Advance Grant procedure with parameter T ´ , and the logical time of F is advanced to T ´

 

 

 


 

Production-NER:-time<1.5> 1290135754501 

manager-TAR:-time<0.0> 1290135754511 

Transport-TAR:-time<1.0> 1290135754531 

Production-feflectAttributeValues:-time<0.01> 1290135754541 

Production-feflectAttributeValues:-time<0.01> 1290135754541 

Production-feflectAttributeValues:-time<0.01> 1290135754541 

Production-feflectAttributeValues:-time<0.01> 1290135754541 

Production-feflectAttributeValues:-time<0.01> 1290135754541 

Production-feflectAttributeValues:-time<0.01> 1290135754541 

Production-feflectAttributeValues:-time<0.01> 1290135754541 

Production-feflectAttributeValues:-time<0.01> 1290135754541 

Consumption-NER:-time<INF> 1290135754601 

Consumption-feflectAttributeValues:-time<0.01> 1290135754601 

Consumption-feflectAttributeValues:-time<0.01> 1290135754601 

Consumption-feflectAttributeValues:-time<0.01> 1290135754601 

Consumption-feflectAttributeValues:-time<0.01> 1290135754601 

Consumpt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值