EsaT_Interface_Array_Callback_Proc
Abstract
Callback: Called when Riverbed analysis software model code assigns a value to a vector interface.
Syntax
<interface_array_callback_proc_name> (client_state_ptr, sched_time, array, start_offset)
| Argument | Type | Description |
|---|---|---|
client_state_ptr |
void * |
client data specified when the callback was registered |
sched_time |
double |
simulation time at which the vector interface value was set |
array |
void * |
pointer to the source array used to set the vector interface (data type of the array matches that of the interface) |
start_offset |
int |
index of the first element in the array written to the vector interface |
Return Type
void
No return value.
Header
esa.h
Details
See op_esys_interface_array_set() on page 5 for information about how array and start_offset are used to set the interface.
After this callback is invoked, the Riverbed analysis software continues processing its model code, potentially executing many more events. If the callback cannot fully process the data immediately, it might be useful to stop the simulation from executing events after the current one. To do this, the callback should use Esa_Interrupt() to flag the Riverbed analysis software event loop so that Esa_Execute_Until() returns after the current event is done.
This callback is registered by Esa_Interface_Callback_Register().