use of jmri.SignalGroup in project JMRI by JMRI.
the class DefaultSignalGroupManager method provideSignalGroup.
@Override
public SignalGroup provideSignalGroup(String systemName, String userName) {
SignalGroup r;
r = getByUserName(systemName);
if (r != null) {
return r;
}
r = getBySystemName(systemName);
if (r != null) {
return r;
}
// Group does not exist, create a new group
r = new DefaultSignalGroup(systemName, userName);
// save in the maps
register(r);
return r;
}
Aggregations