org.flexiblepower.ral
public interface ResourceDriver extends org.flexiblepower.messaging.Endpoint
ResourceDriver
is responsible for translating the raw data as received from the ProtocolDriver into
information that can be used by the ResourceManager
. When implementing a ResourceDriver
, there should
always be a specific interface used that extends this one. For example, you would first define a RefrigeratorDriver
interface that describes the state of the Refrigerator and has a method to enable or disable the superCool
functionality.
The implementation of the ResourceDriver
should be an Endpoint
with a single port with the name
"manager". The specific port definition should be on the specific driver specification.