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

📄 removeplacecommand.java

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

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

/** Comando di eliminazione di un place da un {@link PlaceNameService PNS}.
*
* @author Livio Profiri
*/
public class RemovePlaceCommand extends Command
{
  /** @serial*/
  PlaceID toRemove;

  /** Costruttore. */
  public RemovePlaceCommand( PlaceID toRemove )
  {
    this.toRemove = toRemove;
    System.out.println( toString() + " created " );
  }

  /** Rimuove il place. */
  public void run()
  {
    env.placeNameService.removePlace( toRemove );

    env.out.println( toString() + " Completed!" );
  }

  public String toString()
  {
    return "[RemovePlaceCommand " + toRemove + "]";
  }
}

⌨️ 快捷键说明

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