I should have mentioned this, first compile the three files, dispatcher, agent, and client. Then, call client.setup_and_start(), this'll initialize the Mnesia database. From there everything happens through dispatcher.dispatcher(), some examples:
dispatcher.dispatch({buy, {equity, "BAC"}, 20, {client, "Matt"}})
dispatcher.dispatch({sell, {equity, "BAC"}, 20, {client, "Matt"}})
dispatcher.dispatch({desposit, 200, {client, "Matt"})
dispatcher.dispatch({withdraw, 200, {client, "Matt"})
You can inspect the Mnesia database by looking at the transaction, bank, and holding tables. However, the holding table does not currently get populated.
Thanks,
Matt Follett