Examples of TimeSpan


Examples of de.micromata.opengis.kml.v_2_2_0.TimeSpan

                if (times != null && times.length > 0) {
                    if (times.length == 1) {
                        TimeStamp stamp = pm.createAndSetTimeStamp();
                        stamp.setWhen(times[0]);
                    } else {
                        TimeSpan span = pm.createAndSetTimeSpan();
                        span.setBegin(times[0]);
                        span.setEnd(times[1]);
                    }
                }
            } catch (IOException e) {
                throw new ServiceException(
                        "Failed to apply KML time template to the current feature", e);
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

    }

    // Wait for service

    try {
      interruptDelayed(new TimeSpan(300));
      passivate();
      cancelInterruptDelayed();

      sendTraceNote("Got serviced!");
    } catch (DelayedInterruptException e) {
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

  public void doInitialSchedules() {

    // create and activate the van carrier(s)
    for (int i = 0; i < NUM_VC; i++) {
      VanCarrier vanCarrier = new VanCarrier(this, "VanCarrier", true);
      vanCarrier.activate(new TimeSpan(0));
      // Use TimeSpan to activate a process after a span of time relative
      // to actual simulation time,
      // or use TimeInstant to activate the process at an absolute point
      // in time.
    }

    // create and activate the truck generator process
    TruckGenerator generator = new TruckGenerator(this, "TruckArrival", false);
    generator.activate(new TimeSpan(0));
  }
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

   *
   * @return the recovery time
   */
  private TimeSpan getRecoveryTime() {
    if (recoveryTime == null) {
      return new TimeSpan(0);
    } else {
      return recoveryTime.sampleTimeSpan();
    }
  }
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

   *
   * @return the service time
   */
  private TimeSpan getServiceTime() {
    if (serviceTime == null) {
      return new TimeSpan(0);
    } else {
      return serviceTime.sampleTimeSpan();
    }
  }
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

   *
   * @return the setup time
   */
  protected TimeSpan getSetupTime() {
    if (setupTime == null) {
      return new TimeSpan(0);
    } else {
      return setupTime.sampleTimeSpan();
    }
  }
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

   *
   * @return the transport time
   */
  protected TimeSpan getTransportTime() {
    if (transportTime == null) {
      return new TimeSpan(0);
    } else {
      return transportTime.sampleTimeSpan();
    }
  }
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

    model = (MessageCrossbarExample) getModel();

    switch (fahrtziel) {
    case SCHLUMP:
      try {
        msg = model.linie181.waitForMessage(new TimeSpan(5)).toString();
      } catch (DelayedInterruptException e) {
        msg = "KEINE Message empfangen! Vorzeitiger Warteabbruch";
      }
      break;
    case SIEMERSPLATZ:
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

    this.interval = interval;
  }

  @Override
  public void lifeCycle() {
    hold(new TimeSpan(initialDelay));

    while (true) {
      line.send(new CrossbarMessage(getModel(), "Bus der " + line.getName(),
          DistributionMode.DISTRIBUTE_BY_REFERENCE));

      hold(new TimeSpan(interval));
    }

  }
View Full Code Here

Examples of desmoj.core.simulator.TimeSpan

      myModel.getTruckQueue().remove(nextTruck);

      // create a new service end event
      ServiceEndEvent event = new ServiceEndEvent(myModel, "ServiceEndEvent", true);
      // and schedule it for the van carrier at the appropriate time
      event.schedule(vanCarrier, nextTruck, new TimeSpan(myModel.getServiceTime(), TimeUnit.MINUTES));
    } else {
      // NO, there are no trucks waiting

      // --> the van carrier is placed on its parking spot
      myModel.idleVCQueue.insert(vanCarrier);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.