Class MachineBean
java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.MachineBean
Used to build a
Machine
from JSON.- Author:
- Christian-B
-
Constructor Summary
ConstructorsConstructorDescriptionMachineBean
(int height, int width, ChipLocation root, ChipResources ethernetResources, ChipResources standardResources, List<ChipBean> chips) Make an instance. -
Method Summary
-
Constructor Details
-
MachineBean
public MachineBean(int height, int width, ChipLocation root, ChipResources ethernetResources, ChipResources standardResources, List<ChipBean> chips) Make an instance.- Parameters:
height
- The height of the Machine in Chipswidth
- The width of the Machine in Chipsroot
- The Root Chip. (Typically 0,0)ethernetResources
- The resource values shared by all chips that have an ip_address, expect when overwritten by the Chip itself.standardResources
- The resource values shared by all chips that do not have an ip_address, expect when overwritten by the Chip itself.chips
- Beans for each Chips on the machine.
-
-
Method Details
-
getMachineDimensions
- Returns:
- The dimensions of the machine.
-
getRoot
- Returns:
- The root chip of the machine.
-
getEthernetResources
- Returns:
- the default resources of ethernet-enabled chips
-
getStandardResources
- Returns:
- the default resources of chips that are not ethernet-enabled
-
getChips
- Returns:
- the chips
-
toString
-
describe
Longer String representation over several lines.- Returns:
- A description of the machine and its details.
-