Package com.dtrules.samples.chipeligibility.app.dataobjects

Examples of com.dtrules.samples.chipeligibility.app.dataobjects.Relationship


    ArrayList<Client> sibs = new ArrayList<Client>();
   
    while(job.getCase().getClients().size()<10 && sibs.size()==0 || chance(40)){
      Client child = genClient(job, ageParent-15);
      sibs.add(child);
      Relationship r = new Relationship();
      job.getCase().getRelationships().add(r);
      r.setSource(parent);
      r.setTarget(child);
      r.setType("parent");
     
      r = new Relationship();
      job.getCase().getRelationships().add(r);
      r.setSource(child);
      r.setTarget(parent);
      r.setType("child");
    }
    for(Client sib1 : sibs){
      for(Client sib2 : sibs ){
        if(sib1 != sib2){
          Relationship r = new Relationship();
          job.getCase().getRelationships().add(r);
          r.setSource(sib1);
          r.setTarget(sib2);
          r.setType("sibling");
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.dtrules.samples.chipeligibility.app.dataobjects.Relationship

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.