Class ChipResources
java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.ChipResources
Bean to represent values on a Chip that are typically the same on all Chips.
- Author:
- Christian-B
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Symbolic value to specify no specific value has been set. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaults
(ChipResources defaults) Adds the default values if and only if no value had been specifically set.int
getCores()
int
int
int
getSdram()
getTags()
toString()
-
Field Details
-
NOT_SET
public static final int NOT_SETSymbolic value to specify no specific value has been set.This allows the value 0 to be declared as specifically set.
- See Also:
-
-
Constructor Details
-
ChipResources
public ChipResources()Default constructor which sets all values to not set.
-
-
Method Details
-
addDefaults
Adds the default values if and only if no value had been specifically set. If a value is not set in both this and the defaults it will remain as not set.- Parameters:
defaults
- Another resources whose values should replace those which have not been set.
-
getCores
public int getCores()- Returns:
- the number of cores.
-
getMonitors
public int getMonitors()- Returns:
- the monitors
-
getSdram
public int getSdram()- Returns:
- the SDRAM capacity
-
getTags
- Returns:
- the tags
-
getRouterEntries
public int getRouterEntries()- Returns:
- the number of router entries
-
toString
-