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
    Constructor
    Description
    Validator​(String inAddress, String packetOutAddress, String parserInAddress)
    Creates a new Validator with the given information.
  • Method Summary

    Modifier and Type
    Method
    Description
    Getter for inAddress.
    Getter for packetOutAddress.
    Getter for parserInAddress.
    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
    start​(io.vertx.core.Promise<Void> startPromise)
     
    void
    stop​(io.vertx.core.Promise<Void> stopPromise)
     

    Methods inherited from class io.vertx.core.AbstractVerticle

    config, deploymentID, getVertx, init, processArgs, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Validator

      public Validator(String inAddress, String packetOutAddress, String parserInAddress)
      Creates a new Validator with the given information.
      Parameters:
      inAddress - inAddress
      packetOutAddress - packetOutAddress
      parserInAddress - parserInAddress
  • Method Details

    • start

      public void start(io.vertx.core.Promise<Void> startPromise)
      Specified by:
      start in interface io.vertx.core.Verticle
      Overrides:
      start in class io.vertx.core.AbstractVerticle
    • stop

      public void stop(io.vertx.core.Promise<Void> stopPromise)
      Specified by:
      stop in interface io.vertx.core.Verticle
      Overrides:
      stop in class io.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

      public String getInAddress()
      Getter for inAddress.
      Returns:
      inAddress
    • getPacketOutAddress

      public String getPacketOutAddress()
      Getter for packetOutAddress.
      Returns:
      packetOutAddress
    • getParserInAddress

      public String getParserInAddress()
      Getter for parserInAddress.
      Returns:
      parserInAddress