module:NetworkElement(appInstance)

parent class for all network elements

new module:NetworkElement(appInstance)

Basic constructor for NetworkElement

Parameters:
Name Type Description
appInstance App

reference to the instance of App that this element belongs to

Members

exportData

"virtual" getter for json data, prints an error that it has to be redefined in the derived classes

id

Get the unique ID of the SVG element tied to this logical element

Methods

onMouseDown()

empty callback function to prevent error messages, function is implemented later in the Box class

onMouseMove()

empty function to prevent error messages, function is implemented later in the Box class

onMouseUp()

empty function to prevent error messages, function is implemented later in the Box and Connector classes