Package org.moltools.apps.probemaker.design

Examples of org.moltools.apps.probemaker.design.ProbeGroup.addMember()


        //Copy the selected probe
        p.copy(selected);

        //Add the copied probe to the group
        if (pg != null) {
          pg.addMember(p);
        }
        //Print the selected probe to the log       
        String s = "Selected: "; //$NON-NLS-1$
        for (int i = 1; i <= p.getSequenceCount(); i++) {
          if (i > 1) {
View Full Code Here


      for (Iterator<Probe> i = probeset.iterator(); i.hasNext() && !groupfound; ) {
        Probe other = i.next();    
        ProbeGroup og = (ProbeGroup) DesignUtils.getGroupWithType(other,ProbeGroup.GROUP_TYPE);       
        if (og != null) {
          if (og.getTargetGroup() == tg) {
            og.addMember(p);
            groupfound = true;
          }
        }
      }
      //If no group found, create a new group
View Full Code Here

        }
      }
      //If no group found, create a new group
      if (!groupfound) {       
        ProbeGroup pg = new ProbeGroup(tg,tg.getID());
        pg.addMember(p);
      }
    }
    return p;
  }
View Full Code Here

      for (Iterator<Probe> i = probeset.iterator(); i.hasNext() && !groupfound; ) {
        Probe other = i.next();    
        ProbeGroup og = (ProbeGroup) DesignUtils.getGroupWithType(other,ProbeGroup.GROUP_TYPE);       
        if (og != null) {
          if (og.getTargetGroup() == tg) {
            og.addMember(p);
            groupfound = true;
          }
        }
      }
      //If no group found, create a new group
View Full Code Here

        }
      }
      //If no group found, create a new group
      if (!groupfound) {       
        ProbeGroup pg = new ProbeGroup(tg,tg.getID());
        pg.addMember(p);
      }
    }
    return p;
  }
View Full Code Here

    p1.setID("P1");
   
    TargetGroup tg = new TargetGroup("tg");
    ProbeGroup pg = new ProbeGroup(tg, "PG");
    assertEquals(0, pg.getMembers().size());
    pg.addMember(p1);
    assertEquals(1, pg.getMembers().size());
    p1.setName("Probe 1");   
    pg.removeMember(p1);
    assertEquals(0, pg.getMembers().size());
 
View Full Code Here

        //Copy the selected probe
        p.copy(selected);

        //Add the copied probe to the group
        if (pg != null) {
          pg.addMember(p);
        }
        //Print the selected probe to the log       
        String s = "Selected: "; //$NON-NLS-1$
        for (int i = 1; i <= p.getSequenceCount(); i++) {
          if (i > 1) {
View Full Code Here

        //Copy the selected probe
        p.copy(selected);

        //Add the copied probe to the group
        if (pg != null) {
          pg.addMember(p);
        }
        //Print the selected probe to the log       
        String s = "Selected: "; //$NON-NLS-1$
        for (int i = 1; i <= p.getSequenceCount(); i++) {
          if (i > 1) {
View Full Code Here

       
        //Copy the selected probe
        p.copy(selected);

        if (pg != null) {
          pg.addMember(p);
        }
        //Print the selected probe to the log       
        String s = "Selected: "; //$NON-NLS-1$
        for (int i = 1; i <= p.getSequenceCount(); i++) {
          if (i > 1) {
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.