congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Scenario$Builder.getTimeWindow
Code IndexAdd Tabnine to your IDE (free)

How to use
getTimeWindow
method
in
com.github.rinde.rinsim.scenario.Scenario$Builder

Best Java code snippets using com.github.rinde.rinsim.scenario.Scenario$Builder.getTimeWindow (Showing top 1 results out of 315)

origin: rinde/RinSim

/**
 * Test the default settings of a scenario.
 */
@Test
public void testDefaults() {
 final Scenario.Builder builder = Scenario
  .builder(Scenario.DEFAULT_PROBLEM_CLASS);
 assertThat(builder.getTimeWindow())
  .isEqualTo(TimeWindow.create(0, 8 * 60 * 60 * 1000));
 assertThat(builder.getStopCondition())
  .isEqualTo(StopConditions.alwaysFalse());
 final Scenario scenario = builder.build();
 assertTrue(scenario.getModelBuilders().isEmpty());
 assertSame(Scenario.DEFAULT_PROBLEM_CLASS, scenario.getProblemClass());
 assertEquals("", scenario.getProblemInstanceId());
 assertThat(scenario.getStopCondition()).isEqualTo(
  StopConditions.alwaysFalse());
 assertEquals(TimeWindow.create(0, 8 * 60 * 60 * 1000),
  scenario.getTimeWindow());
}
com.github.rinde.rinsim.scenarioScenario$BuildergetTimeWindow

Popular methods of Scenario$Builder

  • build
    Build a new Scenario instance.
  • addEvent
    Add the specified TimedEvent to the builder.
  • addEvents
    Add the specified TimedEvents to the builder.
  • addModel
    Adds the model builder. The builders will be used to instantiate Models needed for the scenario.
  • setStopCondition
  • addModels
    Adds the model builders. The builders will be used to instantiate Models needed for the scenario.
  • clearEvents
    Removes all events.
  • instanceId
    The instance id to use for the next scenario that is created.
  • removeModelsOfType
    Removes all previously added model builders that are an instance of the specified type.
  • scenarioLength
  • copyProperties
  • problemClass
    The ProblemClass to use for the next scenario that is created.
  • copyProperties,
  • problemClass,
  • <init>,
  • ensureFrequency,
  • filterEvents,
  • getStopCondition,
  • self

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Reference (javax.naming)
  • Top Sublime Text 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