|Home > Iris APIs > instId argument|
instId argument occurs in many different functions. In all cases, it defines the instance that a function call is sent to. It has a similar role to the
this pointer in C++ and the
self argument in Python.
For example, when the global instance receives the function call:
func(name="foo", instId=42, value=-1, bar=[1, "2", True])
it can infer that this function call must be sent to the instance with id 42, without knowing what
func() does, or whether the instance supports
func() at all.
instId argument is used in a function-independent way by the
following framework instances:
instIdto determine which connected component, plug-in, or Iris server it should route a function call to. It does this for all calls, no matter where they come from.
instIdto select the connection, and therefore the client, that a function call should be sent to.