Class TransceiverFactory
java.lang.Object
uk.ac.manchester.spinnaker.alloc.bmp.TransceiverFactory
- All Implemented Interfaces:
TransceiverFactoryAPI<BMPTransceiverInterface>
@Service("transceiverFactory") public class TransceiverFactory extends Object implements TransceiverFactoryAPI<BMPTransceiverInterface>
Creates transceivers for talking to the BMPs of machines. Note that each
machine only has the one BMP that is talked to, and only ever one transceiver
that is used to do it.
Can support running with a dummy transceiver (but not in production, of
course). Set the spalloc.transceiver.dummy
configuration value to
true
to enable that.
- Author:
- Donal Fellows
-
Constructor Summary
Constructors Constructor Description TransceiverFactory()
-
Method Summary
Modifier and Type Method Description BMPTransceiverInterface
getTransciever(SpallocAPI.Machine machineDescription, BMPCoords bmp)
Get the transceiver for talking to a given machine's BMPs.
-
Constructor Details
-
TransceiverFactory
public TransceiverFactory()
-
-
Method Details
-
getTransciever
public BMPTransceiverInterface getTransciever(SpallocAPI.Machine machineDescription, BMPCoords bmp) throws IOException, SpinnmanException, InterruptedExceptionDescription copied from interface:TransceiverFactoryAPI
Get the transceiver for talking to a given machine's BMPs.- Specified by:
getTransciever
in interfaceTransceiverFactoryAPI<BMPTransceiverInterface>
- Parameters:
machineDescription
- The machine we're talking about.bmp
- Which BMP on the machine are we talking to.- Returns:
- The transceiver. Only operations relating to BMPs are required to be supported.
- Throws:
IOException
- If low-level things go wrong.SpinnmanException
- If the transceiver can't be built.InterruptedException
- If the communications were interrupted.
-