餐馆联邦一次运行的时间推进序列 (按时间排序的时间推进请求和time grant序列)
来源:互联网 发布:最新网络流行歌曲2017 编辑:程序博客网 时间:2024/05/16 07:15
通过在源文件中加入System.out.print("Consumption-NER:-"+_logicalTime+" "+System.currentTimeMillis())类似的方式在标准输出设备上输出所有NER,TAR和time grant事件及其发生的系统时间点。然后在具体运行各个联邦成员时,把标准输出重定向到文本文件中,再把各个联邦成员产生的文本文件合并。导入到Excel中(分隔符为空格)。然后在Excel中按第二列(系统时间)排序,就得到了下面的事件时间序列。下面列出了从系统开始运行,逻辑时间为0到逻辑时间50秒内发生的事件序列。
首先看一下与时间推进有关的各个联邦的参数列表
联邦成员时间推进方式步长lookahead
ManagerTAR1.00.01
ProductioonNER0.01
TransportTAR1.00.01
ConsumptionNER0.01
ViewerTAR1.00.1
其中,Viewer不是时间调节的,其时间推进被忽略。则Manager和Transport都为TAR方式,而Production和Consumption都为NER方式。Manager以墙钟时间推进,因此在发出TAR请求之前,考虑了slppeTime,以确保其在整数秒发出TAR请求。
注意,对于TAR方式的时间推进,RTI会如下处理:
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
Consumption-feflectAttributeValues:-time<0.01>1290135754601
Consumption-feflectAttributeValues:-time<0.01>1290135754601
Consumption-feflectAttributeValues:-time<0.01>1290135754601
Consumption-feflectAttributeValues:-time<0.01>1290135754601
Manager-TAR:-time<1.0>1290135755612
Consumption-time-grant:-time<0.01>1290135755652
//注释I: 此时,Manager TAR 1.0,Transport TAR 1.0,Consumption NER INF,Production NER 1.5. 依据前面的NER方式RTI的处理方式,RTI收到Consumption的NER INF请求时,用callback方式把应该发给Consumption并且带有时间戳小于1.5的最小时间戳T’(注意,这些事件的时间戳要一样,都是最小的时间戳)事件都发给Consumption。并且之后发送time grant to T'给Consumption
Manager-time-grant:-time<1.0>1290135755682
//注释II:此时,Manager TAR 1.0,Transport TAR 1.0, Consumption time grant 0.01,Production NER 1.5,
//注意到Consumption此时的输出时间为1.01,而Production的输出时间也为1.01.
//而manager的TAR为1.0,因此time grant to 1.0
//虽然此时Consumption time grant to 0.01,但RTI应该能知道这个0.01是因为接收到具有0.01 timestamp的事件而由RTI发出的。
//并且RTI也应该能知道之前Consumption发出的NER INF
Production-time-grant:-time<0.01>1290135755692
//跟上面对Consumption的解释道理一样。
Consumption-NER:-time<INF>1290135755733
Production-NER:-time<1.5>1290135755773
Transport-time-grant:-time<1.0>1290135755903
//此时,跟上面对manager的解释道理一样。
Production-feflectAttributeValues:-time<1.01>1290135755933
Production-feflectAttributeValues:-time<1.01>1290135755933
Production-feflectAttributeValues:-time<1.01>1290135755933
Production-feflectAttributeValues:-time<1.01>1290135755933
Production-feflectAttributeValues:-time<1.01>1290135755943
Production-feflectAttributeValues:-time<1.01>1290135755943
Production-feflectAttributeValues:-time<1.01>1290135755943
Consumption-feflectAttributeValues:-time<1.01>1290135756013
Consumption-feflectAttributeValues:-time<1.01>1290135756013
Consumption-feflectAttributeValues:-time<1.01>1290135756013
Consumption-feflectAttributeValues:-time<1.01>1290135756013
Consumption-feflectAttributeValues:-time<1.01>1290135756023
Consumption-feflectAttributeValues:-time<1.01>1290135756023
Consumption-feflectAttributeValues:-time<1.01>1290135756023
Consumption-feflectAttributeValues:-time<1.01>1290135756023
Transport-TAR:-time<2.0>1290135756033
Production-feflectAttributeValues:-time<1.01>1290135756043
Manager-TAR:-time<2.0>1290135756794
Production-time-grant:-time<1.01>1290135756814
//参照注释I
Manager-time-grant:-time<2.0>1290135756824
//参照注释II 此时Manager TAR 2.0, Production time grant 1.01, Transport TAR 2.0, Consumption NER INF
//考虑到manager并没有订阅Production发布的任何对象属性,只订阅了SimulationEnds交互(Consumption发布)。因此,此时
//Manager可以不考虑Transport和Consumption的输出时间。
Consumption-time-grant:-time<1.01>1290135756824
//参照注释I
Production-NER:-time<1.5>1290135756834
Consumption-NER:-time<INF>1290135756894
Production-time-grant:-time<1.5>1290135756904
//没有发给Production的消息,但是Manager time grant 2.0, Production NER 1.5, Transport TAR 2.0,Consumption NER INF
//no present message, 也无future message time < 1.5
Consumption-feflectAttributeValues:-time<1.51>1290135756994
Production-NER:-time<3.1>1290135757094
Consumption-feflectAttributeValues:-time<1.51>1290135757094
Consumption-time-grant:-time<1.51>1290135757114
//参照注释I
Consumption-NER:-time<INF>1290135757145
Transport-time-grant:-time<2.0>1290135757195
//此时,Manager time grant 2.0,Production NER 3.1, Transport TAR 2.0, Consumption NER INF
Consumption-feflectAttributeValues:-time<2.01>1290135757205
Consumption-feflectAttributeValues:-time<2.01>1290135757215
Transport-TAR:-time<3.0>1290135757235
Production-feflectAttributeValues:-time<2.01>1290135757245
Production-feflectAttributeValues:-time<2.01>1290135757245
Consumption-feflectAttributeValues:-time<2.01>1290135757265
Consumption-feflectAttributeValues:-time<2.01>1290135757265
Consumption-feflectAttributeValues:-time<2.01>1290135757265
Consumption-feflectAttributeValues:-time<2.01>1290135757265
Production-feflectAttributeValues:-time<2.01>1290135757275
Production-feflectAttributeValues:-time<2.01>1290135757275
Production-feflectAttributeValues:-time<2.01>1290135757275
Production-feflectAttributeValues:-time<2.01>1290135757275
Production-feflectAttributeValues:-time<2.01>1290135757275
Production-feflectAttributeValues:-time<2.01>1290135757275
Consumption-feflectAttributeValues:-time<2.01>1290135757275
Consumption-feflectAttributeValues:-time<2.01>1290135757275
Manager-TAR:-time<3.0>1290135757585
Production-time-grant:-time<2.01>1290135757595
/参照注释I
Consumption-time-grant:-time<2.01>1290135757615
//参照注释I
Manager-time-grant:-time<3.0>1290135757645
//此时,Manager TAR 3.0, Production time grant to 2.01, Transport TAR 3.0, Consumption time grant to 2.01
//需要注意到此时,Production 当前是time grant to 2.01,但同样,这个time grant是RTI发送事件给production后发出的time grant,此前Production曾经发出NER 3.1的请求。对Consumption而言同样如此。RTI应该明白Consumption NER INF的请求更有效。
//这里的解释还需要细化。
Production-NER:-time<3.1>1290135757655
Consumption-NER:-time<INF>1290135757665
Transport-time-grant:-time<3.0>1290135757725
Production-feflectAttributeValues:-time<3.01>1290135757745
Production-feflectAttributeValues:-time<3.01>1290135757745
Production-feflectAttributeValues:-time<3.01>1290135757745
Production-feflectAttributeValues:-time<3.01>1290135757745
Production-feflectAttributeValues:-time<3.01>1290135757745
Production-feflectAttributeValues:-time<3.01>1290135757745
Production-feflectAttributeValues:-time<3.01>1290135757745
Production-feflectAttributeValues:-time<3.01>1290135757745
Consumption-feflectAttributeValues:-time<3.01>1290135757745
Consumption-feflectAttributeValues:-time<3.01>1290135757745
Consumption-feflectAttributeValues:-time<3.01>1290135757745
Consumption-feflectAttributeValues:-time<3.01>1290135757745
Consumption-feflectAttributeValues:-time<3.01>1290135757745
Consumption-feflectAttributeValues:-time<3.01>1290135757745
Consumption-feflectAttributeValues:-time<3.01>1290135757745
Consumption-feflectAttributeValues:-time<3.01>1290135757745
Transport-TAR:-time<4.0>1290135757805
Manager-TAR:-time<4.0>1290135758607
Consumption-time-grant:-time<3.01>1290135758607
Manager-time-grant:-time<4.0>1290135758627
Production-time-grant:-time<3.01>1290135758657
Production-NER:-time<3.1>1290135758687
Consumption-NER:-time<INF>1290135758717
Production-time-grant:-time<3.1>1290135758727
Consumption-feflectAttributeValues:-time<3.11>1290135758857
Consumption-feflectAttributeValues:-time<3.11>1290135758867
Consumption-feflectAttributeValues:-time<3.11>1290135758867
Production-NER:-time<4.0>1290135758917
Consumption-time-grant:-time<3.11>1290135758997
Consumption-NER:-time<INF>1290135759047
Transport-time-grant:-time<4.0>1290135759097
Consumption-feflectAttributeValues:-time<4.01>1290135759097
Consumption-feflectAttributeValues:-time<4.01>1290135759107
Production-time-grant:-time<4.0>1290135759117
Consumption-feflectAttributeValues:-time<4.01>1290135759157
Consumption-feflectAttributeValues:-time<4.01>1290135759157
Consumption-feflectAttributeValues:-time<4.01>1290135759157
Consumption-feflectAttributeValues:-time<4.01>1290135759167
Consumption-feflectAttributeValues:-time<4.01>1290135759167
Transport-TAR:-time<5.0>1290135759197
Consumption-feflectAttributeValues:-time<4.01>1290135759207
Production-NER:-time<INF>1290135759248
Production-feflectAttributeValues:-time<4.01>1290135759248
Production-feflectAttributeValues:-time<4.01>1290135759248
Consumption-feflectAttributeValues:-time<4.01>1290135759248
Production-feflectAttributeValues:-time<4.01>1290135759258
Production-feflectAttributeValues:-time<4.01>1290135759258
Production-feflectAttributeValues:-time<4.01>1290135759258
Production-feflectAttributeValues:-time<4.01>1290135759258
Production-feflectAttributeValues:-time<4.01>1290135759258
Production-feflectAttributeValues:-time<4.01>1290135759258
Manager-TAR:-time<5.0>1290135759548
Manager-time-grant:-time<5.0>1290135759588
Consumption-time-grant:-time<4.01>1290135759608
Production-time-grant:-time<4.01>1290135759638
Production-NER:-time<INF>1290135759658
Consumption-NER:-time<INF>1290135759668
Production-feflectAttributeValues:-time<5.01>1290135759698
Production-feflectAttributeValues:-time<5.01>1290135759698
Consumption-feflectAttributeValues:-time<5.01>1290135759698
Consumption-feflectAttributeValues:-time<5.01>1290135759698
Consumption-feflectAttributeValues:-time<5.01>1290135759698
Consumption-feflectAttributeValues:-time<5.01>1290135759698
Transport-time-grant:-time<5.0>1290135759718
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Consumption-feflectAttributeValues:-time<5.01>1290135759748
Transport-TAR:-time<6.0>1290135759838
Production-feflectAttributeValues:-time<5.01>1290135759868
Production-feflectAttributeValues:-time<5.01>1290135759868
Production-feflectAttributeValues:-time<5.01>1290135759898
Production-feflectAttributeValues:-time<5.01>1290135759898
Production-feflectAttributeValues:-time<5.01>1290135759898
Production-feflectAttributeValues:-time<5.01>1290135759898
Production-feflectAttributeValues:-time<5.01>1290135759898
Production-feflectAttributeValues:-time<5.01>1290135759898
Production-time-grant:-time<5.01>1290135760559
Manager-TAR:-time<6.0>1290135760579
Production-NER:-time<5.51>1290135760579
Manager-time-grant:-time<6.0>1290135760600
Consumption-time-grant:-time<5.01>1290135760600
Consumption-NER:-time<INF>1290135760630
Production-time-grant:-time<5.51>1290135760640
Consumption-feflectAttributeValues:-time<5.52>1290135760720
Production-NER:-time<8.01>1290135760780
Consumption-time-grant:-time<5.52>1290135760800
Consumption-NER:-time<INF>1290135760810
Transport-time-grant:-time<6.0>1290135760850
Production-feflectAttributeValues:-time<6.01>1290135760880
Production-feflectAttributeValues:-time<6.01>1290135760880
Production-feflectAttributeValues:-time<6.01>1290135760880
Production-feflectAttributeValues:-time<6.01>1290135760880
Production-feflectAttributeValues:-time<6.01>1290135760880
Production-feflectAttributeValues:-time<6.01>1290135760880
Production-feflectAttributeValues:-time<6.01>1290135760880
Production-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Consumption-feflectAttributeValues:-time<6.01>1290135760880
Transport-TAR:-time<7.0>1290135760900
Manager-TAR:-time<7.0>1290135761591
Production-time-grant:-time<6.01>1290135761601
Consumption-time-grant:-time<6.01>1290135761611
Manager-time-grant:-time<7.0>1290135761631
Production-NER:-time<8.01>1290135761641
Consumption-NER:-time<INF>1290135761651
Transport-time-grant:-time<7.0>1290135761721
Consumption-feflectAttributeValues:-time<7.01>1290135761741
Consumption-feflectAttributeValues:-time<7.01>1290135761741
Consumption-feflectAttributeValues:-time<7.01>1290135761741
Consumption-feflectAttributeValues:-time<7.01>1290135761741
Consumption-feflectAttributeValues:-time<7.01>1290135761741
Consumption-feflectAttributeValues:-time<7.01>1290135761741
Consumption-feflectAttributeValues:-time<7.01>1290135761741
Consumption-feflectAttributeValues:-time<7.01>1290135761741
Consumption-feflectAttributeValues:-time<7.01>1290135761751
Consumption-feflectAttributeValues:-time<7.01>1290135761751
Production-feflectAttributeValues:-time<7.01>1290135761791
Production-feflectAttributeValues:-time<7.01>1290135761801
Production-feflectAttributeValues:-time<7.01>1290135761801
Production-feflectAttributeValues:-time<7.01>1290135761801
Production-feflectAttributeValues:-time<7.01>1290135761801
Production-feflectAttributeValues:-time<7.01>1290135761801
Production-feflectAttributeValues:-time<7.01>1290135761801
Production-feflectAttributeValues:-time<7.01>1290135761801
Transport-TAR:-time<8.0>1290135761811
Manager-TAR:-time<8.0>1290135762572
Production-time-grant:-time<7.01>1290135762582
Production-NER:-time<8.01>1290135762582
Consumption-time-grant:-time<7.01>1290135762592
Manager-time-grant:-time<8.0>1290135762622
Consumption-NER:-time<INF>1290135762632
Transport-time-grant:-time<8.0>1290135762652
Production-feflectAttributeValues:-time<8.01>1290135762662
Production-feflectAttributeValues:-time<8.01>1290135762662
Consumption-feflectAttributeValues:-time<8.01>1290135762662
Consumption-feflectAttributeValues:-time<8.01>1290135762662
Transport-TAR:-time<9.0>1290135762693
Production-feflectAttributeValues:-time<8.01>1290135762723
Production-feflectAttributeValues:-time<8.01>1290135762723
Production-feflectAttributeValues:-time<8.01>1290135762723
Production-feflectAttributeValues:-time<8.01>1290135762723
Consumption-feflectAttributeValues:-time<8.01>1290135762723
Production-feflectAttributeValues:-time<8.01>1290135762753
Production-feflectAttributeValues:-time<8.01>1290135762753
Consumption-feflectAttributeValues:-time<8.01>1290135762753
Consumption-feflectAttributeValues:-time<8.01>1290135762753
Consumption-feflectAttributeValues:-time<8.01>1290135762753
Consumption-feflectAttributeValues:-time<8.01>1290135762753
Consumption-feflectAttributeValues:-time<8.01>1290135762753
Consumption-feflectAttributeValues:-time<8.01>1290135762753
Consumption-feflectAttributeValues:-time<8.01>1290135762753
Production-time-grant:-time<8.01>1290135763594
Manager-TAR:-time<9.0>1290135763604
Consumption-time-grant:-time<8.01>1290135763614
Manager-time-grant:-time<9.0>1290135763644
Consumption-NER:-time<INF>1290135763654
Consumption-feflectAttributeValues:-time<8.02>1290135763684
Production-NER:-time<INF>1290135763694
Consumption-time-grant:-time<8.02>1290135763794
Consumption-NER:-time<INF>1290135763804
Transport-time-grant:-time<9.0>1290135763824
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Consumption-feflectAttributeValues:-time<9.01>1290135763844
Production-feflectAttributeValues:-time<9.01>1290135763854
Production-feflectAttributeValues:-time<9.01>1290135763854
Production-feflectAttributeValues:-time<9.01>1290135763854
Production-feflectAttributeValues:-time<9.01>1290135763854
Production-feflectAttributeValues:-time<9.01>1290135763854
Production-feflectAttributeValues:-time<9.01>1290135763854
Production-feflectAttributeValues:-time<9.01>1290135763854
Production-feflectAttributeValues:-time<9.01>1290135763854
Transport-TAR:-time<10.0>1290135763864
Manager-TAR:-time<10.0>1290135764655
Production-time-grant:-time<9.01>1290135764665
Consumption-time-grant:-time<9.01>1290135764665
Production-NER:-time<INF>1290135764685
Manager-time-grant:-time<10.0>1290135764705
- 餐馆联邦一次运行的时间推进序列 (按时间排序的时间推进请求和time grant序列)
- 餐馆联邦一次运行的时间推进序列 (按时间排序的时间推进请求和time grant序列) 续
- 两个联邦成员组成的一个联邦的时间推进学习
- 仿真时间推进的逻辑时间与物理时间如何成比例推进
- 最大子序列和问题的解(共4种,层层推进)
- MATLAB时间序列的排序函数
- 时间序列(一)时间序列的生成
- UINavigationController之间的推进
- 谓词推进的测试
- oracle 序列和系统时间的存取
- 时间序列数据的存储和计算
- 时间序列数据的存储和计算
- 时间序列数据的存储和计算
- 时间序列数据的存储和计算
- 时间序列数据的存储和计算
- 时间序列的分析和预测ARIMA
- 把时间留下,把目标推进
- 最大子序列和问题的解(线性时间)
- C#类型转换
- VB二进制存储数据
- JS打印页面(转)
- Don Norman: 简单不是答案
- Access学习编程中
- 餐馆联邦一次运行的时间推进序列 (按时间排序的时间推进请求和time grant序列)
- ABPA 对文件的存取
- struts1.x 文件上传 formfile
- java 数据验证类
- 测试株连分析(Test Impact)
- [软件人生]青润的职业定位
- [继续摘抄]架构师给程序员的一封信
- 使用SkinMagic Toolkit美化界面
- C++中实现委托(Delegate)