javafish.clients.opc
Class JEasyOpc

java.lang.Object
  extended by javafish.clients.opc.JCustomOpc
      extended by javafish.clients.opc.JOpc
          extended by javafish.clients.opc.JEasyOpc
All Implemented Interfaces:
java.lang.Runnable

public class JEasyOpc
extends JOpc

Easy implementation of JCustomOPC client

NOTE: Usage of Asynch 2.0 mode (Callback interface)


Constructor Summary
JEasyOpc(java.lang.String host, java.lang.String serverProgID, java.lang.String serverClientHandle)
          Create new JEasyOpc client
 
Method Summary
 boolean isRunning()
          Asynch thread of client is active
 void run()
           
 void terminate()
          Stop OPC Client thread
 
Methods inherited from class javafish.clients.opc.JOpc
addGroup, asynch10Read, asynch10Unadvise, asynch20Read, asynch20Unadvise, getDownloadGroup, getGroupByClientHandle, getGroupsAsArray, getNewGroupClientHandle, registerGroup, registerGroups, registerItem, removeGroup, setGroupActivity, setGroupUpdateTime, setItemActivity, start, synchReadGroup, synchReadItem, synchWriteItem, unregisterGroup, unregisterGroups, unregisterItem, updateGroups
 
Methods inherited from class javafish.clients.opc.JCustomOpc
coInitialize, connect, coUninitialize, getFullOpcServerName, getHost, getServerClientHandle, getServerProgID, ping
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEasyOpc

public JEasyOpc(java.lang.String host,
                java.lang.String serverProgID,
                java.lang.String serverClientHandle)
Create new JEasyOpc client

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

isRunning

public boolean isRunning()
Asynch thread of client is active

Returns:
is running, boolean

terminate

public void terminate()
Stop OPC Client thread


run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class JOpc