Class Monitor
java.lang.Object
uk.ac.manchester.spinnaker.front_end.download.request.Monitor
- All Implemented Interfaces:
uk.ac.manchester.spinnaker.machine.HasChipLocation
,uk.ac.manchester.spinnaker.machine.HasCoreLocation
public class Monitor extends Object implements uk.ac.manchester.spinnaker.machine.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
-
Method Details
-
getX
public int getX()- Specified by:
getX
in interfaceuk.ac.manchester.spinnaker.machine.HasChipLocation
-
getY
public int getY()- Specified by:
getY
in interfaceuk.ac.manchester.spinnaker.machine.HasChipLocation
-
getP
public int getP()- Specified by:
getP
in interfaceuk.ac.manchester.spinnaker.machine.HasCoreLocation
-
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
-