Class Monitor
java.lang.Object
uk.ac.manchester.spinnaker.front_end.download.request.Monitor
- All Implemented Interfaces:
HasChipLocation
,HasCoreLocation
public class Monitor extends Object implements HasCoreLocation
Extra monitor core information.
- Author:
- Christian-B, Alan Stokes
-
Method Summary
Modifier and Type Method Description int
getP()
List<Placement>
getPlacements()
int
getTransactionId()
int
getX()
int
getY()
String
toString()
void
updateTransactionId()
Updates the transaction ID by 1 and wraps with the cap.void
updateTransactionIdFromMachine(TransceiverInterface txrx)
gets the transaction id from the machine and updates.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
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.
-
updateTransactionId
public void updateTransactionId()Updates the transaction ID by 1 and wraps with the cap. -
getTransactionId
public int getTransactionId()- Returns:
- The current transaction ID.
-
updateTransactionIdFromMachine
public void updateTransactionIdFromMachine(TransceiverInterface txrx) throws IOException, ProcessException, InterruptedExceptiongets the transaction id from the machine and updates.- Parameters:
txrx
- the spinnman instance.- Throws:
ProcessException
- If SpiNNaker rejects a message.IOException
- If anything goes wrong with networking.InterruptedException
- If communications are interrupted.
-
getPlacements
- Returns:
- the placements (read-only)
-
toString
-