Guest User

Untitled

a guest
Jan 24th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. for (int i=0;i<households.size();i++){
  2. enter.take(households(i));
  3. }
  4.  
  5. int indexV = agent.getIndex();
  6.  
  7. // for the wife
  8. Agent agentGo = households(indexV).wife_Link.getConnectedAgent();
  9. if (agentGo == null){
  10.  
  11. } else {
  12. enter1.take(agentGo);
  13. }
  14.  
  15. // for the boys
  16. List count_M = households(indexV).child_M_Link.getConnections();
  17. for(int i=0; i<count_M.size(); i++){
  18. Agent agentGo = households(indexV).child_M_Link.getConnectedAgent(i);
  19. enter2.take(agentGo);
  20. }
  21.  
  22. // for the girls
  23. List count_F = households(indexV).child_F_Link.getConnections();
  24. for(int i=0; i<count_F.size(); i++){
  25. Agent agentGo = households(indexV).child_F_Link.getConnectedAgent(i);
  26. enter3.take(agentGo);
  27. }
Add Comment
Please, Sign In to add comment