Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members
resources::HardwareResourceDescription Class ReferenceAn instance of this class is a description of a hardware resource, a physical thing, which a may be required by a hardware or software component.
More...
Inheritance diagram for resources::HardwareResourceDescription:
[legend]Collaboration diagram for resources::HardwareResourceDescription:
[legend]List of all members.
Detailed Description
An instance of this class is a description of a hardware resource, a physical thing, which a may be required by a hardware or software component.
To clarify the concept of a HardwareResourceDescription, let us give various examples. Memory is described by a HardwareResourceDescription; a network is described by a HardwareResourceDescription; disk space is described by a HardwareResourceDescription; a monitor is described a HardwareResourceDescription\ldots However, an application is not described by a HardwareResourceDescription. In general any resource which corresponds to a physical thing is described by a HardwareResourceDescription.
Hardware is generally useless without software. For example, a disk drive without the appropriate software driver is all but useless. Similarly, hardware often depends upon other hardware. For example, having a disk drive without a computer again is not of much use. Hence, in describing a hardware component one needs to also describe the software and hardware that this hardware component requires. This is reflected in the fact that a HardwareResourceDescription contains in addition to a description of a hardware component a list of HardwareResourceDescriptions, each element of which describes a hardware component upon which the parent hardware component depends, and a list of SoftwareResourceDescriptions, each element of which describes a software component upon which the parent hardware component depends. Hence, the entire structure is recursive.
To construct an instance of a HardwareResourceDescription one requires three quantities:
- A map which contains a set of name/value pairs, detailed later, which describe a hardware resource.
- A list of SoftwareResourceDescription instances each of which describes a software resource upon which the parent hardware resource depends. A list of HardwareResourceDescription instances each of which describes a hardware resource upon which the parent hardware resource depends.
The GAT-API defines a minimum set of supported name/value pairs which can be included in the java.util.Map used to construct a HardwareResourceDescription instance. This minimum set of name/value pairs MUST be supported by any implementation of the GAT-API. This minimum set of supported name/values is given in the table
<TABLE border="2" frame="box" rules="groups" summary="Minimum set of supported name/value pairs"> <COLGROUP align="left"> <COLGROUP align="center"> <COLGROUP align="left" > <THEAD valign="top"> <TH>Name <TH>Type <TH>Description <TBODY> memory.size java.lang.Float The minimum memory in GB. memory.accesstime java.lang.Float The minimum memory access time in ns. memory.str java.lang.Float The minimum sustained transfer rate in GB/s. machine.type java.lang.String The machine type as returned from uname -m machine.node java.lang.String The machine node as returned from uname -n cpu.type java.lang.String The generic cpu type as returned from uname -p cpu.speed java.lang.Float The minimum cpu speed in GHz. disk.size java.lang.Float The minimum size of the hard drive in GB. disk.accesstime java.lang.Float The minimum disk access time in ms. disk.str java.lang.Float The minimum sustained transfer rate in MB/s. <TBODY>
Definition at line 103 of file HardwareResourceDescription.java.
Constructor & Destructor Documentation
| resources::HardwareResourceDescription::HardwareResourceDescription |
( |
Map |
hardwareResourceDescription, |
|
|
List |
softwareResourceDescriptions, |
|
|
List |
hardwareResourceDescriptions |
|
) |
[inline] |
|
Member Function Documentation
| boolean resources::HardwareResourceDescription::equals |
( |
Object |
object |
) |
[inline] |
|
| Map resources::HardwareResourceDescription::getDescription |
( |
|
) |
[inline] |
|
| void resources::HardwareResourceDescription::setDescription |
( |
Map |
hrd |
) |
[inline] |
|
| void resources::HardwareResourceDescription::addResourceAttribute |
( |
String |
name, |
|
|
Object |
value |
|
) |
[inline] |
|
| void resources::HardwareResourceDescription::removeResourceAttribute |
( |
String |
name |
) |
throws NoSuchElementException [inline] |
|
| void resources::HardwareResourceDescription::addResourceDescription |
( |
ResourceDescription |
hardwareResourceDescription |
) |
[inline] |
|
| void resources::HardwareResourceDescription::removeResourceDescription |
( |
ResourceDescription |
hardwareResourceDescription |
) |
[inline] |
|
| void resources::HardwareResourceDescription::setHardwareResourceDescriptions |
( |
List |
hardwareResourceDescriptions |
) |
[inline] |
|
| List resources::HardwareResourceDescription::getHardwareResourceDescriptions |
( |
|
) |
[inline] |
|
| void resources::HardwareResourceDescription::addSoftwareResourceDescription |
( |
SoftwareResourceDescription |
softwareResourceDescription |
) |
[inline] |
|
| void resources::HardwareResourceDescription::removeSoftwareResourceDescription |
( |
SoftwareResourceDescription |
softwareResourceDescription |
) |
[inline] |
|
| void resources::HardwareResourceDescription::setSoftwareResourceDescriptions |
( |
List |
softwareResourceDescriptions |
) |
[inline] |
|
| List resources::HardwareResourceDescription::getSoftwareResourceDescriptions |
( |
|
) |
[inline] |
|
Member Data Documentation
Map resources::HardwareResourceDescription::hardwareResourceDescription = null [private]
|
|
List resources::HardwareResourceDescription::softwareResourceDescriptions = null [private]
|
|
List resources::HardwareResourceDescription::hardwareResourceDescriptions = null [private]
|
|
The documentation for this class was generated from the following file:
|