Package com.rcll.robot
Class RobotHandler
- java.lang.Object
-
- com.rcll.robot.RobotHandler
-
- All Implemented Interfaces:
java.lang.Runnable
public class RobotHandler extends java.lang.Object implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description RobotHandler(RobotConnections robotConnections, IRobotMessageThreadFactory factory, java.util.function.Consumer<java.lang.Integer> robotAddedHandler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleangetBool(java.nio.ByteBuffer data)static java.lang.StringgetString(java.nio.ByteBuffer data, int length)static intgetUnsignedInt16(java.nio.ByteBuffer data)static intgetUnsignedInt16_BE(java.nio.ByteBuffer data)static longgetUnsignedInt32(java.nio.ByteBuffer data)static longgetUnsignedInt32_BE(java.nio.ByteBuffer data)static shortgetUnsignedInt8(java.nio.ByteBuffer data)static voidputBool(java.nio.ByteBuffer data, boolean b)voidrun()voidset_socket(java.net.Socket _socket)
-
-
-
Constructor Detail
-
RobotHandler
public RobotHandler(RobotConnections robotConnections, IRobotMessageThreadFactory factory, java.util.function.Consumer<java.lang.Integer> robotAddedHandler)
-
-
Method Detail
-
set_socket
public void set_socket(java.net.Socket _socket)
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
getUnsignedInt8
public static short getUnsignedInt8(java.nio.ByteBuffer data)
-
getUnsignedInt16
public static int getUnsignedInt16(java.nio.ByteBuffer data)
-
getUnsignedInt16_BE
public static int getUnsignedInt16_BE(java.nio.ByteBuffer data)
-
getUnsignedInt32
public static long getUnsignedInt32(java.nio.ByteBuffer data)
-
getUnsignedInt32_BE
public static long getUnsignedInt32_BE(java.nio.ByteBuffer data)
-
getString
public static java.lang.String getString(java.nio.ByteBuffer data, int length)
-
getBool
public static boolean getBool(java.nio.ByteBuffer data)
-
putBool
public static void putBool(java.nio.ByteBuffer data, boolean b)
-
-