21 package org.matsim.core.config.groups;
37 public final static String
NUMBER_OF_THREADS_COMMENT =
"Number of threads for parallel events handler. _null_ means the framework decides by itself. 0 is currently not possible.";
62 Map<String, String> comments = super.getComments();
63 comments.put(NUMBER_OF_THREADS, NUMBER_OF_THREADS_COMMENT);
64 comments.put(ESTIMATED_NUMBER_OF_EVENTS,
"Estimated number of events during mobsim run. An optional optimization hint for the framework.");
65 comments.put(SYNCHRONIZE_ON_SIMSTEPS,
"If enabled, it is ensured that all events that are created during a time step of the mobility simulation are processed " 66 +
"before the next time step is simulated. E.g. neccessary when within-day replanning is used.");
67 comments.put(ONE_THREAD_PER_HANDLER,
"If enabled, each event handler is assigned to its own thread. Note that enabling this feature disabled the " + NUMBER_OF_THREADS +
" option! " 68 +
"This feature is still experimental!");
69 comments.put(EVENTS_QUEUE_SIZE,EVENTS_QUEUE_SIZE_COMMENT);
91 throw new RuntimeException(
"it is too late in the control flow to modify this parameter");
105 throw new RuntimeException(
"it is too late in the control flow to modify this parameter");
129 throw new RuntimeException(
"it is too late in the control flow to modify this parameter");
143 throw new RuntimeException(
"it is too late in the control flow to modify this parameter");
EventsManagerConfigGroup()
static final String GROUP_NAME
Boolean oneThreadPerHandler
static final String ESTIMATED_NUMBER_OF_EVENTS
void setSynchronizeOnSimSteps(Boolean synchronizeOnSimSteps)
static final String EVENTS_QUEUE_SIZE
Long getEstimatedNumberOfEvents()
static final String ONE_THREAD_PER_HANDLER
void setEventsQueueSize(int eventsQueueSize)
Boolean getSynchronizeOnSimSteps()
Integer getNumberOfThreads()
void setNumberOfThreads(Integer numberOfThreads)
Long estimatedNumberOfEvents
void setOneThreadPerHandler(Boolean oneThreadPerHandler)
void setEstimatedNumberOfEvents(Long estimatedNumberOfEvents)
static final String SYNCHRONIZE_ON_SIMSTEPS
static final String NUMBER_OF_THREADS_COMMENT
static final String EVENTS_QUEUE_SIZE_COMMENT
static final String NUMBER_OF_THREADS
Boolean synchronizeOnSimSteps
Boolean getOneThreadPerHandler()
Map< String, String > getComments()