コード例 #1
0
  @Override
  public void run() {
    try {
      Thread.sleep(1000);
    } catch (Exception x) {
    }

    if (getState() != CLOSING) {
      agent.heartbeat();
    }
  }
コード例 #2
0
 /**
  * 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());
 }