Examples of Parcel


Examples of edu.pitt.terminology.util.Parcel

 
  /**
   * lookup concept object based on CUI
   */
  public Concept lookupConcept(String cui) {
    Concept c = (Concept) sender.sendObject(filter(new Parcel("lookup_concept",cui)));
    if(c == null)
      return null;
    c.setTerminology(this);
    return c;
  }
View Full Code Here

Examples of edu.pitt.terminology.util.Parcel

 
  /**
   * Search terminology for concepts
   */
  public Concept[] search(String text) {
    Concept [] result = (Concept []) sender.sendObject(filter(new Parcel("search",text)));
    if(result == null)
      return new Concept [0];
    for(Concept c: result){
      c.setTerminology(this);
    }
View Full Code Here

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

  }

  @Override
  protected void tickImpl(TimeLapse time) {
    // Check if we can deliver nearby
    final Parcel delivery = getDelivery(time, 5);

    final RoadModel rm = roadModel.get();
    final PDPModel pm = pdpModel.get();

    if (delivery != null) {
      if (delivery.getDestination().equals(getPosition())
          && pm.getVehicleState(this) == VehicleState.IDLE) {
        pm.deliver(this, delivery, time);
      } else {
        rm.moveTo(this, delivery.getDestination(), time);
      }
      return;
    }

    // Otherwise, Check if we can pickup nearby
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.