Interface TransceiverFactoryAPI<T extends BMPTransceiverInterface>
- Type Parameters:
T
- The actual type of transceiver produced.
- All Known Implementing Classes:
TransceiverFactory
public interface TransceiverFactoryAPI<T extends 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.
- Author:
- Donal Fellows
-
Method Summary
Modifier and Type Method Description T
getTransciever(SpallocAPI.Machine machineDescription, BMPCoords bmp)
Get the transceiver for talking to a given machine's BMPs.
-
Method Details
-
getTransciever
T getTransciever(SpallocAPI.Machine machineDescription, BMPCoords bmp) throws IOException, SpinnmanException, InterruptedExceptionGet the transceiver for talking to a given machine's BMPs.- 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.
-