Class CurtailmentType
Implements
Namespace: Scripting
Syntax
public class CurtailmentType : INamedItem
Constructors
CurtailmentType(String)
Creates an instance of the CurtailmentType class.
Declaration
public CurtailmentType(string strategyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | strategyName | The name of the strategy e.g. Noise. |
Properties
IsSystemDefined
Declaration
public bool IsSystemDefined { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Note
Declaration
public string Note { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Priority
Declaration
public int Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Equals(CurtailmentType)
Tests a CurtailmentType against this current CurtailmentType for equality.
Declaration
public bool Equals(CurtailmentType val)
Parameters
Type | Name | Description |
---|---|---|
CurtailmentType | val |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Equals(Object)
Tests a System.Object against this current CurtailmentType for equality.
Declaration
public override bool Equals(object toCompare)
Parameters
Type | Name | Description |
---|---|---|
System.Object | toCompare |
Returns
Type | Description |
---|---|
System.Boolean | True if object is equal otherwise false is returned. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Gets the hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this object. |
Overrides
System.Object.GetHashCode()
Operators
Equality(CurtailmentType, CurtailmentType)
Tests a CurtailmentType against this current CurtailmentType for equality.
Declaration
public static bool operator ==(CurtailmentType a, CurtailmentType b)
Parameters
Type | Name | Description |
---|---|---|
CurtailmentType | a | |
CurtailmentType | b |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Inequality(CurtailmentType, CurtailmentType)
Tests a CurtailmentType against this current CurtailmentType for inequality.
Declaration
public static bool operator !=(CurtailmentType a, CurtailmentType b)
Parameters
Type | Name | Description |
---|---|---|
CurtailmentType | a | |
CurtailmentType | b |
Returns
Type | Description |
---|---|
System.Boolean | True if not equal otherwise false is returned. |