Package CedarBackup3 :: Package writers :: Module dvdwriter :: Class MediaCapacity
[hide private]
[frames] | no frames]

Class MediaCapacity

source code

object --+
         |
        MediaCapacity

Class encapsulating information about DVD media capacity.

Space used and space available do not include any information about media lead-in or other overhead.

Instance Methods [hide private]
 
__init__(self, bytesUsed, bytesAvailable)
Initializes a capacity object.
source code
 
__str__(self)
Informal string representation for class instance.
source code
 
_getBytesUsed(self)
Property target used to get the bytes-used value.
source code
 
_getBytesAvailable(self)
Property target available to get the bytes-available value.
source code
 
_getTotalCapacity(self)
Property target to get the total capacity (used + available).
source code
 
_getUtilized(self)
Property target to get the percent of capacity which is utilized.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  bytesUsed
Space used on disc, in bytes.
  bytesAvailable
Space available on disc, in bytes.
  totalCapacity
Total capacity of the disc, in bytes.
  utilized
Percentage of the total capacity which is utilized.

Inherited from object: __class__

Method Details [hide private]

__init__(self, bytesUsed, bytesAvailable)
(Constructor)

source code 

Initializes a capacity object.

Raises:
  • ValueError - If the bytes used and available values are not floats.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

Informal string representation for class instance.

Overrides: object.__str__

Property Details [hide private]

bytesUsed

Space used on disc, in bytes.

Get Method:
_getBytesUsed(self) - Property target used to get the bytes-used value.

bytesAvailable

Space available on disc, in bytes.

Get Method:
_getBytesAvailable(self) - Property target available to get the bytes-available value.

totalCapacity

Total capacity of the disc, in bytes.

Get Method:
_getTotalCapacity(self) - Property target to get the total capacity (used + available).

utilized

Percentage of the total capacity which is utilized.

Get Method:
_getUtilized(self) - Property target to get the percent of capacity which is utilized.