A class can be imported to an Object Library or a Project Model only when it is compatible with the simulator, or defined as sharable. Similar to importing objects, some issues may be raised:
Simulator Incompatibility: The class to be imported may not be recognized by the simulator, nor is it defined as shared at a level compatible with the simulator.
Missing Parent Class or Version Incompatibility: The parent class of the class to be imported cannot be found in the target document or it has a different version number from the one found in the target.
Conflict Class: An existing class is found in the target document.
Missing Unit Objects: The unit objects that the class is referring to cannot be found in the target document.
Losing Reference Class Integrity: The reference classes that some of the attributes in the class to be imported are specified for cannot be found in the target document.
Losing Connectivity Integrity: Some classes specified for connectivity in the class to be imported cannot be found in the target.
You need to understand the requirements of the class to be imported and fix the above issues by importing the necessary objects or classes prior to importing the class. SansGUI will prompt you with error messages should the problems occur.
Similar to Importing Objects, compatible and sharable classes can be imported from a source document to a target using a drag-and-drop operation.
Arrange the source and the target document in the SansGUI environment so that the Tree Views of both document are visible.
Find the class from the source document in the Tree View. You may have to switch tabs to find the class.
Click on the class to be imported and hold down the mouse button.
As you move the mouse, the mouse pointer is changed into an outline icon with a + sign, meaning that it is a copy operation.
While still holding down the mouse button, move the mouse pointer to the Tree View of the target document. It does not matter which Tree View in the Left Pane is active. Once the pointer is in any of the Tree Views, release the mouse button. If the class is rejected, the operation is canceled with some error message displayed.
Since there may be some class behavior implemented as class functions that are associated with the imported class, you need to be aware of how these functions can be called. From the simulation user's standpoint, all the class functions of the imported class shall be implemented as user overriding routines in a separate dynamic-linked library per class. Chapter 6 Overriding Simulator Routines explains how it works and how to implement the overriding routines.
SansGUI Modeling and Simulation Environment Version 1.2
Copyright © 2000-2003 ProtoDesign, Inc. All rights reserved.