Hierarchical Class Schema


generate/do-it.gif    Multi-Level Class Sharing

Create subclass with attribute and behavior inheritance.

Schema Definition

Classes are organized into Simulator, Component, and Reference categories. The top level classes, called intrinsic classes, are supplied with the SansGUI Development Environment. Simulation developers create domain-specific classes by subclassing from the intrinsic classes.

generate/schemadef.jpg

Attributes in a class are created and displayed in the Right Pane. The first attribute in this example has a light yellow background color, which means it is inherited from the parent class, Container, and is protected in this child class, Reactor. The Container class is also a domain-specific class created by the developer, not an intrinsic class.

Intrinsic Classes

As of SansGUI version 1.2, the SansGUI intrinsic classes are:

Component Class Specification

A component can have ports, used by the simulation user to configure the layout of a model in schematic diagrams. The ports can be implicitly defined with rules, or explicitly defined one by one.

generate/compport.jpg

In addition to port definitions, the connectivity constraints between classes can be specified. Basically, it lets developers specify what can or cannot be connected to what others? In the following example, instances of class Base.Source.Variable cannot send output to its own class, or any descendents of class Base.Source in general. This definition eliminates self-looping connections. Because the port was explicitly defined in the class, as shown in the previous figure, the Input From Classes side here has no effect; no input is allowed.

generate/compconn.jpg

See Also

 



C:\FH_Suite\htmlgifs\home.gif Object-Oriented Development Multi-Level Class Sharing

SansGUI Modeling and Simulation Environment version 1.2

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

http://protodesign-inc.com