Class ChipDetails
java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.ChipDetails
public class ChipDetails extends Object
The details of a
Chip
.- Author:
- Christian-B
-
Field Summary
Fields Modifier and Type Field Description @javax.validation.constraints.PositiveOrZero,@javax.validation.constraints.Max(18L) int
cores
Total number of working core on this chip.@Valid ChipLocation
ethernet
Location of the nearest Ethernet-enabled chip. -
Constructor Summary
Constructors Constructor Description ChipDetails(int cores, ChipLocation ethernet, String ipAddress, List<LinkBean> links, List<Integer> deadLinks)
Make an instance. -
Method Summary
Modifier and Type Method Description int
getCores()
Set<Direction>
getDeadDirections()
ChipLocation
getEthernet()
InetAddress
getIpAddress()
ChipLocation
getLinkDestination(Direction direction, HasChipLocation source, Machine machine)
Gets where a link is really going.String
toString()
-
Field Details
-
cores
@PositiveOrZero @Max(18L) public final @javax.validation.constraints.PositiveOrZero,@javax.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 UnknownHostExceptionMake 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.
-