Codota Logo
TripStructureUtils$Subtour.isClosed
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now