Main Content

Create Custom Visualization

Observers for entities and events

To create custom observers of the entities and events in your model, use thesimevents.SimulationObserverobject.

Classes

simevents.SimulationObserver Interface to create your custom observer for models withSimEventsblocks

Methods

expand all

simStarted Specify behavior when simulation starts
simPaused Specify behavior when simulation pauses
simResumed 指定行为模拟的简历
simTerminating Define observer behavior when simulation is terminating
getBlocksToNotify Specify list of blocks to be notified of entity entry and exit events
notifyEventCalendarEvents Specify whether you want notification for all events in event calendar
postEntry Specify behavior after an entity enters a block that has entity storage
preExit Specify behavior before an entity exits a block with entity storage
preExecute Specify behavior before execution of an event
addBlockNotification Add block to list of blocks to be notified
removeBlockNotification Remove block from list of blocks being notified
getEventCalendars Get handles to event calendars
getAllBlockWithStorages Get list of blocks that store entities
getHandleToBlock Return block handle for a given block path
getHandlesToBlockStorages Return storage handles of specified block

Topics