Package io.openems.edge.bridge.mbus.api
Class ChannelRecord
- java.lang.Object
-
- io.openems.edge.bridge.mbus.api.ChannelRecord
-
public class ChannelRecord extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChannelRecord.DataType
-
Field Summary
Fields Modifier and Type Field Description ChannelRecord.DataType
dataType
-
Constructor Summary
Constructors Constructor Description ChannelRecord(Channel<?> channel, int dataRecordPosition)
In this case you will request usage data.ChannelRecord(Channel<?> channel, ChannelRecord.DataType dataType)
In this case you will request secondary address values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Channel<?>
getChannel()
int
getDataRecordPosition()
ChannelRecord.DataType
getDataType()
void
setChannelId(Channel<?> channel)
void
setDataRecordPosition(int dataRecordPosition)
-
-
-
Field Detail
-
dataType
public ChannelRecord.DataType dataType
-
-
Constructor Detail
-
ChannelRecord
public ChannelRecord(Channel<?> channel, ChannelRecord.DataType dataType)
In this case you will request secondary address values. eg. manufacturer, device id or meter type.- Parameters:
channel
- the ChanneldataType
- the dataType
-
ChannelRecord
public ChannelRecord(Channel<?> channel, int dataRecordPosition)
In this case you will request usage data.- Parameters:
channel
- the ChanneldataRecordPosition
- the dataRecordPosition
-
-
Method Detail
-
getChannel
public Channel<?> getChannel()
-
setChannelId
public void setChannelId(Channel<?> channel)
-
getDataRecordPosition
public int getDataRecordPosition()
-
setDataRecordPosition
public void setDataRecordPosition(int dataRecordPosition)
-
getDataType
public ChannelRecord.DataType getDataType()
-
-