Package edu.pitt.terminology.util

Examples of edu.pitt.terminology.util.Parcel


  /**
   * get available terminologies
   * @return
   */
  public String [] getAvailableTerminologies(){
    Set terms = (Set) sender.sendObject(new Parcel("get_terminologies",null));
    return (String []) terms.toArray(new String [0]);
  }
View Full Code Here


  /**
   * get related concepts
   */
  public Concept[] getRelatedConcepts(Concept c, Relation r) {
    Concept [] result = (Concept []) sender.sendObject(filter(new Parcel("get_related_concepts",new Object[]{c,r})));
    for(Concept co: result)
      co.setTerminology(this);
    return result;
  }
View Full Code Here

  /**
   * get related concepts
   */
  public Map getRelatedConcepts(Concept c) {
    return (Map) sender.sendObject(filter(new Parcel("get_related_concept_map",c)));
  }
View Full Code Here

 
  /**
   * Get list of sources that are supported by this terminology
   */
  public Source[] getSources() {
    return (Source []) sender.sendObject(filter(new Parcel("get_sources",null)));
  }
View Full Code Here

  /**
   * Set terminology sources
   */
  public void setFilterSources(Source [] filter) {
    this.filter = filter;
    sender.sendObject(filter(new Parcel("set_sources",filter)));
  }
View Full Code Here

 
  /**
   * 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

 
  /**
   * 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

TOP

Related Classes of edu.pitt.terminology.util.Parcel

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.