regional_powernet
Vars | |
available_power | the current available power in the powernet (Watts) |
---|---|
cables | A list of All cables & junctions in this powernet |
excess_power | excess power on the powernet (typically avail-load) (Watts) |
nodes | All Power Machines that are connected to this powernet |
number | The Powernet Unique ID Number |
power_demand | the current load on the powernet, increased by each machine at processing (Watts) |
queued_power_demand | load applied to powernet between power ticks. (Watts) |
queued_power_production | what available power was gathered last tick, then becomes... (Watts) |
smoothed_available_power | the available power as it appears on the power console (gradually updated) (Watts) |
smoothed_demand | the load as it appears on the power console (gradually updated) |
Procs | |
add_cable | add a cable to the current powernet |
add_machine | add a power machine to the current powernet |
calculate_power_balance | Returns the non-clamped difference between available power on the net and the demanded power, i.g. consumption vs. supply |
calculate_surplus | Returns the clamped difference between available power on the net and the demanded power, i.g. the surplus power available |
remove_cable | remove a cable from the current powernet, if the powernet is empty after, delete it |
remove_machine | remove a power machine from the current powernet, if the powernet is then empty, delete it |
Var Details
available_power
the current available power in the powernet (Watts)
cables
A list of All cables & junctions in this powernet
excess_power
excess power on the powernet (typically avail-load) (Watts)
nodes
All Power Machines that are connected to this powernet
number
The Powernet Unique ID Number
power_demand
the current load on the powernet, increased by each machine at processing (Watts)
queued_power_demand
load applied to powernet between power ticks. (Watts)
queued_power_production
what available power was gathered last tick, then becomes... (Watts)
smoothed_available_power
the available power as it appears on the power console (gradually updated) (Watts)
smoothed_demand
the load as it appears on the power console (gradually updated)
Proc Details
add_cable
add a cable to the current powernet
add_machine
add a power machine to the current powernet
calculate_power_balance
Returns the non-clamped difference between available power on the net and the demanded power, i.g. consumption vs. supply
calculate_surplus
Returns the clamped difference between available power on the net and the demanded power, i.g. the surplus power available
remove_cable
remove a cable from the current powernet, if the powernet is empty after, delete it
remove_machine
remove a power machine from the current powernet, if the powernet is then empty, delete it