- Declared in:
- MyArguments.h
A global object called arguments is created by the initSwarmArguments() function in main.m. The way in which the command line arguments are parsed is controlled by this class, MyArguments. Swarm can read in and process command line parameters that are given at start time. Command line argument processing opens the possibility of running batches of simulations that automatically change parameter values with each experiment. This can be done by using Swarm with an auxiliary program called Drone.
If you want to see which command line arguments are defined, run the program with the arguments --help or --usage. That will list all of the command line options.
Method summaryThis initiates the work of creating the arguments object. It defines a structure that controls argument parsing. It also sets the default values of many parameters, so in case they are not set from the command line, then there is a fall back value.
Returns YES
or NO
,
depending on the consistentAdjustment parameter
Returns the input filename of the lisp
serialization file, if there was one.
Otherwise nil
.
Returns the command-line value set for oneAtATime. See Parameters
Returns YES
or NO
,
depending on whether only one agent may change
its opinion.
Returns YES
or NO
,
depending on whether the agent who initiates the
conversation is the only one that can change
its opinion.
Returns the value of pplPerCell (people per cell).
Returns an indicator that citizens are told to step in a randomized order
Returns the run number
Returns the seed number
Returns whether or not cells may have a variable number of members when the citizens are created.
Returns YES
or NO
,
depending on whether the grid is seen as a flat
square or a torus
Diagnostic output prints to the screen if you call this