public interface ResourceDriver extends org.flexiblepower.messaging.Endpoint
ResourceDriveris 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
ResourceDrivershould be an
Endpointwith a single port with the name "manager". The specific port definition should be on the specific driver specification.