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

📄 countpoatie.java

📁 CORBA实例
💻 JAVA
字号:

package corba.Counter;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "J:/java/corba/src/corba/Counter.idl"
 * <li> <b>IDL Name</b>      ::Counter::Count
 * <li> <b>Repository Id</b> IDL:Counter/Count:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * interface Count {
  ...
};
 * </pre>
 */
public class CountPOATie extends CountPOA {
  private corba.Counter.CountOperations _delegate;
  private org.omg.PortableServer.POA _poa;

  public CountPOATie (final corba.Counter.CountOperations _delegate) {
    this._delegate = _delegate;
  }

  public CountPOATie (final corba.Counter.CountOperations _delegate, 
                              final org.omg.PortableServer.POA _poa) {
    this._delegate = _delegate;
    this._poa = _poa;
  }

  public corba.Counter.CountOperations _delegate () {
    return this._delegate;
  }

  public void _delegate (final corba.Counter.CountOperations the_delegate) {
    this._delegate = the_delegate;
  }

  public org.omg.PortableServer.POA _default_POA () {
    if (_poa != null) {
      return _poa;
    } 
    else {
      return super._default_POA();
    }
  }

  /**
   * <pre>
   *   long increment ();
   * </pre>
   */
  public int increment () {
    return this._delegate.increment();
  }

  /**
   * <pre>
   *   attribute long sum;
   * </pre>
   */
  public int sum () {
    return this._delegate.sum();
  }

  /**
   * <pre>
   *   attribute long sum;
   * </pre>
   */
  public void sum (int arg0) {
    this._delegate.sum(arg0);
  }

}

⌨️ 快捷键说明

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