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 Details

    • destination

      @Valid public final @Valid ChipLocation destination
      Where the link is going.
    • sourceDirection

      @NotNull public final @NotNull Direction 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.