Skip to main content
Article thumbnail
Location of Repository

Running C++ models under the Swarm environment

By Richard Leow and Russell K. St


Objective-C [1,2,3,4,5] is still the language of choice if users want to run their simulation efficiently under the Swarm [1] environment since the Swarm environment itself was written in Objective-C. The language is a fast, object-oriented and easy to learn. However, the language is less well known than, less expressive than, and lacks support for many important features of C++ (eg. OpenMP for high performance computing application). In this paper, we present a methodology and software tools that we have developed for auto generating an Objective-C object template (and all the necessary interfacing functions) from a given C++ model, utilising the Classdesc's object description technology [6,7], so that the C++ model can both be run and accessed under the Objective-C and C++ environments. We also present a methodology for modifying an existing Swarm application to make part of the model (eg. the heatbug's step method) run under the C++ environment. Swarm [1] is one of the better-known agent based modelling systems. Swarm consists of a simulation engine built in Objective-C that takes a set of objects called a Swarm, and a schedule o

Year: 2003
OAI identifier: oai:CiteSeerX.psu:
Provided by: CiteSeerX
Download PDF:
Sorry, we are unable to provide the full text but you may find it at the following location(s):
  • (external link)
  • (external link)
  • Suggested articles

    To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.