Battery

Battery describes a battery device. A Battery instance contains the following attributes:

Table A.6. Battery's attributes:

NameDescription
valBattery remaining power between 0 and 1.
init()

The UObject constructor

Example

battery = Battery.new();