Tabnine Logo
ReplanningEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
ReplanningEvent
in
org.matsim.core.controler.events

Best Java code snippets using org.matsim.core.controler.events.ReplanningEvent (Showing top 4 results out of 315)

origin: matsim-org/matsim

@Override
public void notifyReplanning(final ReplanningEvent event) {
  if (carrierPlanStrategyManagerFactory == null) {
    return;
  }
  GenericStrategyManager<CarrierPlan, Carrier> strategyManager = carrierPlanStrategyManagerFactory.createStrategyManager();
  Collection<HasPlansAndId<CarrierPlan, Carrier>> collection = new ArrayList<>();
  for (Carrier carrier : carriers.getCarriers().values()) {
    collection.add(carrier);
  }
  strategyManager.run(collection, null, event.getIteration(), event.getReplanningContext());
}
origin: matsim-org/matsim

@Override
public void notifyReplanning(final ReplanningEvent event) {
  strategyManager.run(population, event.getIteration(), replanningContextProvider.get());
}
origin: matsim-org/matsim

@Override
public void notifyReplanning(final ReplanningEvent event) {
  strategyManager.run( event.getReplanningContext() , sc );
}
origin: matsim-org/matsim

/**
 * Notifies all ControlerReplanningListeners
 *
 */
public void fireControlerReplanningEvent(final int iteration) {
  ReplanningEvent event = new ReplanningEvent(this.controler, iteration);
  ReplanningListener[] listener = this.coreListenerList.getListeners(ReplanningListener.class);
  for (ReplanningListener aListener : listener) {
    log.info("calling notifyReplanning on " + aListener.getClass().getName());
    aListener.notifyReplanning(event);
  }
  listener = this.listenerList.getListeners(ReplanningListener.class);
  for (ReplanningListener aListener : listener) {
    log.info("calling notifyReplanning on " + aListener.getClass().getName());
    aListener.notifyReplanning(event);
  }
  log.info("[it." + iteration + "] all ControlerReplanningListeners called.");
}
org.matsim.core.controler.eventsReplanningEvent

Javadoc

Event class to notify observers that replanning should happen

Most used methods

  • getIteration
  • getReplanningContext
  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now