Class DataReceiver
java.lang.Object
uk.ac.manchester.spinnaker.front_end.BoardLocalSupport
uk.ac.manchester.spinnaker.front_end.download.DataReceiver
public class DataReceiver extends BoardLocalSupport
Stripped down version of the BufferManager for early testing.
- Author:
- Christian-B
- See Also:
- Python Version
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.manchester.spinnaker.front_end.BoardLocalSupport
BoardLocalSupport.BoardLocal
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DataReceiver(TransceiverInterface tranceiver, Machine machine, BufferManagerStorage storage)
Creates a new mini Buffer Manager. -
Method Summary
Modifier and Type Method Description void
getDataForPlacements(List<Placement> placements)
Gets the data for a list of placements.void
getDataForPlacementsParallel(List<Placement> placements, int parallelFactor)
Gets the data for a list of placements in parallel.
-
Constructor Details
-
DataReceiver
public DataReceiver(TransceiverInterface tranceiver, Machine machine, BufferManagerStorage storage)Creates a new mini Buffer Manager.- Parameters:
tranceiver
- Transceiver to get data via.machine
- The SpiNNaker system to get the data from.storage
- How to talk to the database.
-
-
Method Details
-
getDataForPlacementsParallel
public void getDataForPlacementsParallel(List<Placement> placements, int parallelFactor) throws IOException, StorageException, ProcessException, InterruptedExceptionGets the data for a list of placements in parallel.- Parameters:
placements
- List of placements.parallelFactor
- Number of threads to use.- Throws:
IOException
- if communications failProcessException
- if SpiNNaker rejects a messageStorageException
- if database access failsInterruptedException
- If communications are interrupted.
-
getDataForPlacements
public void getDataForPlacements(List<Placement> placements) throws IOException, StorageException, ProcessException, InterruptedExceptionGets the data for a list of placements.Note: This method is subject to change as best way to pass in placement data is determined.
- Parameters:
placements
- List of placements.- Throws:
IOException
- if communications failProcessException
- if SpiNNaker rejects a messageStorageException
- if database access failsInterruptedException
- If communications are interrupted.
-