removeplacecommand.java

来自「一个agent 工具包,可以开发移动设备应用,考虑了安全措施」· Java 代码 · 共 35 行

JAVA
35
字号
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 + =
减小字号Ctrl + -
显示快捷键?