jill/src/main/java/io/github/agentsoz/jill/Main.java
public static int poolid(int agentid) {
    int poolid = agentid / poolsize;
    if (poolid + 1 > npools) {
      poolid = npools - 1;
    }
    return poolid;
  }
public static int poolid(int agentid) {
    int poolid = agentid / poolsize;
    if (poolid + 1 > npools) {
      poolid = npools - 1;
    }
    return poolid;
  }
public static int poolid ( int agentid ) { int poolid = agentid / poolsize ; if ( poolid + 1 > npools ) { poolid = npools - 1 ; } return poolid ; }
Gets the ID of the intention selection pool to which the given agent belongs.

@param agentid ID of the agent for which the pool ID is being requested
@return ID of the pool to which this agent belongs
Gets the ID of the intention selection pool to which the given agent belongs .