@Override public void run() { try { Thread.sleep(1000); } catch (Exception x) { } if (getState() != CLOSING) { agent.heartbeat(); } }
/** * The default constructor from the technocore * * @param agent The sphere for this technocore */ public SimpleThreadAgentContainer(Agent agent) { this.agent = agent; setState(FREE); setUniqueId(agent.getUniqueId()); }