Interface hmiCommunicationInterface

public interface hmiCommunicationInterface
Definition of an interface that lets the hmiViewer talk to a server. There can be different plug ins which implement this interface in order to communicate to different servers.


Method Index

 o destroy()
Close connection on applet destroy().
 o getAlarmMessages(String, Vector)
Get the alarm messages from a variable range given in alarmRange.
 o getHostError()
Return 0 if connection ok.
 o getTrendData(String, String, Vector, int)
Get pairs of time and value for trend diagrams.
 o getValTab()
Fetch values.
 o init(hmiList2)
Basic initialization before owner got variable names from applet parameters.
 o init2()
Second initialization step forming requests for variables the widgets need.
 o open()
Establish a connection.
 o putVal(String, double)
Set variable indentified by k to value v.
 o stop()
Close connection on applet stop()
 o tPutVal(String)
This is special for pushbuttons: The variable indentified by k is first set to 1, then to 0 again.

Methods

 o putVal
 public abstract void putVal(String k,
                             double v)
Set variable indentified by k to value v.

 o tPutVal
 public abstract void tPutVal(String k)
This is special for pushbuttons: The variable indentified by k is first set to 1, then to 0 again. With visual, the server puts a 1 into the spreadsheet and the rest is handled by the plc driver module. Other directly communicating interfaces might implement this sending a 1 first and a 0 half second after.

 o init
 public abstract void init(hmiList2 owner)
Basic initialization before owner got variable names from applet parameters.

 o open
 public abstract void open()
Establish a connection. Also used to reestablish a broken one.

 o init2
 public abstract void init2()
Second initialization step forming requests for variables the widgets need.

 o getValTab
 public abstract void getValTab()
Fetch values. Trigggers communication and may or may not wait for results, depending on type of communication.

 o destroy
 public abstract void destroy()
Close connection on applet destroy().

 o stop
 public abstract void stop()
Close connection on applet stop()

 o getHostError
 public abstract int getHostError()
Return 0 if connection ok. If the result is >=10 the applet will use open() to reconnect.

 o getTrendData
 public abstract String getTrendData(String k,
                                     String last,
                                     Vector timeValuePairs,
                                     int maxLen)
Get pairs of time and value for trend diagrams. Return the last time stamp as a String. The return value is used for parameter last in the next call. The first call should use "0". The behaviour is to get all trend data kept by the server in the first call and only newer data in subsequent calls. If the number of entries exceeds maxInt, oldest entries are removed.

 o getAlarmMessages
 public abstract void getAlarmMessages(String alarmRange,
                                       Vector messages)
Get the alarm messages from a variable range given in alarmRange. Not yet implemented in any CI.