public abstract class OpenemsTypeDoc<T> extends AbstractDoc<T>
Modifier | Constructor and Description |
---|---|
protected |
OpenemsTypeDoc(OpenemsType type) |
Modifier and Type | Method and Description |
---|---|
OpenemsTypeDoc<T> |
accessMode(AccessMode accessMode)
Sets the Access-Mode for the Channel.
|
ChannelCategory |
getChannelCategory()
Gets the
ChannelCategory of the Channel of this Doc. |
Unit |
getUnit()
Gets the Unit.
|
static OpenemsTypeDoc<?> |
of(OpenemsType type)
Create a Channel-Doc with a specific OpenemsType.
|
OpenemsTypeDoc<T> |
unit(Unit unit)
Unit.
|
createChannelInstance, debug, getAccessMode, getInitialValue, getOnInitCallbacks, getText, getType, initialValue, isDebug, onInit, self, text
protected OpenemsTypeDoc(OpenemsType type)
public static OpenemsTypeDoc<?> of(OpenemsType type)
Doc
use like this:
Doc.of(OpenemsType.INTEGER)
type
- the OpenemsTypeOpenemsTypeDoc
public ChannelCategory getChannelCategory()
Doc
ChannelCategory
of the Channel of this Doc.public OpenemsTypeDoc<T> accessMode(AccessMode accessMode)
This is validated on construction of the Channel by
AbstractReadChannel
accessMode
in class AbstractDoc<T>
public OpenemsTypeDoc<T> unit(Unit unit)
unit
- the Unit