Class ReadOnlyWindFarm
A read-only definition of a wind farm
Namespace: Scripting
Syntax
public class ReadOnlyWindFarm
Properties
ExcludeFromCalculation
Get is this wind farm excluded from calculation
Declaration
public bool ExcludeFromCalculation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsIncludedInBlockageCalculation
Gets whether this wind farm was included in the blockage model.
Declaration
public bool IsIncludedInBlockageCalculation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNeighbour
Gets if this wind farm is a neighbor or not
Declaration
public bool IsNeighbour { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the name of the wind farm
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Notes
Gets the notes for this wind farm
Declaration
public string Notes { get; }
Property Value
Type | Description |
---|---|
System.String |
Owner
Gets the owener of the wind farm
Declaration
public string Owner { get; }
Property Value
Type | Description |
---|---|
System.String |
Turbines
The collection of turbines for this wind farm
Declaration
public IReadableKeyedEnumerable<string, ReadOnlyTurbine> Turbines { get; }
Property Value
Type | Description |
---|---|
IReadableKeyedEnumerable<System.String, ReadOnlyTurbine> |
Methods
Equals(ReadOnlyWindFarm)
Tests a ReadOnlyWindFarm against this current ReadOnlyWindFarm for equality.
Declaration
public bool Equals(ReadOnlyWindFarm val)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyWindFarm | val |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Equals(Object)
Tests a System.Object against this current ReadOnlyWindFarm 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
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
Operators
Equality(ReadOnlyWindFarm, ReadOnlyWindFarm)
Tests a ReadOnlyWindFarm against this current ReadOnlyWindFarm for equality.
Declaration
public static bool operator ==(ReadOnlyWindFarm a, ReadOnlyWindFarm b)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyWindFarm | a | |
ReadOnlyWindFarm | b |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Inequality(ReadOnlyWindFarm, ReadOnlyWindFarm)
Tests a ReadOnlyWindFarm against this current ReadOnlyWindFarm for inequality.
Declaration
public static bool operator !=(ReadOnlyWindFarm a, ReadOnlyWindFarm b)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyWindFarm | a | |
ReadOnlyWindFarm | b |
Returns
Type | Description |
---|---|
System.Boolean | True if not equal otherwise false is returned. |