Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何限定世界时间在一定数值,比如到30天时即停止 #46

Open
Ranbin2019 opened this issue Feb 8, 2020 · 6 comments
Open

Comments

@Ranbin2019
Copy link

No description provided.

@Radioii
Copy link

Radioii commented Feb 8, 2020

可以根据现在的传播速率拟合一个时间模型,再嵌在项目里。

@coolleafly
Copy link

可以参考今天回复的#51 很容易实现的。

@coolleafly
Copy link

可以根据现在的传播速率拟合一个时间模型,再嵌在项目里。

我有一个动态拟合模型,放在这里https://arxiv.org/abs/2002.00426 ,供参考

coolleafly added a commit to coolleafly/VirusBroadcast that referenced this issue Feb 9, 2020
根据讨论KikiLetGo#51 KikiLetGo#46,增加了可以在条件达到时停止动画。
@EricTianC
Copy link

在MyPanel.java中第110行的类
将worldtime++前加上if(wordtime<=30)

coolleafly added a commit to coolleafly/VirusBroadcast that referenced this issue Feb 9, 2020
@Ranbin2019
Copy link
Author

在MyPanel.java中第110行的类
将worldtime++前加上if(wordtime<=30)

非常感谢;我是编程小白,依靠着自学的python语言,将代码添加了进去:
if(worldtime<=30) {
worldtime++;
}
运行程序后,但是只是时间到30天的时候停止了,其他参数还在变化。麻烦请告知在哪个位置添加一个用worldtime上限控制结束整个程序的代码。新学期有门课是水处理数学模型,想通过这个病毒模型进行课堂和演示,讲解数学模型的基本要素,非常感谢!

@coolleafly
Copy link

请参考下我前面 2.9 日 update的代码。 只把worldtime++; 放进去不够。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants