DirectDelivery
路由无疑是最简单的,其他的路由的update
,最开始的代码与DirectDelivery
是一样的。本文介绍DirectDelivery
,旨在进一步了解ActiveRouter.update
、MessageRouter.update
、isTransferring
、canStartTransfer
、exchangeDeliverableMessages
。 Read more
Month: 十二月 2014
The ONE使用笔记:每个updateInterval都做些什么(world.update)
The ONE仿真器进行一系列初始化之后,开始仿真,详情可参考之前博文《The ONE使用笔记:main函数剖析》。仿真的核心部分是world.update()
函数,world.update
负责每隔一段时间,处理所有事件,并且更新所有节点。本文讲解The ONE仿真器每隔一段时间都做些什么。 Read more
How to pronounce words ending in S
The pronunciation of words ending in S depends on the final consonant, i.e., the final sound.
历史时间轴(中国、欧洲、世界)
最近,看了《你一定爱读的极简欧洲史》和《BBC 数学的故事》,发现历史真的很有趣。为了更好了解历史,常备一张地图和一份时间轴显得很有必要,地图已有,本文收集了一些直观表示历史时间轴的相片。
直观数学:为什么√2 + √3 ≈ 3.14
How to pronounce English reductions
This article takes notes on how to pronounce English reductions.
Java求集合的交集、并集、差集(必要时重写equals和hashCode方法)
Java求集合的交集、差集、并集,必要时需要重写equals或/且hashCode方法,本文给出应用实例,并自行编写函数将求得的交、差、并集存储在新的集合,不破坏原集合的内容。