Class ReadHandler

  • All Implemented Interfaces:
    java.util.function.Consumer<java.lang.String>

    public class ReadHandler
    extends java.lang.Object
    implements java.util.function.Consumer<java.lang.String>
    Handles replies to Report Queries sent by ReadWorker.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(java.lang.String message)  
      boolean hasResultandReset​(Report report)
      returns true or false, if the requested report answered or not and set that value to false.
      java.lang.String hexStringToBinaryString​(java.lang.String dipSwitches)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

    • Method Detail

      • accept

        public void accept​(java.lang.String message)
        Specified by:
        accept in interface java.util.function.Consumer<java.lang.String>
      • hexStringToBinaryString

        public java.lang.String hexStringToBinaryString​(java.lang.String dipSwitches)
      • hasResultandReset

        public boolean hasResultandReset​(Report report)
        returns true or false, if the requested report answered or not and set that value to false.
        Parameters:
        report - requested Report
        Returns:
        boolean