Skip to main content

ABMs Using Repast Simphony

  • Chapter
  • First Online:
Guide to Simulation and Modeling for Biosciences

Part of the book series: Simulation Foundations, Methods and Applications ((SFMA))

  • 1151 Accesses

Abstract

This chapter provides the reader with a practical introduction to agent-based modeling via the Repast Simphony Agent Based Modeling toolkit. Using examples of agent-based models from an earlier chapter, we look in detail at how to build models using the Groovy programming language, which is based on Java. We illustrate some of the ways in which a toolkit such as Repast considerably simplifies the life of the modeler by providing extensive support for agent creation, model visualization, charting of results, and multiple runs.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    At the time of writing, the current version is 2.3.

  2. 2.

    An alternative primitive for creating a turtle is to hatch it, since real turtles lay eggs.

  3. 3.

    Note that for the figure here we changed the color of the patches to white, which is not reflected in the code shown in Code 3.8.

  4. 4.

    Time in Repast is measured as a double-precision floating-point number so the values in the arguments to @ScheduledMethod have to be written as 0d and 1d rather than 0 and 1.

  5. 5.

    The folder is named from the project name with a .rs suffix added.

References

  1. North, M., Collier, N., Ozik, J., Tatara, E., Altaweel, M., Macal, C., Bragen, M., Sydelko, P.: Complex adaptive systems modeling with Repast Simphony. Complex Adapt. Syst. Model. 1(1), 1–26 (2013). http://www.casmodeling.com/content/1/1/3

  2. Argonne National Laboratory: The repast suite. http://repast.sourceforge.net/. Accessed 8 June 2015

  3. Barnes, D.J., Kölling, M.: Objects First with Java—A Practical Introduction Using BlueJ, 5th edn. Pearson Education, Prentice Hall (2012)

    Google Scholar 

  4. Foundation, E.: Eclipse integrated development environment. http://www.eclipse.org/. Accessed 8 June 2015

  5. Groovy: Groovy—an agile dynamic language for the Java platform. http://groovy.codehaus.org/. Accessed 8 June 2015

  6. Resnick, M.: Turtles, Termites, and Traffic Jams: Explorations in Massively Parallel Microworlds. MIT Press, Cambridge (1994)

    Google Scholar 

  7. Foundation, L.: Logo foundation. http://el.media.mit.edu/logo-foundation. Accessed 8 June 2015

  8. Resnick, M.: Star logo. http://education.mit.edu/starlogo/. Accessed 8 June 2015

  9. Wilensky, U.: Netlogo. https://ccl.northwestern.edu/netlogo/ (1999)

  10. Argonne National Laboratory: Relogo primitives. http://repast.sourceforge.net/docs/api/repast_simphony/ReLogoPrimitives.html. Accessed 8 June 2015

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to David J. Barnes .

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer-Verlag London

About this chapter

Cite this chapter

Barnes, D.J., Chu, D. (2015). ABMs Using Repast Simphony. In: Guide to Simulation and Modeling for Biosciences. Simulation Foundations, Methods and Applications. Springer, London. https://doi.org/10.1007/978-1-4471-6762-4_3

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-6762-4_3

  • Published:

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-6761-7

  • Online ISBN: 978-1-4471-6762-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics