Class: ModelPanel

PJP.ModelPanel(PanelName) → {PJP.ModelPanel}

new ModelPanel(PanelName) → {PJP.ModelPanel}

Provide a panel for viewing system models. Currently, this panel displays bond graph of different system model in the form of interactive SVG diagram. Interactions with the SVG is implemented in SVGController.
Parameters:
Name Type Description
PanelName String Id of the target element to create the PJP.ModelPanel on.
Author:
  • Alan Wu
Source:
Returns:
Type
PJP.ModelPanel

Methods

enableSVGController(panelName)

Create and enable SVGController on the provided panelName, if no element with the id is found, try after loadHTMLComplete is completed.
Parameters:
Name Type Description
panelName String Id of the target element to create the PJP.SVGController on.
Source:

openModel(svgName)

Display model with the provided name, this function also updates the "run simulation" link.
Parameters:
Name Type Description
svgName String name of the svg.
Source:

(async, inner) initialise()

Initialise loading of the page, this is called when the PJP.ModelPanel is created.
Source: