Examples of IInstance


Examples of edu.pitt.ontology.IInstance

      buffer.append("<tr valign=top><td><b>Domain: </b></td><td>"+
          toHTML(cls.getDomain())+"</td></tr>");
      buffer.append("<tr valign=top><td><b>Range: </b></td><td>"+
          toHTML(cls.getRange())+"</td></tr>");
    }else if(e instanceof IInstance){
      IInstance cls = (IInstance) e;
      buffer.append("<tr valign=top><td><b>Types: </b></td><td>"+
          toHTML(cls.getDirectTypes())+"</td></tr>");
    }
   
    IProperty[] p = e.getProperties();
    if(p.length > 0){
      buffer.append("<tr valign=top><td><b>Properties:</b>");
View Full Code Here

Examples of edu.pitt.ontology.IInstance

  public boolean evaluate(Object obj) {
    if(obj instanceof IClass){
      IClass c2 = (IClass) obj;
      return equals(c2) || hasSubClass(c2);
    }else if(obj instanceof IInstance){
      IInstance i2 = (IInstance) obj;
      return i2.hasType(this);
    }
    return false;
  }
View Full Code Here

Examples of edu.pitt.ontology.IInstance

   * is this restriction satisfied for the owner of this restriction
   * @param this could be a IClass, IInstance, IReousrceList or java object
   */
  public boolean evaluate(Object obj){
    if(obj instanceof IInstance){
      IInstance inst = (IInstance) obj;
      // see if this instance has a value that fits this restriction
      IProperty prop = getProperty();
     
      // is property satisfied
      boolean satisfied = isPropertySatisfied(prop, inst);
View Full Code Here

Examples of edu.pitt.ontology.IInstance

   * is this restriction satisfied for the owner of this restriction
   * @param this could be a IClass, IInstance, IReousrceList or java object
   */
  public boolean evaluate(Object obj){
    if(obj instanceof IInstance){
      IInstance inst = (IInstance) obj;
      // see if this instance has a value that fits this restriction
      IProperty prop = getProperty();
     
      // is property satisfied
      boolean satisfied = isPropertySatisfied(prop, inst);
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.