Class MaximumCoreHardware
Constraint to limit the maximum number of cores
Inherited Members
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public class MaximumCoreHardware : HardwareConstraint
Constructors
MaximumCoreHardware(int)
Set the maximum number of cores
Declaration
public MaximumCoreHardware(int coreCount)
Parameters
Type | Name | Description |
---|---|---|
int | coreCount | maximum number of core |
Properties
CoreCount
Minimum number of cores
Declaration
public int CoreCount { get; set; }
Property Value
Type | Description |
---|---|
int |
Discriminator
Type of the Constraint.
Declaration
public override string Discriminator { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |