Class TransformerInstance
Partial implementation of the TransformerInstance scripting class.
Namespace: Scripting
Syntax
public class TransformerInstance
Constructors
TransformerInstance()
Creates an instance of the TransformerInstance class.
Declaration
public TransformerInstance()
Properties
Location
Gets or sets the location of the transformer instance.
Declaration
public I2DLocation Location { get; set; }
Property Value
Type | Description |
---|---|
I2DLocation |
Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TransformerSpecification
Gets the transformer specification that this TransformerInstance references.
Declaration
public TransformerSpecification TransformerSpecification { get; }
Property Value
Type | Description |
---|---|
TransformerSpecification |
Methods
AddInverterInstance(InverterInstance)
Adds the specified inverter instance to this transformer instance.
Declaration
public void AddInverterInstance(InverterInstance inverterInstance)
Parameters
Type | Name | Description |
---|---|---|
InverterInstance | inverterInstance | The inverter instance. |
Equals(TransformerInstance)
Tests a TransformerInstance against this current TransformerInstance for equality.
Declaration
public bool Equals(TransformerInstance val)
Parameters
Type | Name | Description |
---|---|---|
TransformerInstance | val |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Equals(Object)
Tests a System.Object against this current TransformerInstance 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(TransformerInstance, TransformerInstance)
Tests a TransformerInstance against this current TransformerInstance for equality.
Declaration
public static bool operator ==(TransformerInstance a, TransformerInstance b)
Parameters
Type | Name | Description |
---|---|---|
TransformerInstance | a | |
TransformerInstance | b |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Inequality(TransformerInstance, TransformerInstance)
Tests a TransformerInstance against this current TransformerInstance for inequality.
Declaration
public static bool operator !=(TransformerInstance a, TransformerInstance b)
Parameters
Type | Name | Description |
---|---|---|
TransformerInstance | a | |
TransformerInstance | b |
Returns
Type | Description |
---|---|
System.Boolean | True if not equal otherwise false is returned. |