Backend API

public class Ports extends ArrayList

A Ports is a List of Port. See fr.irisa.diverse.Flow.Port to know more about it.

It is used to make inports and outports manipulation easier on the programming side.

Created by antoine on 29/05/17.

public void setNode (String node)

Change the node connected to those Ports

public int indexOfPort (String name)

Get the index of a given port in this Ports object

private void build ()

Build the JSONArray that can be serialized and send to other programs easily.

The Ports JSONArray contains the id of each port in this Ports object.