Class RouterTimeout
java.lang.Object
uk.ac.manchester.spinnaker.messages.model.RouterTimeout
public final class RouterTimeout extends Object
A router timeout, originally stored as an 8-bit unsigned float.
- Author:
- Donal Fellows
-
Field Summary
Fields Modifier and Type Field Description int
exponent
The exponent of the timeout.static RouterTimeout
INF
An infinite timeout.int
mantissa
The mantissa of the timeout. -
Constructor Summary
Constructors Constructor Description RouterTimeout(int mantissa, int exponent)
-
Method Summary
-
Field Details
-
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