Operating on Class Tree View


The Tree Views of the classes in the left pane provide developers with class and unit object creation and maintenance functions. The class and unit object creation functions have been described in the previous sections, Adding Classes and Adding Unit Objects. In this section, we discuss other operations that can be accessed through the Tree Views.

Classes

The following operations are for accessing and deleting classes:

Accessing Properties

To access the properties of a class, use the Class Properties dialog by:

Accessing Attributes

To access the attributes of a class, click on the class name or icon to display an Attribute Grid View in the right pane. This view contains a list of all of the class attributes, either inherited from the ancestor classes or created locally. The details of the Attribute Grid View are described in the next two sections, Adding Attributes to Classes and Operating on Attribute Grid View. The tabs in the right pane show the most recently selected classes. The number of the Attribute Grid Views displayed in the right pane can be controlled by a SansGUI environmental option. The Options dialog can be obtained via the Tools>Options... menu.

Deleting and Undeleting

A class can be deleted by performing the following operation:

The delete operation does not immediately remove the class from the Schema Definition; rather, it sets a flag that marks the class deleted. A red X mask is displayed at the lower left corner of the icon of the deleted class. All the references to the deleted class in the attributes of the object reference type or in the component class connectivity specifications are removed. A deleted class will not be shown in any class selection dialogs. In addition, deleted classes will not be included in the generated Object Library.

The delete operation can be reversed by:

It is important to note that the undelete operation will not restore the object references or the connectivity specifications removed in the delete operation.

Unit Objects

The following operations are for accessing and deleting unit objects:

Accessing Properties

To access the properties of a unit object, open the Object Properties dialog by:

An object is indicated by a small light blue mask displayed at the lower left corner of the icon.

Deleting and Undeleting

A unit object can be deleted by performing the following operation:

The delete operation does not immediately remove the unit object from the Schema Definition; rather, it sets a flag that marks the unit object as deleted. A red X mask is displayed at the lower left corner of the icon of the deleted unit object. All the references to the deleted unit object in the attributes of all classes are removed. A deleted unit object will not be shown in the list of available units. In addition, deleted unit objects will not be included in the generated Object Library.

The delete operation can be reversed by the following:

The undelete operation, however, will not restore the unit references removed in the delete operation.

Global Operations

The following operations are global operations, which means that when one of these operations is performed, it will affect all of the classes and unit objects that have been marked as deleted.

Reversing Deletions

To undelete all the deleted classes and unit objects, right click anywhere in the Tree View and select Undelete All from the context menu. All the deleted flags in the classes or objects will be cleared. Similar to single undelete operations, the class references, connectivity specifications, and unit references removed will not be restored.

Purge Deleted

The following operation will remove all deleted classes and unit objects permanently from the Schema Definition:

There is no recovery operation after this operation is performed.

 



C:\FH_Suite\htmlgifs\home.gif Sharing Classes Adding Attributes to Classes

SansGUI Modeling and Simulation Environment Version 1.2

Copyright 2000-2003 ProtoDesign, Inc. All rights reserved.

http://protodesign-inc.com