Method | Description | |
---|---|---|
addTotalUse ( float use ) : void |
Adds the total use.
|
|
addUsages ( int amt ) : void |
Sets the number of usages.
|
|
getAvgUsePerSec ( ) : float |
Gets The current use of energy per second of time in the simulation.
|
|
getBatteryList ( ) : List |
Gets the battery list.
|
|
getIsEnergySupplied ( ) : bool |
Gets if is energy supplied.
|
|
getIsOn ( ) : bool |
Gets whether the energy use is currently on.
|
|
getIsUsingBattery ( ) : bool |
Gets the is using battery.
|
|
getNumberOfUsages ( ) : int |
Gets the number of usages.
|
|
getPlugLoad ( ) : PlugLoad, | ||
getTotalUse ( ) : float |
Gets the total use.
|
|
setAvgUsePerSec ( float amt ) : void |
Sets the avg use per sec.
|
|
setIsEnergySupplied ( bool state ) : void |
Sets if is energy supplied.
|
|
setIsOn ( bool state ) : void |
Sets is on or off.
|
|
setIsUsingBattery ( bool state ) : void |
Sets if is using battery.
|
|
setPlugLoad ( PlugLoad, pl ) : void |
Method | Description | |
---|---|---|
Start ( ) : void | ||
Update ( ) : void |
public addTotalUse ( float use ) : void | ||
use | float | Use... subtracts if negative. |
return | void |
public setAvgUsePerSec ( float amt ) : void | ||
amt | float | Amt. |
return | void |
public setIsEnergySupplied ( bool state ) : void | ||
state | bool | If set to |
return | void |
public setIsOn ( bool state ) : void | ||
state | bool | If set to |
return | void |
public setIsUsingBattery ( bool state ) : void | ||
state | bool | If set to |
return | void |