ProjektGraph/graph/Vertex.java
2024-07-03 00:46:21 +02:00

39 lines
462 B
Java

package graph;
public abstract class Vertex {
// ATTRIBUTE
private String name;
// KONSTRUKTOREN
public Vertex() {
this.name = "";
}
public Vertex(String s) {
this.name = s;
}
// GET-ER
public String getName() {
return this.name;
}
public abstract visualizationElements.Vertex getScreenVertex();
// SET-ER
public void setName(String s) {
this.name = s;
}
}