ProjektGraph/graph/Vertex.java

39 lines
462 B
Java
Raw Normal View History

2024-06-15 14:48:28 +00:00
package graph;
public abstract class Vertex {
// ATTRIBUTE
2024-06-15 14:48:28 +00:00
private String name;
// KONSTRUKTOREN
2024-06-15 14:48:28 +00:00
public Vertex() {
this.name = "";
}
public Vertex(String s) {
this.name = s;
}
// GET-ER
2024-06-15 14:48:28 +00:00
public String getName() {
return this.name;
}
2024-07-02 22:46:21 +00:00
public abstract visualizationElements.Vertex getScreenVertex();
2024-06-25 15:18:34 +00:00
// SET-ER
2024-06-15 14:48:28 +00:00
public void setName(String s) {
this.name = s;
}
2024-06-25 15:18:34 +00:00
2024-06-15 14:48:28 +00:00
}