39 lines
462 B
Java
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;
|
|
}
|
|
|
|
}
|