Class ChipResources
java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.ChipResources
public class ChipResources extends Object
Bean to represent values on a Chip that are typically the same on all Chips.
- Author:
- Christian-B
-
Field Summary
Fields Modifier and Type Field Description static int
NOT_SET
Symbolic value to specify no specific value has been set. -
Constructor Summary
Constructors Constructor Description ChipResources()
Default constructor which sets all values to not set. -
Method Summary
Modifier and Type Method Description void
addDefaults(ChipResources defaults)
Adds the default values if and only if no value had been specifically set.int
getCores()
int
getMonitors()
int
getRouterEntries()
int
getSdram()
List<Integer>
getTags()
String
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:
- Constant Field Values
-
-
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
-