java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.Connection

@Immutable public final class Connection extends Object
Describes a connection by its chip and hostname.
  • Constructor Details

    • Connection

      public Connection(HasChipLocation chip, String hostname)
      Create.
      Parameters:
      chip - the chip
      hostname - the host
  • Method Details

    • getChip

      public ChipLocation getChip()
      Returns:
      The chip for the connection.
    • getHostname

      public String getHostname()
      Returns:
      Where to connect to to talk to the chip.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object