public class Node extends Object implements BaseNode
Modifier and Type | Class and Description |
---|---|
static class |
Node.NodeType |
Modifier | Constructor and Description |
---|---|
protected |
Node(Node.NodeType type,
String id,
String name,
String equipmentId,
String componentType,
boolean fictitious,
Graph graph)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAdjacentEdge(Edge e) |
boolean |
checkNodeSimilarity(Node n)
Check similarity with another node
|
List<Edge> |
getAdjacentEdges() |
List<Node> |
getAdjacentNodes() |
Cell |
getCell() |
String |
getComponentType() |
String |
getEquipmentId() |
Graph |
getGraph() |
String |
getId() |
double |
getInitY() |
String |
getLabel() |
Stream<Node> |
getListNodeAdjInCell(Cell cell) |
String |
getName() |
Double |
getRotationAngle() |
Node.NodeType |
getType() |
VoltageLevelInfos |
getVoltageLevelInfos()
Get voltage level infos for this node.
|
double |
getX() |
double |
getY() |
boolean |
isFictitious() |
boolean |
isOpen() |
boolean |
isRotated() |
void |
resetCoords() |
void |
setCell(Cell cell) |
void |
setInitY(double initY) |
void |
setLabel(String label) |
void |
setOpen(boolean open) |
void |
setRotationAngle(Double rotationAngle) |
void |
setType(Node.NodeType type) |
void |
setX(double x) |
void |
setX(double x,
boolean addXGraph) |
void |
setY(double y) |
void |
setY(double y,
boolean addYGraph) |
void |
shiftY(double yShift) |
boolean |
similarToAFeederNode(Node n) |
String |
toString() |
void |
writeJson(com.fasterxml.jackson.core.JsonGenerator generator) |
protected void |
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) |
protected final Graph graph
public Cell getCell()
public void setCell(Cell cell)
public Graph getGraph()
public String getComponentType()
getComponentType
in interface BaseNode
public Double getRotationAngle()
getRotationAngle
in interface BaseNode
public boolean isFictitious()
public void setType(Node.NodeType type)
public String getName()
public String getEquipmentId()
public String getLabel()
public void setLabel(String label)
public void addAdjacentEdge(Edge e)
public void setX(double x)
public void setX(double x, boolean addXGraph)
public void setY(double y)
public void setY(double y, boolean addYGraph)
public double getInitY()
public void setInitY(double initY)
public Node.NodeType getType()
public void setRotationAngle(Double rotationAngle)
public boolean isOpen()
public void setOpen(boolean open)
public boolean checkNodeSimilarity(Node n)
n
- the node to compare withpublic boolean similarToAFeederNode(Node n)
protected void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOException
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOException
public void resetCoords()
public void shiftY(double yShift)
public VoltageLevelInfos getVoltageLevelInfos()
Copyright © 2020. All rights reserved.