Class LinkBean
java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.LinkBean
public class LinkBean extends Object
A link between two chips. At this point
of the JSON model, the chip coordinates of the source are implicit.
- Author:
- Christian-B
-
Field Summary
Fields Modifier and Type Field Description @Valid ChipLocation
destination
Where the link is going.@NotNull Direction
sourceDirection
What direction the link is going in. -
Constructor Summary
Constructors Constructor Description LinkBean(int sourceLinkId, int destinationX, int destinationY)
Make an instance. -
Method Summary
-
Field Details
-
destination
Where the link is going. -
sourceDirection
What direction the link is going in.
-
-
Constructor Details
-
LinkBean
public LinkBean(int sourceLinkId, int destinationX, int destinationY)Make an instance.- Parameters:
sourceLinkId
- What is the direction of the link?destinationX
- Where is the link going to? X coordinate.destinationY
- Where is the link going to? Y coordinate.
-