Class BMPConnectionData
java.lang.Object
uk.ac.manchester.spinnaker.messages.model.BMPConnectionData
public class BMPConnectionData extends Object
Contains the details of a connection to a SpiNNaker Board Management
Processor (BMP).
-
Field Summary
Fields Modifier and Type Field Description @Valid BMPCoords
bmp
The coordinates of the BMP that manages a set of boards.Collection<@Valid BMPBoard>
boards
The boards to be addressed.@IPAddress InetAddress
ipAddress
The IP address of the BMP.@UDPPort Integer
portNumber
The port number associated with the BMP connection, ornull
for the default. -
Constructor Summary
Constructors Constructor Description BMPConnectionData(int cabinet, int frame, InetAddress ipAddress, Collection<Integer> boards, Integer portNumber)
BMPConnectionData(InetAddress host, int numBoards)
Work out the BMP connection IP address given the machine details.BMPConnectionData(BMPCoords coords, InetAddress ipAddress, Collection<Integer> boards, Integer portNumber)
-
Method Summary
-
Field Details
-
boards
The boards to be addressed. Unmodifiable. -
bmp
The coordinates of the BMP that manages a set of boards. -
ipAddress
The IP address of the BMP. -
portNumber
The port number associated with the BMP connection, ornull
for the default.
-
-
Constructor Details
-
BMPConnectionData
public BMPConnectionData(int cabinet, int frame, InetAddress ipAddress, Collection<Integer> boards, Integer portNumber)- Parameters:
cabinet
- The number of the cabinet containing the frame.frame
- The number of the frame containing the boards.ipAddress
- The address of the BMP.boards
- The boards controlled by the BMP.portNumber
- The BMP's port.
-
BMPConnectionData
public BMPConnectionData(BMPCoords coords, InetAddress ipAddress, Collection<Integer> boards, Integer portNumber)- Parameters:
coords
- The coordinates of the BMP.ipAddress
- The address of the BMP.boards
- The boards controlled by the BMP.portNumber
- The BMP's port.
-
BMPConnectionData
Work out the BMP connection IP address given the machine details. This is assumed to be the IP address of the machine, with 1 subtracted from the final part e.g. if the machine IP address is192.168.0.5
, the BMP IP address is assumed to be192.168.0.4
.This algorithm is rather hokey. Far better for the user to simply know where the BMP actually is (this is necessary in any large deployment anyway).
- Parameters:
host
- the SpiNNaker machine main hostnumBoards
- the number of boards in the machine- Throws:
UnknownHostException
- If the IP address computations failIllegalArgumentException
- If a host with an address that can't be related to a BMP is given. Specifically, the given IP address can't end in.0
or.1
or things will not work.
-
-
Method Details