Class ChipDetails
java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.ChipDetails
The details of a
Chip
.- Author:
- Christian-B
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @jakarta.validation.constraints.PositiveOrZero,@jakarta.validation.constraints.Max(18L) int
Total number of working core on this chip.final @Valid ChipLocation
Location of the nearest Ethernet-enabled chip. -
Constructor Summary
ConstructorsConstructorDescriptionChipDetails
(int cores, ChipLocation ethernet, String ipAddress, List<LinkBean> links, List<Integer> deadLinks) Make an instance. -
Method Summary
Modifier and TypeMethodDescriptionint
getCores()
getLinkDestination
(Direction direction, HasChipLocation source, Machine machine) Gets where a link is really going.toString()
-
Field Details
-
cores
@PositiveOrZero @Max(18L) public final @jakarta.validation.constraints.PositiveOrZero,@jakarta.validation.constraints.Max(18L) int coresTotal number of working core on this chip. -
ethernet
Location of the nearest Ethernet-enabled chip.
-
-
Constructor Details
-
ChipDetails
public ChipDetails(int cores, ChipLocation ethernet, String ipAddress, List<LinkBean> links, List<Integer> deadLinks) throws UnknownHostException Make an instance.- Parameters:
cores
- Total number of cores working cores including monitors.ipAddress
- the IP address to setethernet
- Location of the nearest Ethernet-enabled chip.links
- Description of link information (only present when the links are not a complete default set).deadLinks
- the dead links of the chip- Throws:
UnknownHostException
- If theipAddress
can not be converted to anInetAddress
-
-
Method Details
-
getCores
public int getCores()- Returns:
- the number of cores.
-
getEthernet
- Returns:
- the location of the board's Ethernet-enabled chip
-
getIpAddress
- Returns:
- the IP address
-
getDeadDirections
- Returns:
- the dead links of the chip
-
toString
-
getLinkDestination
public ChipLocation getLinkDestination(Direction direction, HasChipLocation source, Machine machine) Gets where a link is really going.- Parameters:
direction
- Which direction the link is going in.source
- Where the link is coming from.machine
- The machine on which the link exists.- Returns:
- The location of the destination of the link.
-