Class EIEIOMessageFactory

java.lang.Object
uk.ac.manchester.spinnaker.messages.eieio.EIEIOMessageFactory

public abstract class EIEIOMessageFactory
extends Object
Main interface for deserialising a message.
Author:
Donal Fellows
  • Method Details

    • readCommandMessage

      public static EIEIOCommandMessage readCommandMessage​(ByteBuffer data)
      Reads the content of an EIEIO command message and returns an object identifying the command which was contained in the packet, including any parameter, if required by the command.
      Parameters:
      data - data received from the network
      Returns:
      an object which inherits from EIEIOCommandMessage which contains parsed data received from the network
    • readDataMessage

      public static EIEIODataMessage readDataMessage​(ByteBuffer data)
      Reads the content of an EIEIO data message and returns an object identifying the data which was contained in the packet.
      Parameters:
      data - data received from the network
      Returns:
      an object which inherits from EIEIODataMessage which contains parsed data received from the network