The Classes section in Chapter 1 of this manual contains an introduction to classes in the SansGUI environment. Here we describe how classes can be created to define the kinds of elements involved in a simulator.
To create classes for a simulator, you need to have a Schema Definition already created. If you have not done so, please refer to the beginning of this chapter on Creating Schema Definitions. Suppose you have the Schema Definition for the simulator opened in the SansGUI Development Environment, you can add a class by creating a subclass from a parent class or creating a sibling class from other siblings. The procedures are:
Locate the class in a Tree View under the proper tab (Simulator, Component, or Reference) in the left pane.
Right click on the class (name or icon) to obtain a context menu.
From the context menu, select Create Subclass or Create Sibling Class, whichever is appropriate.
A Class Properties dialog will be displayed for you to create a new class. Enter the name of the class in the Class Name field. The class name should follow the syntax of Identifier, described in the GUI Control Data Representation in Chapter 1 of the SansGUI Reference Manual.
You can change the class icon by clicking on the Change Icon... button at the lower right corner to select a new icon. Details can be found in the previous section, Accessing Class Properties.
Because the class is not really created until you click on the OK button, the Unique ID field shows [*** To be generated ***]. You can enter the class status, document location and a short description in the Identity sheet.
If the Class Properties dialog contains more than just the Identity sheet, such as DLL, Port, or Connectivity sheets, the class you are creating is either a component class or a reference class. Follow the instructions below to enter class dependent definitions.
Click on the OK button to add the class into the class tree.
Once the class is created in the Tree View, you need to examine the following sections in this manual to see if you need to enter additional definitions in the class. Adding Attributes to Classes is a common task to finish up the class definition. Other class dependent sections are listed as well.
Sharing Classes: If sharing the class among simulators, workgroups, or companies is a required feature, you can define the class by using the Class Sharing Properties dialog.
Adding Attributes to Classes: If the class contains any attributes, you need to define them by following the procedures listed in this section.
Defining Component Classes: Consult this section for component class specifics, especially ports and connectivity.
Defining Link Classes: Consult this section for special notes regarding link classes.
Defining Reference Classes: Consult this section for special notes regarding reference classes.
If you need to delete an unwanted class, please consult the Operating on Class Tree View section for the procedure and other related topics.
SansGUI Modeling and Simulation Environment Version 1.2
Copyright © 2000-2003 ProtoDesign, Inc. All rights reserved.