C# Class EnergyUsage

Afficher le fichier Open project: FIU-SCIS-Senior-Projects/SmartBuilding4 Class Usage Examples

Méthodes publiques

Méthode 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

Private Methods

Méthode Description
Start ( ) : void
Update ( ) : void

Method Details

addTotalUse() public méthode

Adds the total use.
public addTotalUse ( float use ) : void
use float Use... subtracts if negative.
Résultat void

addUsages() public méthode

Sets the number of usages.
public addUsages ( int amt ) : void
amt int Amt.
Résultat void

getAvgUsePerSec() public méthode

Gets The current use of energy per second of time in the simulation.
public getAvgUsePerSec ( ) : float
Résultat float

getBatteryList() public méthode

Gets the battery list.
public getBatteryList ( ) : List
Résultat List

getIsEnergySupplied() public méthode

Gets if is energy supplied.
public getIsEnergySupplied ( ) : bool
Résultat bool

getIsOn() public méthode

Gets whether the energy use is currently on.
public getIsOn ( ) : bool
Résultat bool

getIsUsingBattery() public méthode

Gets the is using battery.
public getIsUsingBattery ( ) : bool
Résultat bool

getNumberOfUsages() public méthode

Gets the number of usages.
public getNumberOfUsages ( ) : int
Résultat int

getPlugLoad() public méthode

public getPlugLoad ( ) : PlugLoad,
Résultat PlugLoad,

getTotalUse() public méthode

Gets the total use.
public getTotalUse ( ) : float
Résultat float

setAvgUsePerSec() public méthode

Sets the avg use per sec.
public setAvgUsePerSec ( float amt ) : void
amt float Amt.
Résultat void

setIsEnergySupplied() public méthode

Sets if is energy supplied.
public setIsEnergySupplied ( bool state ) : void
state bool If set to true state.
Résultat void

setIsOn() public méthode

Sets is on or off.
public setIsOn ( bool state ) : void
state bool If set to true state.
Résultat void

setIsUsingBattery() public méthode

Sets if is using battery.
public setIsUsingBattery ( bool state ) : void
state bool If set to true state.
Résultat void

setPlugLoad() public méthode

public setPlugLoad ( PlugLoad, pl ) : void
pl PlugLoad,
Résultat void