Models

jamieorc edited this page Mar 22, 2013 · 2 revisions

Models represent the activity of a system. Models describe the type, frequency, and intensity of activities to be simulated. Models can represent both human and automated actions.

Models are data, not code. (Code comes into play later, to convert models into Tests). Because models are domain-specific, Simulant specifies only a few generic attributes related to models:

  • model/tests connects a model to the tests generated from the model
  • model/type is a type attribute that drives the create-test multimethod

Example

The hello world example defines a model schema that describes trader activities:

  • how many traders there are
  • their balances
  • their trading frequency and amount

This schema is then used to create a model instance.