Class RouterTimeout
java.lang.Object
uk.ac.manchester.spinnaker.messages.model.RouterTimeout
A router timeout, originally stored as an 8-bit unsigned float.
- Author:
- Donal Fellows
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
The exponent of the timeout.static final RouterTimeout
An infinite timeout.final int
The mantissa of the timeout. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INF
An infinite timeout. -
mantissa
public final int mantissaThe mantissa of the timeout. -
exponent
public final int exponentThe exponent of the timeout.
-
-
Constructor Details
-
RouterTimeout
public RouterTimeout(int mantissa, int exponent) - Parameters:
mantissa
- The mantissa of the value; only low 4 bits used.exponent
- The exponent of the value; only low 4 bits used.
-
-
Method Details