See: Description
Interface | Description |
---|---|
NetEditorListener |
An interface to handle the interaction between the editor and the main program.
|
Class | Description |
---|---|
NetEditor |
Network Editor component class.
|
NetEditorDlg |
Global option dialog.
|
NetEditorFrame |
A Frame for the NetEditor.
|
NetFileFilter |
A basic file filter class.
|
NetFileLoader |
A class to load net file.
|
NetObject |
Class which allow to control and display an object of the network.
|
NetObjectDlg |
NetObject edition dialog.
|
NetShape |
A class to manage the shape of a bubble object.
|
NetUtils |
Utility class.
|
This is the default NetEditor. It is launched by calling the main() function of the NetEditorFrame class. |
This application demonstrates how to subclass the NetEditor class to produce a customized graph viewer and how to use functionality of the NetObject class to the compute the Dijkstra result. |
This application shows how to subclass the NetEditorFrame and the NetEditor classes to build a specific interlock network editor. For this application, We need 5 types of bubbles: The VCC object which is the startpoint for logic evaluation (see the viewer) , The Interlock object which represents a physical interlock (a switch), The Sensor object which represents the state of the line , The ground object (endpoint) and the Join object which provides the possibilty to create intersection. For the need of the sensor evaluation algorithm we have to ensure that there is only one startpoint and the link must be oriented as the current (from VCC to Ground). The editor also add 2 extended parameters "Type" and "Address" to Interlock object. |
This is the corresponding player. It draws link according to the presence of current in the line. A red bubble can be shown as an open switch and a green bubble as a closed switch. Logical sensor just represents the state of the line. |