Declared in PowerBus
Declaration
double GetCurrentBetween(
UniverseObject from,
UniverseObject to,
TerminalType fromTerminal,
TerminalType toTerminal
);Description
Returns the signed current flowing through the wire between two components on the specified terminals. Positive current means flow from to . Returns 0 if the wire does not exist in the network.
Parameters
| Name | Description |
|---|---|
| from | The component the wire originates from |
| to | The component the wire terminates at |
| fromTerminal | The terminal on |
| toTerminal | The terminal on |