public void suspend(boolean val) {
    Main.setAgentIdle(getId(), val);
    Main.flagMessageTo(Main.poolid(getId()));
  }
public void suspend ( boolean val ) { Main . setAgentIdle ( getId ( ) , val ) ; Main . flagMessageTo ( Main . poolid ( getId ( ) ) ) ; }
Forces this agent to enter an idle state irrespective of whether it has any active intentions
or not. The agent will continue to remain in the suspected state until some event forces it to
become active again, at which point it will resume operation.

@param val the new idle state of this agent