placeregistercommand.java

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

JAVA
30
字号
package SOMA.naming.place;

import SOMA.network.connection.Command;

/** Comando di registrazione del {@link PlaceNameService PNS} di un place presso il PNS del default place.
*
* @author Livio Profiri
*/
public class PlaceRegisterCommand extends Command
{
  /** @serial*/
  protected PlaceInfo myPlaceInfo;

  /** Costruttore */
  public PlaceRegisterCommand ( PlaceInfo myPlaceInfo )
  {
    this.myPlaceInfo = myPlaceInfo;
    System.out.println( "Register command " + myPlaceInfo + " created " );
  }

  /** Registra il place e gli spedisce un {@link PlaceRefreshCommand}.
  *
  * <P> Se un place con lo stesso nome era gia' presente, gli viene spedito un messaggio di errore.
  */
  public void run()
  {
    env.out.println( "Register command " + myPlaceInfo + " running " );
    //env.out.println( "Environment: " + env );

    // Verifico che non sia gi

⌨️ 快捷键说明

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