Class ResourceUsage
java.lang.Object
uk.ac.manchester.spinnaker.alloc.nmpi.ResourceUsage
public class ResourceUsage extends Object
An NMPI Resource Usage object.
-
Field Summary
Fields Modifier and Type Field Description static String
BOARD_SECONDS
The resource usage in board seconds.static String
CORE_HOURS
The resource usage in core hours. -
Constructor Summary
Constructors Constructor Description ResourceUsage()
-
Method Summary
-
Field Details
-
BOARD_SECONDS
The resource usage in board seconds.- See Also:
- Constant Field Values
-
CORE_HOURS
The resource usage in core hours.- See Also:
- Constant Field Values
-
-
Constructor Details
-
ResourceUsage
public ResourceUsage()
-
-
Method Details
-
getValue
public double getValue()Get the value of the usage.- Returns:
- The value.
-
setValue
public void setValue(double value)Set the value of the usage.- Parameters:
value
- The value to set.
-
getUnits
Get the units of the usage.- Returns:
- The units.
-
setUnits
Set the units of the usage.- Parameters:
units
- The units to set.
-