/** * "Removes" an agent with the given name from the simulation * * <p>Be careful: what this actually do is to stop the agent execution. * * @param sim -The Shanks Simulation * @param agentID - The name of the agent to remove * @throws ShanksException An UnkownAgentException if the Agent ID is not found on the simulation. */ public static void removeAgent(ShanksSimulation sim, String agentID) throws ShanksException { sim.logger.info("Stoppable not fount. Attempting direct stop..."); sim.unregisterShanksAgent(agentID); sim.logger.info("Agent " + agentID + " stopped."); }