Class AbstractDataLink
java.lang.Object
uk.ac.manchester.spinnaker.machine.datalinks.AbstractDataLink
- All Implemented Interfaces:
HasChipLocation
- Direct Known Subclasses:
FPGALinkData
,SpinnakerLinkData
Abstract Root of all Data Links.
- Author:
- Christian-B
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal InetAddress
IP address of the data link on the board.final Direction
Direction/ID for this link.final @Valid ChipLocation
Coordinates of the location/chip being linked to. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.manchester.spinnaker.machine.HasChipLocation
getScampCore, onSameChipAs
-
Field Details
-
boardAddress
IP address of the data link on the board. -
location
Coordinates of the location/chip being linked to. -
direction
Direction/ID for this link.
-
-
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.
-
asChipLocation
Description copied from interface:HasChipLocation
Converts (if required) this to a simple X, Y tuple.- Specified by:
asChipLocation
in interfaceHasChipLocation
- Returns:
- A ChipLocation representation of the X and Y tuple
-
hashCode
public abstract int hashCode() -
equals
-