## Uses of Class
classes.AbstractCpsObject

- Packages that use AbstractCpsObject
  Package | Description
  --- | ---
  api |
  classes |
  interfaces |
  tests |
  ui.controller |
  ui.model |
  ui.view |

- - ### Uses of AbstractCpsObject in api

    Methods in api that return types with arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `java.util.ArrayList<AbstractCpsObject>` | CpsAPI.`getAllObjOnCanvas()` Return all Objects on the Canvas in no Specific order.

    Methods in api with parameters of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | CpsAPI.`resetBorderColor(AbstractCpsObject toReset)` resets the bordercolor of given object to default (white).
    `void` | CpsAPI.`setBorderColorForObj(AbstractCpsObject toChange, java.awt.Color color)` changes the border color of given object to given color.

    Method parameters in api with type arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | CpsAPI.`setBorderColorForMultObj(java.util.ArrayList<AbstractCpsObject> objects, java.awt.Color color)` changes the borderColor for all objects in List to given color.

  - ### Uses of AbstractCpsObject in classes

    Subclasses of AbstractCpsObject in classes
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CpsNode` The class "CpsNode" represents empty Objects in the system.
    `class` | `HolonObject` The class HolonObject represents any Object on the system which capability of injecting or consuming energy on the network, for instance a house or a power plant.
    `class` | `HolonSwitch` The class HolonSwitch represents a Switch, which can be turned on and off.
    `class` | `HolonTransformer` The class HolonTransformer represents a Transformer that transforms a flow to a lower flow.

    Methods in classes that return AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `AbstractCpsObject` | CpsEdge.`getA()` Getter for the Source.
    `AbstractCpsObject` | CpsEdge.`getB()` Getter for the destination.

    Methods in classes that return types with arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `java.util.ArrayList<AbstractCpsObject>` | Category.`getObjects()` Getter for all CpsObjects.

    Methods in classes with parameters of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | CpsEdge.`setA(AbstractCpsObject a)` Set the Source to a new one.
    `void` | CpsEdge.`setB(AbstractCpsObject b)` Set the Destination to a new one.

    Method parameters in classes with type arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | Category.`setObjects(java.util.ArrayList<AbstractCpsObject> objects)` Set a new ArrayList of CpsObjects.

    Constructors in classes with parameters of type AbstractCpsObject
    Constructor and Description
    `AbstractCpsObject(AbstractCpsObject obj)` Constructor for a new CpsObject with an unique ID (This constructor correspond to the interaction between the Categories and Canvas)--> actually the "new" Object is a copy.
    `CpsEdge(AbstractCpsObject a, AbstractCpsObject b)` Constructor without max. capacity (by default as 100)
    `CpsEdge(AbstractCpsObject a, AbstractCpsObject b, float maxCap)` Constructor with a user-defined max. capacity
    `HolonObject(AbstractCpsObject obj)` Contructor of a copy of an Object.
    `HolonSwitch(AbstractCpsObject obj)` Create a copy of an existing HolonSwitch.
    `HolonTransformer(AbstractCpsObject obj)` Copy of the Object.

  - ### Uses of AbstractCpsObject in interfaces

    Method parameters in interfaces with type arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | ObjectListener.`onChange(java.util.ArrayList<AbstractCpsObject> objects)` Constructor.

  - ### Uses of AbstractCpsObject in tests

    Method parameters in tests with type arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | PraktikumHolonsAdapter.`generateObjects(java.util.ArrayList<AbstractCpsObject> arr)` Generate Sequence of Objects from A - ZZZ.

  - ### Uses of AbstractCpsObject in ui.controller

    Methods in ui.controller that return AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `AbstractCpsObject` | MultiPurposeController.`searchByID(int id)` Search for Object by ID.
    `AbstractCpsObject` | Control.`searchByID(int id)` Search for Object by ID.
    `AbstractCpsObject` | Control.`searchCategoryObject(java.lang.String category, java.lang.String object)` Search for Object in a Category.
    `AbstractCpsObject` | MultiPurposeController.`searchCatObj(Category category, java.lang.String object)` Search for Object in a Category.

    Methods in ui.controller with parameters of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | CanvasController.`addNewObject(AbstractCpsObject object)` Add a new Object.
    `void` | CanvasController.`addObject(AbstractCpsObject object)` Add an CpsObject to the model and notify the ObjectListener for update.
    `void` | CategoryController.`addObject(Category category, AbstractCpsObject object)` Add Object into a Category.
    `void` | Control.`addObjectCanvas(AbstractCpsObject object)` Add a new Object.
    `void` | ObjectController.`addSelectedObject(AbstractCpsObject obj)` add an Object to selectedObject.
    `void` | Control.`addSelectedObject(AbstractCpsObject obj)` add an Object to selectedObject.
    `SubNet` | SimulationManager.`buildSubNet(AbstractCpsObject cps, java.util.ArrayList<java.lang.Integer> visited, SubNet sN)` recursivly generates a subnet of all objects, that one specific object is connected to.
    `void` | Control.`delCanvasObject(AbstractCpsObject obj)` Deletes an CpsObject on the Canvas and its connections.
    `void` | CanvasController.`deleteObjectOnCanvas(AbstractCpsObject obj)` Deletes an CpsObject on the Canvas and its connections.
    `void` | ObjectController.`deleteSelectedObject(AbstractCpsObject obj)` deletes a selectedObject.
    `void` | Control.`deleteSelectedObject(AbstractCpsObject obj)` deletes a selectedObject.
    `java.lang.String` | StoreController.`getObjectType(AbstractCpsObject cps)` Return the Object Type.
    `boolean` | SimulationManager.`legitState(AbstractCpsObject neighbor, AbstractCpsObject current)` is the Switch in a legitimate State.
    `void` | CategoryController.`removeObject(Category category, AbstractCpsObject cps)` Removes an Object from a Category.
    `void` | SimulationManager.`resetConnections(AbstractCpsObject cps, java.util.ArrayList<java.lang.Integer> visitedObj, java.util.ArrayList<CpsEdge> visitedEdges)` Reset the Connection.

    Method parameters in ui.controller with type arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | SimulationManager.`copyObjects(java.util.ArrayList<AbstractCpsObject> toCopy)` copies the data of an array of Objects.
    `void` | SimulationManager.`printNodes(java.util.ArrayList<AbstractCpsObject> nodes)` Print the nodes.
    `void` | ObjectController.`setClipboardObjects(java.util.ArrayList<AbstractCpsObject> list)` sets clipBoardObjects.
    `void` | Control.`setClipboardObjects(java.util.ArrayList<AbstractCpsObject> list)` Sets the ClipboardObjects.
    `void` | SimulationManager.`setFlowSimRec(java.util.ArrayList<AbstractCpsObject> nodes, int iter)` Set Flow Rimulation Rec.
    `void` | SimulationManager.`setPseudoTags(java.util.ArrayList<AbstractCpsObject> nodes)` Set the Pseudo Tags.

  - ### Uses of AbstractCpsObject in ui.model

    Methods in ui.model that return AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `AbstractCpsObject` | Model.`getSelectedCpsObject()` Returns the Selected Cps Object.

    Methods in ui.model that return types with arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `java.util.ArrayList<AbstractCpsObject>` | Model.`getClipboradObjects()` Returns all Objects in the Clipboard.
    `java.util.ArrayList<AbstractCpsObject>` | Model.`getObjectsOnCanvas()` Returns all Objects on the Canvas.
    `java.util.ArrayList<AbstractCpsObject>` | Model.`getSelectedCpsObjects()` Returns all selected Objects on the Canvas.

    Methods in ui.model with parameters of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | Model.`setSelectedCpsObject(AbstractCpsObject selectedCpsObject)` Set the Selected Objecs.

    Method parameters in ui.model with type arguments of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | Model.`setClipboradObjects(java.util.ArrayList<AbstractCpsObject> c)` Sets the ClipboardObjects.
    `void` | Model.`setObjectsOnCanvas(java.util.ArrayList<AbstractCpsObject> objectsOnCanvas)` Sets all Objects on the Canvas.

  - ### Uses of AbstractCpsObject in ui.view

    Fields in ui.view declared as AbstractCpsObject
    Modifier and Type | Field and Description
    --- | ---
    `AbstractCpsObject` | MyCanvas.`tempCps`

    Methods in ui.view that return AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `AbstractCpsObject` | SearchPopUp.`getObj(int idx)` get the Object with the specific ID.

    Methods in ui.view with parameters of type AbstractCpsObject
    Modifier and Type | Method and Description
    --- | ---
    `void` | SearchPopUp.`renameObj(AbstractCpsObject obj, java.lang.String name)` Rename an Object.
    `void` | SearchPopUp.`selectObj(AbstractCpsObject obj)` add the searched Objects to the Selected Objects.
    `void` | AddElementPopUp.`setActualCps(AbstractCpsObject cps)` Sets the actual Cps.

    Constructors in ui.view with parameters of type AbstractCpsObject
    Constructor and Description
    `AddObjectPopUp(boolean edit, AbstractCpsObject obj, java.lang.String cat)` Create the dialog.