Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i=0;i<households.size();i++){
- enter.take(households(i));
- }
- int indexV = agent.getIndex();
- // for the wife
- Agent agentGo = households(indexV).wife_Link.getConnectedAgent();
- if (agentGo == null){
- } else {
- enter1.take(agentGo);
- }
- // for the boys
- List count_M = households(indexV).child_M_Link.getConnections();
- for(int i=0; i<count_M.size(); i++){
- Agent agentGo = households(indexV).child_M_Link.getConnectedAgent(i);
- enter2.take(agentGo);
- }
- // for the girls
- List count_F = households(indexV).child_F_Link.getConnections();
- for(int i=0; i<count_F.size(); i++){
- Agent agentGo = households(indexV).child_F_Link.getConnectedAgent(i);
- enter3.take(agentGo);
- }
Add Comment
Please, Sign In to add comment