opcserver.java

来自「此文件为OPC Client IsVJTrend源代码,在VJ++开发环境下调试」· Java 代码 · 共 131 行

JAVA
131
字号
//
// Auto-generated using JActiveX.EXE 5.00.2918
//   ("D:\Program Files\Microsoft Visual Studio\VJ98\jactivex.exe" /wfc  /w /xi /X:rkc /l "C:\TEMP\jvc12.tmp" /nologo /d "E:\InfoServer\clients\Java\Trend\ISVjTrend" "C:\WINNT\system32\opcdaauto.dll")
//
// WARNING: Do not remove the comments that include "@com" directives.
// This source file must be compiled by a @com-aware compiler.
// If you are using the Microsoft Visual J++ compiler, you must use
// version 1.02.3920 or later. Previous versions will not issue an error
// but will not generate COM-enabled class files.
//

package opcdaauto;

import com.ms.com.*;
import com.ms.com.IUnknown;
import com.ms.com.Variant;

/** @com.class(classid=28E68F9A-8D75-11D1-8DC3-3C302A000000,DynamicCasts) 
    @com.interface(iid=28E68F92-8D75-11D1-8DC3-3C302A000000, thread=AUTO, type=DUAL) */
public class OPCServer implements IUnknown,com.ms.com.NoAutoScripting,opcdaauto.IOPCAutoServer
{
  /** @com.method(vtoffset=4, dispid=1610743808, type=PROPGET, name="StartTime", name2="getStartTime", addFlagsVtable=4)
      @com.parameters([type=DATE] return) */
  public native double getStartTime();

  /** @com.method(vtoffset=5, dispid=1610743809, type=PROPGET, name="CurrentTime", name2="getCurrentTime", addFlagsVtable=4)
      @com.parameters([type=DATE] return) */
  public native double getCurrentTime();

  /** @com.method(vtoffset=6, dispid=1610743810, type=PROPGET, name="LastUpdateTime", name2="getLastUpdateTime", addFlagsVtable=4)
      @com.parameters([type=DATE] return) */
  public native double getLastUpdateTime();

  /** @com.method(vtoffset=7, dispid=1610743811, type=PROPGET, name="MajorVersion", name2="getMajorVersion", addFlagsVtable=4)
      @com.parameters([type=I2] return) */
  public native short getMajorVersion();

  /** @com.method(vtoffset=8, dispid=1610743812, type=PROPGET, name="MinorVersion", name2="getMinorVersion", addFlagsVtable=4)
      @com.parameters([type=I2] return) */
  public native short getMinorVersion();

  /** @com.method(vtoffset=9, dispid=1610743813, type=PROPGET, name="BuildNumber", name2="getBuildNumber", addFlagsVtable=4)
      @com.parameters([type=I2] return) */
  public native short getBuildNumber();

  /** @com.method(vtoffset=10, dispid=1610743814, type=PROPGET, name="VendorInfo", name2="getVendorInfo", addFlagsVtable=4)
      @com.parameters([type=STRING] return) */
  public native String getVendorInfo();

  /** @com.method(vtoffset=11, dispid=1610743815, type=PROPGET, name="ServerState", name2="getServerState", addFlagsVtable=4)
      @com.parameters([type=I4] return) */
  public native int getServerState();

  /** @com.method(vtoffset=12, dispid=1610743816, type=PROPGET, name="ServerName", name2="getServerName", addFlagsVtable=4)
      @com.parameters([type=STRING] return) */
  public native String getServerName();

  /** @com.method(vtoffset=13, dispid=1610743817, type=PROPGET, name="ServerNode", name2="getServerNode", addFlagsVtable=4)
      @com.parameters([type=STRING] return) */
  public native String getServerNode();

  /** @com.method(vtoffset=14, dispid=1610743818, type=PROPGET, name="ClientName", name2="getClientName", addFlagsVtable=4)
      @com.parameters([type=STRING] return) */
  public native String getClientName();

  /** @com.method(vtoffset=15, dispid=1610743818, type=PROPPUT, name="ClientName", name2="putClientName", addFlagsVtable=4)
      @com.parameters([in,type=STRING] ClientName) */
  public native void setClientName(String ClientName);

  /** @com.method(vtoffset=16, dispid=1610743820, type=PROPGET, name="LocaleID", name2="getLocaleID", addFlagsVtable=4)
      @com.parameters([type=I4] return) */
  public native int getLocaleID();

  /** @com.method(vtoffset=17, dispid=1610743820, type=PROPPUT, name="LocaleID", name2="putLocaleID", addFlagsVtable=4)
      @com.parameters([in,type=I4] LocaleID) */
  public native void setLocaleID(int LocaleID);

  /** @com.method(vtoffset=18, dispid=1610743822, type=PROPGET, name="Bandwidth", name2="getBandwidth", addFlagsVtable=4)
      @com.parameters([type=I4] return) */
  public native int getBandwidth();

