Interface GenDeviceApi4Messaging
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,GenDeviceApi
- All Known Implementing Classes:
SGrMessagingDevice
public interface GenDeviceApi4Messaging extends GenDeviceApi, java.io.Closeable
Defines the interface of a message-based device communication interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValuegetVal(java.lang.String profileName, java.lang.String dataPointName, long timeoutMs)Gets a value from the device by readingValuegetVal(java.lang.String profileName, java.lang.String dataPointName, java.util.Properties parameters, long timeoutMs)Gets a value from the device by reading-
Methods inherited from interface com.smartgridready.communicator.common.api.GenDeviceApi
canSubscribe, connect, disconnect, getDataPoint, getDataPoints, getDeviceConfigurationInfo, getDeviceInfo, getFunctionalProfile, getFunctionalProfiles, getVal, getVal, getValues, isConnected, setVal, subscribe, unsubscribe
-
-
-
-
Method Detail
-
getVal
Value getVal(java.lang.String profileName, java.lang.String dataPointName, long timeoutMs) throws com.smartgridready.driver.api.common.GenDriverException
Gets a value from the device by reading- Parameters:
profileName- The functional profile namedataPointName- The data point nametimeoutMs- The read timeout in milliseconds- Returns:
- The value received from the device
- Throws:
com.smartgridready.driver.api.common.GenDriverException- if an error occurs
-
getVal
Value getVal(java.lang.String profileName, java.lang.String dataPointName, java.util.Properties parameters, long timeoutMs) throws com.smartgridready.driver.api.common.GenDriverException
Gets a value from the device by reading- Parameters:
profileName- The functional profile namedataPointName- The data point nameparameters- The request-specific parameterstimeoutMs- The read timeout in milliseconds- Returns:
- The value received from the device
- Throws:
com.smartgridready.driver.api.common.GenDriverException- if an error occurs
-
-