Class Validator
java.lang.Object
io.vertx.core.AbstractVerticle
de.wuespace.telestion.extension.mavlink.Validator
- All Implemented Interfaces:
io.vertx.core.Verticle
public abstract class Validator
extends io.vertx.core.AbstractVerticle
-
Field Summary
Fields inherited from class io.vertx.core.AbstractVerticle
context, vertx -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter forinAddress.Getter forpacketOutAddress.Getter forparserInAddress.protected abstract voidhandleMessage(io.vertx.core.eventbus.Message<?> msg)Each Mavlink-Validator must be able to handle incoming messages to separate the payload from its header.voidvoidMethods inherited from class io.vertx.core.AbstractVerticle
config, deploymentID, getVertx, init, processArgs, start, stop
-
Constructor Details
-
Validator
Creates a newValidatorwith the given information.- Parameters:
inAddress-inAddresspacketOutAddress-packetOutAddressparserInAddress-parserInAddress
-
-
Method Details
-
start
- Specified by:
startin interfaceio.vertx.core.Verticle- Overrides:
startin classio.vertx.core.AbstractVerticle
-
stop
- Specified by:
stopin interfaceio.vertx.core.Verticle- Overrides:
stopin classio.vertx.core.AbstractVerticle
-
handleMessage
protected abstract void handleMessage(io.vertx.core.eventbus.Message<?> msg)Each Mavlink-Validator must be able to handle incoming messages to separate the payload from its header.
It must be noted though that the incoming messages are not checked for validation and might not be Mavlink-packages in the first place.
- Parameters:
msg- raw message which is unchecked
-
getInAddress
Getter forinAddress.- Returns:
inAddress
-
getPacketOutAddress
Getter forpacketOutAddress.- Returns:
packetOutAddress
-
getParserInAddress
Getter forparserInAddress.- Returns:
parserInAddress
-