Package net.solarnetwork.node.service
Interface NodeControlProvider
- All Superinterfaces:
net.solarnetwork.service.Identifiable
public interface NodeControlProvider
extends net.solarnetwork.service.Identifiable
API for control providers to implement.
For many control providers that implement a single control, the
Identifiable.getUid() will return the control ID of that
control.- Version:
- 2.0
- Author:
- matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAnEventtopic for when aNodeControlInfohas been read, sampled, or in some way captured by aNodeControlProvider.static final StringAnEventtopic for when aNodeControlInfohas in some way been changed.Fields inherited from interface net.solarnetwork.service.Identifiable
GROUP_UID_PROPERTY, UID_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionGet a list of available controls this provider supports.net.solarnetwork.domain.NodeControlInfogetCurrentControlInfo(String controlId) Get the current instantaneous component value for the given component ID.Methods inherited from interface net.solarnetwork.service.Identifiable
getDisplayName, getGroupUid, getUid
-
Field Details
-
EVENT_TOPIC_CONTROL_INFO_CAPTURED
AnEventtopic for when aNodeControlInfohas been read, sampled, or in some way captured by aNodeControlProvider. If theNodeControlInfoalso implementsNodeDatumthen theDatumEvents.DATUM_PROPERTYevent property will be populated with the instance. Otherwise, the properties of the event shall be any of the JavaBean properties of the NodeControlInfo supported by events (i.e. any simple Java property such as numbers and strings) with enum values provided as strings.- Since:
- 1.2
- See Also:
-
EVENT_TOPIC_CONTROL_INFO_CHANGED
AnEventtopic for when aNodeControlInfohas in some way been changed. If theNodeControlInfoalso implementsNodeDatumthen theDatumEvents.DATUM_PROPERTYevent property will be populated with the instance. Otherwise, the properties of the event shall be any of the JavaBean properties of the NodeControlInfo supported by events (i.e. any simple Java property such as numbers and strings) with enum values provided as strings.- Since:
- 1.3
- See Also:
-
-
Method Details
-
getAvailableControlIds
Get a list of available controls this provider supports.- Returns:
- the components
-
getCurrentControlInfo
Get the current instantaneous component value for the given component ID.- Parameters:
controlId- the ID of the control to get the info for- Returns:
- the current value
-