Tabnine Logo
Scenario$AbstractBuilder.self
Code IndexAdd Tabnine to your IDE (free)

How to use
self
method
in
com.github.rinde.rinsim.scenario.Scenario$AbstractBuilder

Best Java code snippets using com.github.rinde.rinsim.scenario.Scenario$AbstractBuilder.self (Showing top 6 results out of 315)

origin: rinde/RinSim

/**
 * Copies properties of the specified scenario into this builder.
 * @param scenario The scenario to copy the properties from.
 * @return This, as per the builder pattern.
 */
protected T copyProperties(Scenario scenario) {
 timeWindow = scenario.getTimeWindow();
 stopCondition = scenario.getStopCondition();
 return self();
}
origin: rinde/RinSim

/**
 * Set the length (duration) of the scenario. Note that the time at which
 * the simulation is stopped is defined by
 * {@link #setStopCondition(StopCondition)} .
 * @param length The length of the scenario, expressed in the time unit as
 *          defined by the {@link TimeModel}.
 * @return This, as per the builder pattern.
 */
public T scenarioLength(long length) {
 timeWindow = TimeWindow.create(0, length);
 return self();
}
origin: com.github.rinde/rinsim-scenario

/**
 * Set the condition when the scenario should stop. The default is to
 * continue indefinitely via {@link Predicates#alwaysFalse()}.
 * @param condition The stop condition to set.
 * @return This, as per the builder pattern.
 */
public T setStopCondition(StopCondition condition) {
 stopCondition = condition;
 return self();
}
origin: com.github.rinde/rinsim-scenario

/**
 * Set the length (duration) of the scenario. Note that the time at which
 * the simulation is stopped is defined by
 * {@link #setStopCondition(StopCondition)} .
 * @param length The length of the scenario, expressed in the time unit as
 *          defined by the {@link TimeModel}.
 * @return This, as per the builder pattern.
 */
public T scenarioLength(long length) {
 timeWindow = TimeWindow.create(0, length);
 return self();
}
origin: rinde/RinSim

/**
 * Set the condition when the scenario should stop. The default is to
 * continue indefinitely via {@link Predicates#alwaysFalse()}.
 * @param condition The stop condition to set.
 * @return This, as per the builder pattern.
 */
public T setStopCondition(StopCondition condition) {
 stopCondition = condition;
 return self();
}
origin: com.github.rinde/rinsim-scenario

/**
 * Copies properties of the specified scenario into this builder.
 * @param scenario The scenario to copy the properties from.
 * @return This, as per the builder pattern.
 */
protected T copyProperties(Scenario scenario) {
 timeWindow = scenario.getTimeWindow();
 stopCondition = scenario.getStopCondition();
 return self();
}
com.github.rinde.rinsim.scenarioScenario$AbstractBuilderself

Javadoc

Should return 'this', the builder.

Popular methods of Scenario$AbstractBuilder

  • copyProperties
    Copies properties of the specified scenario into this builder.

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Join (org.hibernate.mapping)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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