## Uses of Class
classes.CpsEdge

- Packages that use CpsEdge
  Package | Description
  --- | ---
  api |
  classes |
  ui.controller |
  ui.model |
  ui.view |

- - ### Uses of CpsEdge in api

    Methods in api that return types with arguments of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `java.util.ArrayList<CpsEdge>` | CpsAPI.`getAllEdges()` Reutn all Edges on the Canvas in no specific order.

  - ### Uses of CpsEdge in classes

    Methods in classes that return types with arguments of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `java.util.ArrayList<CpsEdge>` | AbstractCpsObject.`getConnectedTo()` List of all existing connections.
    `java.util.ArrayList<CpsEdge>` | AbstractCpsObject.`getConnections()` List of all existing connections.
    `java.util.ArrayList<CpsEdge>` | SubNet.`getEdges()` Return all Edges in the Subnet.

    Methods in classes with parameters of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractCpsObject.`addConnection(CpsEdge toConnect)` Add a new connection to the selected Object.

    Method parameters in classes with type arguments of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractCpsObject.`setConnections(java.util.ArrayList<CpsEdge> arrayList)` Set a new ArrayList of connections (Update).

    Constructor parameters in classes with type arguments of type CpsEdge
    Constructor and Description
    `SubNet(java.util.ArrayList<HolonObject> objects, java.util.ArrayList<CpsEdge> edges, java.util.ArrayList<HolonSwitch> switches)` Constructor for a Subnet.

  - ### Uses of CpsEdge in ui.controller

    Methods in ui.controller that return CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `CpsEdge` | MultiPurposeController.`searchEdge(int a, int b)` Search Edge between 2 Objects.

    Methods in ui.controller with parameters of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `void` | Control.`addEdgeOnCanvas(CpsEdge edge)` Add an edge to the Canvas.
    `void` | CanvasController.`addEdgeOnCanvas(CpsEdge edge)` Add an edge to the Canvas.
    `void` | Control.`removeEdgesOnCanvas(CpsEdge edge)` Removes an Edge from the Canvas.
    `void` | CanvasController.`removeEdgesOnCanvas(CpsEdge edge)` Removes an Edge from the Canvas.
    `void` | Control.`setSelecteEdge(CpsEdge edge)` Set the selected Edge.

    Method parameters in ui.controller with type arguments of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `void` | SimulationManager.`resetConnections(AbstractCpsObject cps, java.util.ArrayList<java.lang.Integer> visitedObj, java.util.ArrayList<CpsEdge> visitedEdges)` Reset the Connection.

  - ### Uses of CpsEdge in ui.model

    Methods in ui.model that return CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `CpsEdge` | Model.`getSelectedEdge()` Returns the selected Edge.

    Methods in ui.model that return types with arguments of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `java.util.ArrayList<CpsEdge>` | Model.`getEdgesOnCanvas()` Get all Edges on the Canvas.

    Methods in ui.model with parameters of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `void` | Model.`addEdgeOnCanvas(CpsEdge edge)` Adds an Edge to The Canvas.
    `void` | Model.`removeEdgesOnCanvas(CpsEdge edge)` Remove an edge from the Canvas.
    `void` | Model.`setSelectedEdge(CpsEdge edge)` Set the selected Edge.

    Method parameters in ui.model with type arguments of type CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `void` | Model.`setEdgesOnCanvas(java.util.ArrayList<CpsEdge> arrayList)` Sets the edges on the Canvas.

  - ### Uses of CpsEdge in ui.view

    Methods in ui.view that return CpsEdge
    Modifier and Type | Method and Description
    --- | ---
    `CpsEdge` | MyCanvas.`mousePositionOnEdge(int x, int y)` Checks if the mouse is on an Edge.