Class: AppComponent

Components. AppComponent

Main Angular component for the Cytoscape graph


new AppComponent()

Source:

Members


disableUpdate :boolean

True - Set some fields and buttons of the Components.AppComponent non-editable/disabled.
False - Default value.

Type:
  • boolean
Source:

exportData :any

Object representing the exported data.

Type:
  • any
Source:

exportJSON :boolean

Boolean used for Angular ngIf.
True - The button "Export to JSON" has been pressed. The form JSON preview is displayed.
False - Default value. The form JSON preview is hidden.

Type:
  • boolean
Source:

hiddenEdge :boolean

Boolean used for Angular ngIf.
True - Hide the form which display the data of links.
False - Show the form which display the data of links.

Type:
  • boolean
Source:

hiddenNode :boolean

Boolean used for Angular ngIf.
True - Hide the form which display the data of services.
False - Show the form which display the data of services.

Type:
  • boolean
Source:

hideJSONForm :boolean

Boolean used for Angular ngIf.
True - Default value. The JSON form is hidden.
False - The JSON form is displayed.

Type:
  • boolean
Source:

importData :any

Object representing the imported data.

Type:
  • any
Source:

loadJSON :boolean

Boolean used for Angular ngIf.
True - The field to import JSON is displayed.
False - Default value. The field to import JSON is hidden.

Type:
  • boolean
Source:

onEndCalled :boolean

True - The workflow has finished
False - Default value. The workflow is not launched or is not executed entirely.

Type:
  • boolean
Source:

selectedGinflowResult :GinflowResult

GinflowResult of the current service selected.

Type:
Source:
See:

selectedService :Service

The current selected Service.
If none is selected, this variable is a Service with id 0.

Type:
Source:
See:

serviceOk :boolean

Boolean used for Angular ngIf.
True - The service has a result.
False - Default value. The service has not been executed yet, no result available

Type:
  • boolean
Source:

submittedJSON :boolean

Boolean used for Angular ngIf.
True - The JSON form is submitted.
False - Default value. The JSON form is not submitted.

Type:
  • boolean
Source:

typeSelection :Enums.TypeSelect

Enums.TypeSelect enum instance which allows to know which is the current event.

Type:
Source:
See:

Methods


onChangeControl()

Function called in the template when selecting the radio button control dependency.

Source:

onChangeData()

Function called in the template when selecting the radio button data dependency.

Source:

onEnd(event)

Function called when the workflow ending.
Disable any update.
Called when Components.GraphComponent#end is emitting an event.

Parameters:
Name Type Description
event any

The event (click) which will trigger the action

Source:

onJSONExport(event)

Called when exporting graph to JSON.
Called when Components.GraphComponent#exports is emitting an event.

Parameters:
Name Type Description
event any

The event (click) which will trigger the action

Source:

onLaunch(event)

Function called when clicking on launch button (also clear graph button).
Called when Components.GraphComponent#launch is emitting an event.

Parameters:
Name Type Description
event any

The event (click) which will trigger the action

Source:

onSelect(event)

Function called when a node or a edge in the graph is selected (or deselected).
Called when Components.GraphComponent#select is emitting an event.

Parameters:
Name Type Description
event any

The event (click) which is a json object containing node of edge informations

Source:

onSubmitJSON(data)

Called when submitting the JSON plain-text in the form.
Create nodes with :
1) data :
a) an id
b) a Service instance
2) position
Then update their dependencies (src, dst, ...).
And finally, create edges from these dependencies.

Parameters:
Name Type Description
data any

The data received from the event

Source:

onToggle(event)

When a click is detected in the button creation graph/load json.
Called when Components.GraphComponent#toggle is emitting an event.

Parameters:
Name Type Description
event any

The event (click) which will trigger the action

Source: