javafish.clients.opc
Class JCustomOpc

java.lang.Object
  extended by javafish.clients.opc.JCustomOpc
Direct Known Subclasses:
JOpc, JOpcBrowser

public abstract class JCustomOpc
extends java.lang.Object

JCustomOpc Client
abstract class

OPC is open connectivity in industrial automation and the enterprise systems that support the industry. Interoperability is assured through the creation and maintenance of non-proprietary open standards specifications.

The first OPC standard specification resulted from the collaboration of a number of leading worldwide automation suppliers working in cooperation with Microsoft. Originally based on Microsoft's OLE COM and DCOM technologies, the specification defined a standard set of objects, interfaces and methods for use in process control and manufacturing automation applications to facilitate interoperability.

The COM/DCOM technologies provided the framework for software products to be developed. There are now hundreds of OPC Data Access servers and clients.

Version:
2.02/2006
Author:
arnal2@seznam.cz

Constructor Summary
JCustomOpc(java.lang.String host, java.lang.String serverProgID, java.lang.String serverClientHandle)
          Create new custom OPC client
 
Method Summary
static void coInitialize()
          COM objects initialize (must be call first in program!)
 void connect()
          Connect to OPC Server
static void coUninitialize()
          COM objects uninitialize (can be call on program exit)
 java.lang.String getFullOpcServerName()
          Return Description of OPC Server
 java.lang.String getHost()
          Get host server
 java.lang.String getServerClientHandle()
          Get user client name
 java.lang.String getServerProgID()
          Get OPC Server prog id
 boolean ping()
          Check connection between server and client
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCustomOpc

public JCustomOpc(java.lang.String host,
                  java.lang.String serverProgID,
                  java.lang.String serverClientHandle)
Create new custom OPC client

Parameters:
host - - host computer
serverProgID - - OPC Server name
serverClientHandle - - user name for OPC Client
Method Detail

coUninitialize

public static void coUninitialize()
                           throws CoUninitializeException
COM objects uninitialize (can be call on program exit)

Throws:
CoUninitializeException

coInitialize

public static void coInitialize()
                         throws CoInitializeException
COM objects initialize (must be call first in program!)

Throws:
CoInitializeException

getFullOpcServerName

public java.lang.String getFullOpcServerName()
Return Description of OPC Server

Returns:
String

ping

public boolean ping()
Check connection between server and client

Returns:
server is connected, boolean

connect

public void connect()
             throws ConnectivityException
Connect to OPC Server

Throws:
ConnectivityException

getHost

public java.lang.String getHost()
Get host server

Returns:
host String

getServerClientHandle

public java.lang.String getServerClientHandle()
Get user client name

Returns:
name String

getServerProgID

public java.lang.String getServerProgID()
Get OPC Server prog id

Returns:
id name String