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
-
Method Summary
Modifier and TypeMethodDescriptionGetter forinAddress
.Getter forpacketOutAddress
.Getter forparserInAddress
.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.void
void
Methods inherited from class io.vertx.core.AbstractVerticle
config, deploymentID, getVertx, init, processArgs, start, stop
-
Constructor Details
-
Validator
Creates a newValidator
with the given information.- Parameters:
inAddress
-inAddress
packetOutAddress
-packetOutAddress
parserInAddress
-parserInAddress
-
-
Method Details
-
start
- Specified by:
start
in interfaceio.vertx.core.Verticle
- Overrides:
start
in classio.vertx.core.AbstractVerticle
-
stop
- Specified by:
stop
in interfaceio.vertx.core.Verticle
- Overrides:
stop
in 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
-