All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.player.VolumeDecibel

java.lang.Object
   |
   +----guinea.player.Volume
           |
           +----guinea.player.VolumeDecibel

public class VolumeDecibel
extends Volume

Variable Index

· volume
The volume level in decibels.

Constructor Index

· VolumeDecibel(double)
Contruct a new Volume object that is in decibel scale.
· VolumeDecibel(Volume)
Contruct a new Volume object that is in decibel scale.

Method Index

· dBVolume()
Get the volume level in decibel scale.
· linearVolume()
Get the volume level in linear scale.
· toDecibel()
Convert this volume object to a volume level object in decibel scale.
· toString()
Get a string representation of the volume level.

Variables

· volume
 protected double volume
The volume level in decibels.

Constructors

· VolumeDecibel
 public VolumeDecibel(double volume)
Contruct a new Volume object that is in decibel scale.

Parameters:
volume - the volume level in decibels.
· VolumeDecibel
 public VolumeDecibel(Volume vol)
Contruct a new Volume object that is in decibel scale.

Parameters:
vol - a copy of volume object converted to decibel scale

Methods

· dBVolume
 public double dBVolume()
Get the volume level in decibel scale.

Returns:
the volume in decibel scale as a double.
Overrides:
dBVolume in class Volume
· linearVolume
 public double linearVolume()
Get the volume level in linear scale.

Returns:
the volume in linear scale as a double.
Overrides:
linearVolume in class Volume
· toDecibel
 public Volume toDecibel()
Convert this volume object to a volume level object in decibel scale.

Returns:
a Volume object in decibel scale.
Overrides:
toDecibel in class Volume
· toString
 public String toString()
Get a string representation of the volume level.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index