org.flexiblepower.ral
public interface ResourceManager extends org.flexiblepower.messaging.Endpoint
ResourceManager is responsible to translating the current state of an appliance (as received from a
ResourceDriver) to ResourceMessages to translate the Allocations to actions that are
performed on the ResourceDriver. The ResourceDriver is dynamically connected to the
ResourceManager in OSGi, using the messaging framework in FPAI. For this it is expected for each
ResourceManager to define 2 ports: 1 for the link to the controller and 1 for the link to the driver. It is
also possible for the ResourceManager to be connected to several drivers (e.g. for a heatbuffer and an
actuator when they are connected separately).
Any ResourceManager is an Endpoint and should have (at least) 1 port, called "controller" to connect
to a ControllerManager.