Time-Related System AttributesFrom Planimate Knowledge BaseTime-Related System AttributesThese attributes cover pretty much all there is to know about both simulation time (i.e. within the Model during a run), and real time (i.e. the time at which you are running your model). Name Read / Write Description AdvanceToTimeW To initiate/stop a fast advancement. This can be used in conjunction with the System Real Time attribute, to advance a model so that its simulation date corresponds with the current calendar date/time. Or, you might advance an interactive model by a specific time, to avoid delays due to excessive animation between key points in the model run. This is useful for demonstration models.
ClockR This is the current time as indicated in the Simulation Clock.
ClockDayCountR This attribute gives the number of days since the run commenced. The count is set to 1 at the start of the model run.
ClockDayOfMonthR This attribute gives the date number of the CALENDAR month, as shown in the clock. It does not work in Relative time.
ClockDayOfWeekR This attribute gives the day of the week, beginning at 1, progressing by 1 every 24 hours and cycling back to 1 after 7 24 hour periods have elapsed. When using relative time, day 1 occurs during the first 24 hours of the model run. When using calendar time, Sunday is day 1, so for example on a Monday you will get a value of 2.
ClockDaysInMonthR This attribute gives the number of days of the current CALENDAR month shown by the clock. It does not work in Relative time.
ClockHourOfDayR This attribute gives the hour of day, beginning at zero, so for example between 1:00 and 2:00 you get a value of 1.
ClockHourOfDay_1R This attribute gives the hour of day, beginning at 1, so for example between 1:00 and 2:00 you get a value of 2.
ClockMonthCountR This attribute gives the number of months since the run commenced. The count is set to 1 at the start of the model run. In relative time, there are 30 days in each month. In calendar time the correct days per month is applied.
ClockMonthOfYearR This attribute gives the month of the year. January is month #1. It does not work in Relative time.
ClockTimeOfDayR This attribute gives the time of day in seconds, so its values will range between zero, and 86399.
ClockVisibleW Shows/Hides the Simulation Clock.
ClockWeekCountR This attribute gives the number of weeks since the run commenced. The count is set to 1 at the start of the model run.
ClockWeekOfYearR CALENDAR time mode gives week within current calendar year. January is month #1. RELATIVE time mode gives # of weeks since start of run (like Week) NB: As far as the system is concerned, Weeks are always measured from Sunday to Saturday, no matter what day the year starts on. Hence for 1997, (1st of Jan was a Wednesday) week 1 will have 4 days, then Sunday (5th of Jan 1997) will be the beginning of week 2.
ClockYearR This attribute gives the current CALENDAR YEAR shown by the clock. In Relative time mode, the elapsed year, 1..n, where 1 year = 12 x 30 Days.
RunInRealTimeW Can be used to turn on and off the real-time run mode of the engine (where the clock gets stepped along by the real-time clock) Note on the Real-time Mode: Real-time mode involves sending a "continue" message to the engine 2 times a second. A model can use the "_Run Continue" broadcast to capture this event and perform a "background" task. This task/thread will be executed even if the user is editing a cell/attribute. It must not perform any time consuming activity and must not generate a dialog. It should be heavily validated to ensure the real-time task will not stop the model with a message under any circumstance. Run real-time mode is transparent in operation and does not present the "pause" run menu when processing a real-time update
RunStartTimeReferenceR/W This enables the model to reset its Run Start Time. Doing so forces a restart of a model; so invoke with care! Again this may be used in conjunction with the System Real Time Attribute, to keep models āup-to-dateā continuously, without having to get the user to manually update this item in the Menu Bar. This has application in the area of āLiveā Initialization of models, using imported external data.
SystemMultiMediaTimer
|
