Class ChipBean
java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.ChipBean
public class ChipBean extends Object
Descriptor used for converting JSON into a
Chip
.- Author:
- Christian-B
-
Field Summary
Fields Modifier and Type Field Description @Valid ChipDetails
details
The details for this Chip.@Valid ChipLocation
location
The location of this Chip. -
Constructor Summary
Constructors Constructor Description ChipBean(int x, int y, ChipDetails details, ChipResources resources)
Make an instance. -
Method Summary
Modifier and Type Method Description void
addDefaults(MachineBean bean)
Adds the suitable default ChipResources.ChipDetails
getDetails()
ChipLocation
getLocation()
ChipResources
getResources()
String
toString()
-
Field Details
-
Constructor Details
-
ChipBean
Make an instance.- Parameters:
x
- X coordinate of the Chipy
- Y coordinate of the Chip.details
- The details of what makes this chip special.resources
- Any resources specifically declared for this Chip. May benull
.
-
-
Method Details
-
getLocation
- Returns:
- Location of the chip.
-
getResources
- Returns:
- the resources
-
getDetails
- Returns:
- the resources
-
toString
-
addDefaults
Adds the suitable default ChipResources. Based on if the Chip is an Ethernet one or not this will add the suitable resources. Any values specifically set for a Chip have preference over the default values.- Parameters:
bean
- Main bean to copy defaults from.
-