Class Gather
java.lang.Object
uk.ac.manchester.spinnaker.front_end.download.request.Gather
- All Implemented Interfaces:
HasChipLocation
,HasCoreLocation
public class Gather extends Object implements HasCoreLocation
Data speed up packet gatherer description.
- Author:
- Christian-B, Alan Stokes
-
Field Summary
Fields Modifier and Type Field Description static TypeReference<List<Gather>>
LIST
Type reference for deserializing a list of gatherer descriptions. -
Method Summary
Modifier and Type Method Description IPTag
getIptag()
List<Monitor>
getMonitors()
int
getNextTransactionId()
Sets the transaction ID to a new value and returns that new value.int
getP()
int
getX()
int
getY()
void
updateTransactionIdFromMachine(TransceiverInterface txrx)
sets the transaction id from the machine.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.manchester.spinnaker.machine.HasChipLocation
asChipLocation, getScampCore, onSameChipAs
Methods inherited from interface uk.ac.manchester.spinnaker.machine.HasCoreLocation
asCoreLocation, onSameCoreAs
-
Field Details
-
LIST
Type reference for deserializing a list of gatherer descriptions.
-
-
Method Details
-
getX
public int getX()- Specified by:
getX
in interfaceHasChipLocation
- Returns:
- The X coordinate of the chip.
-
getY
public int getY()- Specified by:
getY
in interfaceHasChipLocation
- Returns:
- The Y coordinate of the chip.
-
getP
public int getP()- Specified by:
getP
in interfaceHasCoreLocation
- Returns:
- The processor coordinate of the core on its chip.
-
getNextTransactionId
public int getNextTransactionId()Sets the transaction ID to a new value and returns that new value.- Returns:
- The new transaction ID.
-
updateTransactionIdFromMachine
public void updateTransactionIdFromMachine(TransceiverInterface txrx) throws IOException, ProcessException, InterruptedExceptionsets the transaction id from the machine.- Parameters:
txrx
- spinnman instance- Throws:
ProcessException
- If SpiNNaker rejects a message.IOException
- If anything goes wrong with networking.InterruptedException
- If communications are interrupted.
-
getIptag
- Returns:
- the iptag
-
getMonitors
- Returns:
- the monitors (read-only)
-