Package rinde.sim.core.model.pdp

Examples of rinde.sim.core.model.pdp.PDPModel


    checkType(newObj);
    delegate.addObjectAtSamePosition(newObj, existingObj);
  }

  private boolean isAlreadyServiced(DestType type, RoadUser ru) {
    final PDPModel pm = pdpModel.get();
    boolean alreadyServiced = false;
    if (type == DestType.PICKUP) {
      alreadyServiced = pm.getParcelState((DefaultParcel) ru) == ParcelState.PICKING_UP
          || pm.getParcelState((DefaultParcel) ru) == ParcelState.IN_CARGO;
    } else if (type == DestType.DELIVERY) {
      alreadyServiced = pm.getParcelState((DefaultParcel) ru) == ParcelState.DELIVERING
          || pm.getParcelState((DefaultParcel) ru) == ParcelState.DELIVERED;
    }
    return alreadyServiced;
  }
View Full Code Here

TOP

Related Classes of rinde.sim.core.model.pdp.PDPModel

Copyright © 2018 www.massapicom. 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.