  /** @com.method(vtoffset=19, dispid=0, type=PROPGET, name="OPCGroups", name2="getOPCGroups", addFlagsVtable=4)
      @com.parameters([iid=28E68F95-8D75-11D1-8DC3-3C302A000000,thread=AUTO,type=OBJECT] return) */
  public native opcdaauto.OPCGroups getOPCGroups();

  /** @com.method(vtoffset=20, dispid=1610743824, type=PROPGET, name="PublicGroupNames", name2="getPublicGroupNames", addFlagsVtable=4)
      @com.parameters([type=VARIANT] return) */
  public native Variant getPublicGroupNames();

  /** @com.method(vtoffset=21, dispid=1610743825, type=METHOD, name="GetOPCServers", addFlagsVtable=4)
      @com.parameters([in,type=VARIANT] Node, [type=VARIANT] return) */
  public native Variant GetOPCServers(Variant Node);

  /** @com.method(vtoffset=22, dispid=1610743826, type=METHOD, name="Connect", addFlagsVtable=4)
      @com.parameters([in,type=STRING] ProgID, [in,type=VARIANT] Node) */
  public native void Connect(String ProgID, Variant Node);

  /** @com.method(vtoffset=23, dispid=1610743827, type=METHOD, name="Disconnect", addFlagsVtable=4)
      @com.parameters() */
  public native void Disconnect();

  /** @com.method(vtoffset=24, dispid=1610743828, type=METHOD, name="CreateBrowser", addFlagsVtable=4)
      @com.parameters([iid=28E68F94-8D75-11D1-8DC3-3C302A000000,thread=AUTO,type=DISPATCH] return) */
  public native opcdaauto.OPCBrowser CreateBrowser();

  /** @com.method(vtoffset=25, dispid=1610743829, type=METHOD, name="GetErrorString", addFlagsVtable=4)
      @com.parameters([in,type=I4] ErrorCode, [type=STRING] return) */
  public native String GetErrorString(int ErrorCode);

  /** @com.method(vtoffset=26, dispid=1610743830, type=METHOD, name="QueryAvailableLocaleIDs", addFlagsVtable=4)
      @com.parameters([type=VARIANT] return) */
  public native Variant QueryAvailableLocaleIDs();

  /** @com.method(vtoffset=27, dispid=1610743831, type=METHOD, name="QueryAvailableProperties", addFlagsVtable=4)
      @com.parameters([in,type=STRING] ItemID, [out,size=1,elementType=I4,type=ARRAY] Count, [out,vt=16387,type=SAFEARRAY] PropertyIDs, [out,vt=16392,type=SAFEARRAY] Descriptions, [out,vt=16386,type=SAFEARRAY] DataTypes) */
  public native void QueryAvailableProperties(String ItemID, int[] Count, com.ms.com.SafeArray PropertyIDs, com.ms.com.SafeArray Descriptions, com.ms.com.SafeArray DataTypes);

  /** @com.method(vtoffset=28, dispid=1610743832, type=METHOD, name="GetItemProperties", addFlagsVtable=4)
      @com.parameters([in,type=STRING] ItemID, [in,type=I4] Count, [in,vt=16387,type=SAFEARRAY] PropertyIDs, [out,vt=16396,type=SAFEARRAY] PropertyValues, [out,vt=16387,type=SAFEARRAY] Errors) */
  public native void GetItemProperties(String ItemID, int Count, com.ms.com.SafeArray PropertyIDs, com.ms.com.SafeArray PropertyValues, com.ms.com.SafeArray Errors);

  /** @com.method(vtoffset=29, dispid=1610743833, type=METHOD, name="LookupItemIDs", addFlagsVtable=4)
      @com.parameters([in,type=STRING] ItemID, [in,type=I4] Count, [in,vt=16387,type=SAFEARRAY] PropertyIDs, [out,vt=16392,type=SAFEARRAY] NewItemIDs, [out,vt=16387,type=SAFEARRAY] Errors) */
  public native void LookupItemIDs(String ItemID, int Count, com.ms.com.SafeArray PropertyIDs, com.ms.com.SafeArray NewItemIDs, com.ms.com.SafeArray Errors);


  public static final com.ms.com._Guid iid = new com.ms.com._Guid((int)0x28e68f92, (short)0x8d75, (short)0x11d1, (byte)0x8d, (byte)0xc3, (byte)0x3c, (byte)0x30, (byte)0x2a, (byte)0x0, (byte)0x0, (byte)0x0);

  public static final com.ms.com._Guid clsid = new com.ms.com._Guid((int)0x28e68f9a, (short)0x8d75, (short)0x11d1, (byte)0x8d, (byte)0xc3, (byte)0x3c, (byte)0x30, (byte)0x2a, (byte)0x0, (byte)0x0, (byte)0x0);
}

⌨️ 快捷键说明

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