一步一步学Repast代码解释优秀培训书.pptVIP

  • 40
  • 0
  • 约 67页
  • 2017-02-07 发布于江苏
  • 举报

一步一步学Repast代码解释优秀培训书.ppt

一步一步学Repast代码解释优秀培训书

The Circle of Life: Agents Dying and Being Born (Step 24-2) – Things to do The die routine must do the following: Remove the agent from the space object Spread the agents money across the space object Remove the agent from the agent list Add a reapDeadAgents() method to the model Add a removeAgentAt() method to the space object Create the reapDeadAgents() method so that it returns a count of the agents who died. We then create that same number of agents anew to have agents being reborn Codes for adding reapDeadAgents() to the model (Step 24-3) In CarryDropModel, private int reapDeadAgents(){

文档评论(0)

1亿VIP精品文档

相关文档