@ Pure public static String getFirstFreeBusHubName ( BusNetwork busnetwork ) { int nb = busnetwork . getBusHubCount ( ) ; String name ; do { ++ nb ; name = Locale . getString ( "NAME_TEMPLATE" , //$NON-NLS-1$ Integer . toString ( nb ) ) ; } while ( busnetwork . getBusHub ( name ) != null ) ; return name ; }
Replies a bus hub name that was not exist in the specified bus network .