O - the output datatypepublic class MachineCommandInputTranslator<O> extends de.iip_ecosphere.platform.connectors.types.AbstractConnectorInputTypeTranslator<MachineCommand,O>
| Modifier and Type | Class and Description |
|---|---|
static interface |
MachineCommandInputTranslator.InputCustomizer
Customizer of this input translator.
|
| Modifier and Type | Field and Description |
|---|---|
private MachineCommandInputTranslator.InputCustomizer |
customizer |
private Class<? extends O> |
sourceType |
| Constructor and Description |
|---|
MachineCommandInputTranslator(Class<? extends O> sourceType,
MachineCommandInputTranslator.InputCustomizer customizer)
Creates a new machine command input translator.
|
| Modifier and Type | Method and Description |
|---|---|
O |
from(MachineCommand data) |
Class<? extends O> |
getSourceType() |
Class<? extends MachineCommand> |
getTargetType() |
private MachineCommandInputTranslator.InputCustomizer customizer
public MachineCommandInputTranslator(Class<? extends O> sourceType, MachineCommandInputTranslator.InputCustomizer customizer)
sourceType - the source typecustomizer - the input customizer adapting this class to the specifc tpepublic O from(MachineCommand data) throws IOException
IOExceptionpublic Class<? extends MachineCommand> getTargetType()
Copyright © 2022. All rights reserved.