Tabnine Logo
TripStructureUtils$Subtour.getTripsWithoutSubSubtours
Code IndexAdd Tabnine to your IDE (free)

How to use
getTripsWithoutSubSubtours
method
in
org.matsim.core.router.TripStructureUtils$Subtour

Best Java code snippets using org.matsim.core.router.TripStructureUtils$Subtour.getTripsWithoutSubSubtours (Showing top 4 results out of 315)

origin: matsim-org/matsim

  private static boolean areEqual(
      final Subtour s1,
      final Subtour s2) {
    return s1.getTripsWithoutSubSubtours().equals(
        s2.getTripsWithoutSubSubtours() );
  }
}
origin: matsim-org/matsim

  private static boolean areEqual(
      final Subtour s1,
      final Subtour s2) {
    return s1.getTripsWithoutSubSubtours().equals(
        s2.getTripsWithoutSubSubtours() );
  }
}
origin: matsim-org/matsim

boolean containsMutatedMode = false;
for (Trip trip : mutated.getTripsWithoutSubSubtours()) {
  if ( expectedMode.equals( trip.getLegsOnly().get( 0 ).getMode() ) ) {
    assertTrue(
origin: matsim-org/matsim

@Test
public void testGetTripsWithoutSubSubtours() throws Exception {
  for (Fixture f : allFixtures( useFacilitiesAsAnchorPoint )) {
    final int nTrips = TripStructureUtils.getTrips( f.plan , CHECKER ).size();
    final Collection<Subtour> subtours =
      TripStructureUtils.getSubtours(
          f.plan,
          CHECKER
      );
    int countTrips = 0;
    for (Subtour s : subtours) {
      countTrips += s.getTripsWithoutSubSubtours().size();
    }
    assertEquals(
        "[anchorAtFacilities="+f.useFacilitiesAsAnchorPoint+"] "+
        "unexpected total number of trips in subtours without subsubtours",
        countTrips,
        nTrips);
  }
}
org.matsim.core.routerTripStructureUtils$SubtourgetTripsWithoutSubSubtours

Popular methods of TripStructureUtils$Subtour

  • getTrips
  • <init>
  • getParent
  • isClosed
  • areChildrenCompatible
  • contains
  • equals
  • getChildren

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • findViewById (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top plugins for WebStorm
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