This interface describes a driver used to access the value of the Tags.
The case when the way to send the tags' values is different than the one to read
the values has been taken into account (setReadHost and setWriteHost,...).
If the driver works in a pooling way (or if it has been set to pooling via setType
for example, then a call to enable() will launch the pooling mechanism
(if pooling_interval is set to a value different from -1).
In that case, the driver must know about the TagArrays where to send the data.
DataServer may be used without TagArrays: the following methods can be used without
setting TagArrays:
public void write(String name, String stringValue);
public String read(String name);
Each instance of the driver is named using a "Process Name". So the user may
indicates
to which process corresponds a Tag.
The config which is returned by toString and that can be sent to setConfig has the
following format:
ProcessName;Protocol;Type;ReadHost;ReadPort;WriteHost;WritePort;PoolFrequency;subscriptionMode[;param1=val1[;...]]
ex: String;Socket;OnChange;myHost;3000;;;-1;true
public abstract void setReadHost(String host)
public abstract String getReadHost()
public abstract void setReadPort(int communicationReadPort)
public abstract int getReadPort()
public abstract void setWriteHost(String host)
public abstract String getWriteHost()
public abstract void setWritePort(int communicationWritePort)
public abstract int getWritePort()
public abstract void setPoolingInterval(long poolingInterval)
public abstract long getPoolingInterval()
public abstract void setType(String communication_type)
public abstract String getType()
public abstract void setMask(boolean mask)
public abstract boolean getMask()
public abstract void setUser(String user)
public abstract void setPassword(String password)
public abstract String getUser()
public abstract String getPassword()
public abstract void setTagArrays(TagArrays tc)
public abstract void setParameter(String parameter, String value)
public abstract String getParameter(String parameter)
public abstract void setTagsSubscription(boolean subMode)
public abstract boolean getTagsSubscription()
public abstract void setProcessName(String processName)
public abstract String getProcessName()
public abstract void setConfig(String config)
public abstract String toString()
public abstract void enable()
public abstract void disable()
public abstract boolean isActive()
public abstract void write(String name, String stringValue)
public abstract String read(String name)
public abstract boolean read(Vector names)
public abstract void closeConnection()
public abstract String getDriverProtocol()
public abstract Vector getPossibleProtocols()
public abstract boolean doYouImplement(String protocol)
public abstract void addAlarmListener(AlarmListener listener)
public abstract void removeAlarmListener(AlarmListener listener)