Class ProgramsProcessor
java.lang.Object
org.openremote.agent.protocol.velbus.device.FeatureProcessor
org.openremote.agent.protocol.velbus.device.ChannelProcessor
org.openremote.agent.protocol.velbus.device.ProgramsProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openremote.agent.protocol.velbus.device.FeatureProcessor
FeatureProcessor.LedState, FeatureProcessor.PropertyDescriptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final List<FeatureProcessor.PropertyDescriptor>
Fields inherited from class org.openremote.agent.protocol.velbus.device.ChannelProcessor
CHANNEL_REGEX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Integer
getAlarmMemoryLocation
(int alarmNumber, VelbusDeviceType deviceType) protected static List<VelbusPacket>
getProgramStepsPackets
(VelbusDevice device, int channelNumber, boolean enabled, int durationSeconds) getPropertyDescriptors
(VelbusDeviceType deviceType) getPropertyWritePackets
(VelbusDevice device, String property, Object value) Asks the processor to generate the packets required to write the requested value to this property.getStatusRequestPackets
(VelbusDevice device) Get the packets that need to be sent to the device to get the state data of this feature's propertiesboolean
processReceivedPacket
(VelbusDevice device, VelbusPacket packet) Allows this feature processor to handle the inbound packet.Methods inherited from class org.openremote.agent.protocol.velbus.device.ChannelProcessor
getAddressForChannel, getChannelNumberAndPropertySuffix, getMaxChannelNumber, getStartChannelNumber, isChannelEnabled
-
Field Details
-
PROGRAM_STEPS_ENABLED_SUFFIX
- See Also:
-
PROGRAM_STEPS_DISABLED_SECONDS_SUFFIX
- See Also:
-
STATIC_PROPERTIES
-
-
Constructor Details
-
ProgramsProcessor
public ProgramsProcessor()
-
-
Method Details
-
getPropertyDescriptors
public List<FeatureProcessor.PropertyDescriptor> getPropertyDescriptors(VelbusDeviceType deviceType) - Specified by:
getPropertyDescriptors
in classFeatureProcessor
-
getStatusRequestPackets
Description copied from class:FeatureProcessor
Get the packets that need to be sent to the device to get the state data of this feature's properties- Overrides:
getStatusRequestPackets
in classFeatureProcessor
-
getPropertyWritePackets
public List<VelbusPacket> getPropertyWritePackets(VelbusDevice device, String property, Object value) Description copied from class:FeatureProcessor
Asks the processor to generate the packets required to write the requested value to this property.Once a processor returns a non null value then no other processors will be asked to handle the write
- Specified by:
getPropertyWritePackets
in classFeatureProcessor
-
processReceivedPacket
Description copied from class:FeatureProcessor
Allows this feature processor to handle the inbound packet. If a processor handles a packet then it should set the packetsVelbusPacket.isHandled()
flag.The processor can prevent other processors from processing the packet by returning true (processors should only do this if they are certain no other processor is interested in the packet).
- Specified by:
processReceivedPacket
in classFeatureProcessor
- Returns:
- whether or not to allow other processors to process the packet.
-
getProgramStepsPackets
protected static List<VelbusPacket> getProgramStepsPackets(VelbusDevice device, int channelNumber, boolean enabled, int durationSeconds) -
getAlarmMemoryLocation
-