⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 agentpositionupdatecommand.java

📁 一个agent 工具包,可以开发移动设备应用,考虑了安全措施
💻 JAVA
字号:
package SOMA.agent.mobility;

import SOMA.naming.*;
import SOMA.network.connection.QuickCommand;

/** Comando per l'aggiornamento della posizione di agenti.
*
* @author Livio Profiri
*/
public class AgentPositionUpdateCommand extends QuickCommand
{
  private final AgentID agentID;
  private final PlaceID placeID;

  /** Costruttore. */
  public AgentPositionUpdateCommand( AgentID agentID, PlaceID placeID )
  {
    this.agentID = agentID;
    this.placeID = placeID;
  }

  public void run()
  {
    env.agentManager.agentPositionStore.put( agentID, placeID );
    //env.out.println( toString() );
  }

  public String toString()
  {
    return "[AgentPositionUpdateCommand " + agentID + " --> " + placeID + "]";
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -