daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top