Overloading Methods
You can overload an existing method for your own simulator-specific classes. For example, there is a method to send simulation options (asiSendOptions) in the Analog Class. You probably need to create a different method to send your options. To do this, create your own method named asiSendOptions that is used by your simulator. You do not have to modify the function that calls asiSendOptions. Your procedure takes precedence over the method in the Analog Class.
For example, the following is an Analog Class method declaration to send options:

To create your own asiSendOptions procedure, use the following declaration:
defmethod(asiSendOptions ( (session <yourSimulator>_session) )
println("asiSendOptions for your simulator class")
)
When the tool sends the simulation options for your simulator, your asiSendOptions method is called because the first argument is of the class <yourSimulator>_session.
Return to top