Print

Print


You can You might be better off at this point to just modify your main
method so that it runs a bunch of simulation and then calls whatever you
need to call before quitting.

You can always run the model the explicit way like this:

state.start();do
  if (!state.schedule.step(state))
break;while(state.schedule.getSteps() < STEPS_PER_RUN);
state.finish();

chain a bunch of them together, extract information from the state object
(perhaps with a custom method) and call whatever method you want after you
have run a bunch of them.

On Sat, Jan 19, 2019 at 5:16 AM Abrams, Marshall <[log in to unmask]> wrote:

> SimState.finish() is called at the end of every run, i.e. every job when
> you use -repeat on the command line.  Is there a function that's only
> called after the last run?  I have been looking, but haven't found one.
>
> A related, nitpicky question: Page 92 of the v. 19 (June 2015) manual
> describes the doLoop(...) methods in sim.engine.SimState, and says that
> when the methods run ".... Finally, stop() is called on the instance."  For
> the first doLoop method, at least, the instance in question is clearly a
> SimState, since "The * generator* will be called to produce an instance
> of the desired SimState subclass."  However, SimState doesn't have a stop()
> method.  Is this a typo?  Should it be finish()?  (Or is this is a
> reference to a Stoppable that's available from the SimState?)
>
> Thanks-
>
> Marshall
>
> Marshall Abrams, Associate Professor
> Department of Philosophy, University of Alabama at Birmingham
> Email: [log in to unmask]; Phone: (205) 996-7483;  Fax: (205) 975-6610
> Mail: HB 414A, 900 13th Street South, Birmingham, AL 35294-1260;  Office:
> HB 418
> Website: http://secure-web.cisco.com/1mZivtlCQexGYlPjyxeFwbslCRFLW5nuhNqhpV9WDVODauNTClW8CQYL9gU_1XB64vk-CAvHItiGzvOgboVGgo4htgWxmKGcOGxrR-2MEE85U9V7BMLJh8U78YGD_PTy22-UvQ_s4H-DMqxjyjCDyaIUPANEwWth-nNZO365Oobjz_m5AAiMkPyHO9q_XnEVsy9tZrSChgSoGhk7nkXQBbK4zp-oIv1jZTtgjwQH9d6Hbgdme2C_kmbgUJVzgsSP-_7CHX8ctIpIaJEIYvK09l8NjyA93OMS3edcK0A4s0C-nWK4fBZqXnRCUpMCkFXQST-CBYlhExYjMr6RKKdeqC3pWqKp22DYSdqx0gPdvoUOaXbe4AQfk2jPi2pEDT_qZK-7iTGuRhmEsW_8GpCCaRqjjwjWZSYd3JA7oC055ln8a1LCcA0rrqleKwx3zvfLXAGk-55_xWXGC600TxHhT_Q/http%3A%2F%2Fmembers.logical.net%2F%7Emarshall
> <http://secure-web.cisco.com/1g87IpvD5rMbAFnuNYxmrH1uPK944TCmhEYrH-y1diR6FVxz2g5wVE0Ak3SvBMlJS7cVXDPU5UhrppeDPyUqjxVZm2gkrPnYLXX2BY_1kFlRUkUGdUIvrl-W9idw-2IfRaCXgRBQLyp0HnxLHKoIezqVnbm7aL9GFR_bPDz-Ax-qy3wOxBn9pdteJAxifjbq8ZPKcDLu-j2Gb66fzU4FD10Hmq6tal8iMc9RMGg10oxuWknEkUZefL67vmyNDjlI57LEPbHeH0uNkdJThTwhpeZ689xNnjMXnSDn1_T2PFHSb6F-nme6vJcWod2yy4O6fEiH22lBHH5JlQ2a3rKvsmjx96qJBMUOP6uQXHaC-xLKzqH0k5sfaP2gr5z6961HwnHZo_as0BNN8n7xwlpHVtqNyMIQHPdrVgtsvoYpssEBLg7rbf6FB1UTshQ_pbzkQBajuQQfoqNiQaWdrxuInxw/http%3A%2F%2Fmembers.logical.net%2F%7Emarshall>
>
>

-- 
Ernesto Carrella
http://secure-web.cisco.com/1Awhjx4CHwggiXMc_o6F2nY19ucsvNlJAVdHpUwVUw99X90AQYNnFT5t7oi4TqJ0_TfHNRd5hTjT2gOWCmXNgYsBIzjG-izu28m5Wc1jjkeG8f2xlkKN4HNy_nKYsHq8DZ3mk-xWP54-QGhvaSyFyWJAx0STsLbiGbQcwv5ASTglHSeRoQRr_FsRIJQQ4U8FLwfLLgefbN3ejuJkrc7UOXku5kCDRhWHwR7M7ypdrbtjFIg2SBJ3bOsdF7hYZ8vTYalmLUkuQxhMlmqW1K1HgONG0J7bmBzoQOmRLvH5WyOxVY8UCNHNiQv9gLy0IAaMmhguNMnywyyE9Iu6iq4Q3jjjJed5xdYXfp-m5RybgwD8tDzP-JehEMVZVqXyZyqf4519SsVy9QLGtCCNI_F5O4lvtNRpU6KjiUqpkK8fgBy6UcrUSF2tJq9ljy1zT5P1P2B05yrKz6GRDZ36AXdyKY58YUN244kWmD8_yzWE0mu0/http%3A%2F%2Fcarrknight.github.io%2F