Class ChipBean
java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.ChipBean
Descriptor used for converting JSON into a
Chip
.- Author:
- Christian-B
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Valid ChipDetails
The details for this Chip.final @Valid ChipLocation
The location of this Chip. -
Constructor Summary
ConstructorsConstructorDescriptionChipBean
(int x, int y, ChipDetails details, ChipResources resources) Make an instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaults
(MachineBean bean) Adds the suitable default ChipResources.toString()
-
Field Details
-
location
The location of this Chip. -
details
The details for this Chip.
-
-
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.
-