22 package org.matsim.core.mobsim.qsim.components;
25 import java.util.stream.Collectors;
37 public static final String
GROUP_NAME =
"qsim_components";
53 Map<String, String> map =
new HashMap<>();
55 map.put(ACTIVE_COMPONENTS,
56 "Defines which components are active and in which order they are registered. Depending on which extensions and contribs you use, it may be necessary to define additional components here. Default is: " 57 + String.join(
", ", DEFAULT_COMPONENTS));
70 Set<String> activeComponentsAsSet =
new LinkedHashSet<>(
activeComponents ) ;
71 this.activeComponents =
new ArrayList<>( activeComponentsAsSet ) ;
78 components.add( component );
87 components.remove( component );
94 return String.join(
", ", activeComponents);
103 List<String> elements = Arrays.asList(config.split(
",")).stream().map(String::trim)
104 .collect(Collectors.toList());
106 if (elements.size() == 1 && elements.get(0).length() == 0) {
107 return new LinkedList<>();
QSimComponentsConfigGroup()
static final String COMPONENT_NAME
List< String > getActiveComponents()
void setActiveComponentsAsString(String activeComponents)
static final List< String > DEFAULT_COMPONENTS
static final String COMPONENT_NAME
final Map< String, String > getComments()
void removeActiveComponent(String component)
void setActiveComponents(List< String > activeComponents)
static final String GROUP_NAME
List< String > activeComponents
static final String COMPONENT_NAME
static final String COMPONENT_NAME
String getActiveComponentsAsString()
static final String ACTIVE_COMPONENTS
List< String > interpretQSimComponents(String config)
static final String COMPONENT_NAME
void addActiveComponent(String component)