Class AbstractDataLink
java.lang.Object
uk.ac.manchester.spinnaker.machine.datalinks.AbstractDataLink
- All Implemented Interfaces:
HasChipLocation
- Direct Known Subclasses:
FPGALinkData
,SpinnakerLinkData
@Immutable public abstract class AbstractDataLink extends Object implements HasChipLocation
Abstract Root of all Data Links.
- Author:
- Christian-B
-
Field Summary
Fields Modifier and Type Field Description InetAddress
boardAddress
IP address of the data link on the board.Direction
direction
Direction/ID for this link.@Valid ChipLocation
location
Coordinates of the location/chip being linked to. -
Method Summary
Modifier and Type Method Description ChipLocation
asChipLocation()
Converts (if required) this to a simple X, Y tuple.abstract boolean
equals(Object obj)
int
getX()
int
getY()
abstract int
hashCode()
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
-