Class Node

    • Method Detail

      • getCell

        public Cell getCell()
      • setCell

        public void setCell​(Cell cell)
      • isFictitious

        public boolean isFictitious()
      • getName

        public String getName()
      • getEquipmentId

        public String getEquipmentId()
      • getLabel

        public String getLabel()
      • setLabel

        public void setLabel​(String label)
      • getAdjacentNodes

        public List<Node> getAdjacentNodes()
      • getAdjacentEdges

        public List<Edge> getAdjacentEdges()
      • addAdjacentEdge

        public void addAdjacentEdge​(Edge e)
      • getListNodeAdjInCell

        public Stream<Node> getListNodeAdjInCell​(Cell cell)
      • getCoordinates

        public Point getCoordinates()
      • setCoordinates

        public void setCoordinates​(Point coord)
      • setCoordinates

        public void setCoordinates​(double x,
                                   double y)
      • getX

        public double getX()
        Get abscissa within current voltage level
        Returns:
        abscissa within voltage level
      • getY

        public double getY()
        Get ordinate within current voltage level
        Returns:
        ordinate within voltage level
      • getDiagramX

        public double getDiagramX()
        Get abscissa within the diagram
        Returns:
        abscissa within diagram
      • getDiagramY

        public double getDiagramY()
        Get ordinate within the diagram
        Returns:
        ordinate within diagram
      • setX

        public void setX​(double x)
      • setY

        public void setY​(double y)
      • isRotated

        public boolean isRotated()
        Specified by:
        isRotated in interface BaseNode
      • setRotationAngle

        public void setRotationAngle​(Double rotationAngle)
      • isOpen

        public boolean isOpen()
      • setOpen

        public void setOpen​(boolean open)
      • checkNodeSimilarity

        public boolean checkNodeSimilarity​(Node n)
        Check similarity with another node
        Parameters:
        n - the node to compare with
        Returns:
        true IF the both are the same OR they are both Busbar OR they are both EQ(but not Busbar); false otherwise
      • similarToAFeederNode

        public boolean similarToAFeederNode​(Node n)
      • writeJsonContent

        protected void writeJsonContent​(com.fasterxml.jackson.core.JsonGenerator generator)
                                 throws IOException
        Throws:
        IOException
      • writeJson

        public void writeJson​(com.fasterxml.jackson.core.JsonGenerator generator)
                       throws IOException
        Throws:
        IOException
      • resetCoords

        public void resetCoords()
      • shiftY

        public void shiftY​(double yShift)
      • getVoltageLevelInfos

        public VoltageLevelInfos getVoltageLevelInfos()
        Get voltage level infos for this node. By default it is the voltage level infos of the graph but it could be override in case of node that represents an external voltage level.