Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members
resources::SoftwareResourceDescription Class ReferenceAn instance of this class is a description of a software resource, which may be required by a hardware or software component.
More...
Inheritance diagram for resources::SoftwareResourceDescription:
[legend]Collaboration diagram for resources::SoftwareResourceDescription:
[legend]List of all members.
Detailed Description
An instance of this class is a description of a software resource, which may be required by a hardware or software component.
It does not describe the application itself, the SoftwareDescription is used for that.
To clarify this concept, let us give various examples. A software library is described by a SoftwareResourceDescription; a helper application is described by a SoftwareResourceDescription; a plugin is described a SoftwareResourceDescription... However, a piece of hardware is not described by a SoftwareResourceDescription.
Software is generally useless without hardware. For example, a software driver without the appropriate Disk drive is all but useless. Similarly, software often depends upon other software. For example, having a Photoshop without any plugins is not of much use. Hence, in describing a software component one needs to also describe the software and hardware that this software component requires. This is reflected in the fact that a SoftwareResourceDescription contains in addition to a "parent" description of a software component a list of HardwareResourceDescriptions, each element of which describes a hardware component upon which the parent software component depends, and a list of SoftwareResourceDescriptions, each element of which describes a software component upon which the parent software component depends. Hence, the entire structure is recursive.
To construct an instance of a SoftwareResourceDescription one requires three quantities:
- A map which contains a set of name/value pairs, detailed later, which describe a software resource.
- A list of SoftwareResourceDescription instances each of which describes a software resource upon which the parent software resource depends.
- A list of HardwareResourceDescription instances each of which describes a hardware resource upon which the parent software resource depends.
The GAT-API defines a minimum set of supported name/value pairs which can be included in the map used to construct a SoftwareResourceDescription 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> os.name java.lang.String The os name as returned from uname -s os.type java.lang.String The os type as returned from uname -p os.version java.lang.String The os version as returned from uname -v os.release java.lang.String The os release as returned from uname -r </TBODY>
Definition at line 80 of file SoftwareResourceDescription.java.
Constructor & Destructor Documentation
| resources::SoftwareResourceDescription::SoftwareResourceDescription |
( |
Map |
softwareResourceDescription, |
|
|
List |
softwareResourceDescriptions, |
|
|
List |
hardwareResourceDescriptions |
|
) |
[inline] |
|
Member Function Documentation
| boolean resources::SoftwareResourceDescription::equals |
( |
Object |
object |
) |
[inline] |
|
| Map resources::SoftwareResourceDescription::getDescription |
( |
|
) |
[inline] |
|
| void resources::SoftwareResourceDescription::setDescription |
( |
Map |
softwareResourceDescription |
) |
[inline] |
|
| void resources::SoftwareResourceDescription::addResourceAttribute |
( |
String |
name, |
|
|
Object |
value |
|
) |
[inline] |
|
| void resources::SoftwareResourceDescription::removeResourceAttribute |
( |
String |
name |
) |
[inline] |
|
| void resources::SoftwareResourceDescription::addResourceDescription |
( |
ResourceDescription |
hardwareResourceDescription |
) |
[inline] |
|
| void resources::SoftwareResourceDescription::removeResourceDescription |
( |
ResourceDescription |
hardwareResourceDescription |
) |
throws NoSuchElementException [inline] |
|
| void resources::SoftwareResourceDescription::setHardwareResourceDescriptions |
( |
List |
hardwareResourceDescriptions |
) |
[inline] |
|
| List resources::SoftwareResourceDescription::getHardwareResourceDescriptions |
( |
|
) |
[inline] |
|
| void resources::SoftwareResourceDescription::addSoftwareResourceDescription |
( |
SoftwareResourceDescription |
softwareResourceDescription |
) |
[inline] |
|
| void resources::SoftwareResourceDescription::removeSoftwareResourceDescription |
( |
SoftwareResourceDescription |
softwareResourceDescription |
) |
[inline] |
|
| void resources::SoftwareResourceDescription::setSoftwareResourceDescriptions |
( |
List |
softwareResourceDescriptions |
) |
[inline] |
|
| List resources::SoftwareResourceDescription::getSoftwareResourceDescriptions |
( |
|
) |
[inline] |
|
Member Data Documentation
Map resources::SoftwareResourceDescription::softwareResourceDescription = null [private]
|
|
List resources::SoftwareResourceDescription::softwareResourceDescriptions = null [private]
|
|
List resources::SoftwareResourceDescription::hardwareResourceDescriptions = null [private]
|
|
The documentation for this class was generated from the following file:
|