You copied the Doc URL to your clipboard.

LISA+ Language for Fast Models Reference Manual : getAbstractInterface()


Use this function to call between C++ and LISA+ components.

LISA+ component ports implement the function, which:

  • Passes the port address of a LISA+ component to the C++ object.
  • Returns a pointer of the type protocol_ProtocolName to the C++ component.

You can use the LISA+ construct portinstance.getAbstractInterface() in component behaviors to get a pointer to the abstract interface class instance for a specific port portinstance. It returns a non-const pointer to a class named protocol_ProtocolName, where ProtocolName is the name of the protocol of the port. The LISA+ code can pass a pointer to this class to the C++ code on component initialization, and the C++ code can call the LISA+ code back through the abstract interface class and the port behaviors.

Was this page helpful? Yes No