Class KeyDataElement
java.lang.Object
uk.ac.manchester.spinnaker.messages.eieio.KeyDataElement
- All Implemented Interfaces:
AbstractDataElement
public class KeyDataElement extends Object implements AbstractDataElement
A data element that contains just a key.
-
Constructor Summary
Constructors Constructor Description KeyDataElement(int key)
Create a data element. -
Method Summary
Modifier and Type Method Description void
addToBuffer(ByteBuffer buffer, EIEIOType eieioType)
Writes this message chunk into the given buffer.
-
Constructor Details
-
KeyDataElement
public KeyDataElement(int key)Create a data element.- Parameters:
key
- The key in the element.
-
-
Method Details
-
addToBuffer
Description copied from interface:AbstractDataElement
Writes this message chunk into the given buffer. This is so that a message can be sent.- Specified by:
addToBuffer
in interfaceAbstractDataElement
- Parameters:
buffer
- The buffer to write into.eieioType
- The type of message this is being written into.
-