Public Member Functions | |
BaumBlatt (int ID, String name) | |
BlattVerbindung | addConnection (BaumBlatt connector, int value) |
Vector< BlattVerbindung > | getConnections () |
void | setName (String name) |
String | getName () |
daten.BaumBlatt.BaumBlatt | ( | int | ID, | |
String | name | |||
) |
calls the constructor of the knoten with the id and sets the name inits the connections
ID | ||
name |
BlattVerbindung daten.BaumBlatt.addConnection | ( | BaumBlatt | connector, | |
int | value | |||
) |
adds a connection to the leaf
connector | the other leaf | |
value |
Vector<BlattVerbindung> daten.BaumBlatt.getConnections | ( | ) |
returns all the connections added to this leaf
void daten.BaumBlatt.setName | ( | String | name | ) |
sets the name of the leaf
name |
String daten.BaumBlatt.getName | ( | ) |
returns the name of the leaf