Package org.gvt.util

Examples of org.gvt.util.EntityHolder


    // Encountered rules. For avoiding duplicate edges.
    Set<String> encountered = new HashSet<String>();

    for (SimpleInteraction simpleInt : simpleInts)
    {
      EntityHolder source = new EntityHolder(simpleInt.getSource());
      EntityHolder target = new EntityHolder(simpleInt.getTarget());

      if (!map.containsKey(source))
      {
        map.put(source, new SIFNode(this, source));
      }
      if (!map.containsKey(target))
      {
        map.put(target, new SIFNode(this, target));
      }
      SIFNode sourceNode = map.get(source);
      SIFNode targetNode = map.get(target);

      String id = source.getID() + " - " + target.getID();

      if (encountered.contains(id))
      {
        continue;
      }

      new SIFEdge(sourceNode, targetNode, simpleInt.getType());

      encountered.add(id);

      if (!simpleInt.getType().isDirected())
      {
        encountered.add(target.getID() + " - " + source.getID());
      }
    }
  }
View Full Code Here


    return cmp;
  }

  public EntityHolder getEntity()
  {
    return new EntityHolder(cmp);
  }
View Full Code Here

        for (String selected : selectionResult)
        {
          //search among all addedEntities
          for (int j = 0 ; j < addedEntities.size() ; j++)
          {
            EntityHolder entity = addedEntities.get(j);
           
            //if corresponding entity is found
            if (selected != null && selected.equals(entity.getName()))
            {
              //remove entity from addedEntities ArrayList
              addedEntities.remove(j);
             
              //remove entity keyName from from List
View Full Code Here

          {
            Node corresponding = (Node) actor.getLabel(BioPAXGraph.EXCISED_FROM);

            if (corresponding instanceof EntityAssociated)
            {
              EntityHolder entity = ((EntityAssociated) corresponding).getEntity();
              List<Node> nodeList = entityToNodeMap.get(entity);

              for (Node node : nodeList)
              {
                targets.add(node);
View Full Code Here

    if (isLevel2())
    {
      for (physicalEntity pe : getOwlModel().getObjects(physicalEntity.class))
      {
        entities.add(new EntityHolder(pe));
      }
    }
    else if (isLevel3())
    {
      for (EntityReference er : getOwlModel().getObjects(EntityReference.class))
      {
        entities.add(new EntityHolder(er));
      }
      if (entities.isEmpty())
      {
        for (PhysicalEntity pe : getOwlModel().getObjects(PhysicalEntity.class))
        {
          entities.add(new EntityHolder(pe));
        }
      }
    }

    return entities;
View Full Code Here

//    }
  }

  public EntityHolder getEntity()
  {
    return new EntityHolder(entity);
  }
View Full Code Here

    return cmp;
  }

  public EntityHolder getEntity()
  {
    return new EntityHolder(cmp);
  }
View Full Code Here

        for (String selected : selectionResult)
        {
          //search among all addedEntities
          for (int j = 0 ; j < addedEntities.size() ; j++)
          {
            EntityHolder entity = addedEntities.get(j);
           
            //if corresponding entity is found
            if (selected != null &&
              selected.equals(entity.getName()))
            {
              //remove entity from addedEntities ArrayList
              addedEntities.remove(j);
             
              //remove entity keyName from from List
View Full Code Here

                for (String selected : selectionResult)
                {
                    //search among all addedEntities
                    for (int j = 0 ; j < addedEntities.size() ; j++)
                    {
                        EntityHolder entity = addedEntities.get(j);

                        //if corresponding entity is found
                        if (selected != null &&
                            selected.equals(entity.getName()))
                        {
                            //remove entity from addedEntities ArrayList
                            addedEntities.remove(j);

                            //remove entity keyName from from List
View Full Code Here

         * Could, and perhaps should, be done in a better way...
         * */
        boolean isProt = false;
        if (node instanceof Actor){
          Actor a = (Actor) node;
          EntityHolder holder = a.getEntity();
          isProt = holder.l3pe.getClass().toString().contains("tein");
         
        }

        if (data == null)
View Full Code Here

TOP

Related Classes of org.gvt.util.EntityHolder

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.