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

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

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

origin: matsim-org/matsim

final ArrayList<Candidate> choiceSet = new ArrayList<Candidate>();
for ( Subtour subtour : subtours ) {
  if ( !subtour.isClosed() ) {
    continue;
origin: matsim-org/matsim

@Override
public void run(final Plan plan) {
  for ( Subtour subtour : TripStructureUtils.getSubtours( plan , stages ) ) {
    // not clear what we should do with open tours
    if ( !subtour.isClosed() ) continue;
    // only consider "root" tours: tours without (closed) parent
    if ( subtour.getParent() != null && subtour.getParent().isClosed() ) continue;
    final String mode = modeIdentifier.identifyMode( subtour );
    for ( Trip trip : subtour.getTrips() ) {
      TripRouter.insertTrip(
          plan,
          trip.getOriginActivity(),
          Collections.singletonList( PopulationUtils.createLeg(mode) ),
          trip.getDestinationActivity() );
    }
  }
}
org.matsim.core.routerTripStructureUtils$SubtourisClosed

Popular methods of TripStructureUtils$Subtour

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

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
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