SystemResult Class Reference

The SystemResult Class. More...

#include <OSResult.h>

Collaboration diagram for SystemResult:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SystemResult ()
 Default constructor.
 ~SystemResult ()
 Class destructor.
bool IsEqual (SystemResult *that)
 A function to check for the equality of two objects.
bool setRandom (double density, bool conformant)
 A function to make a random instance of this class.
 SystemResult ()
 Default constructor.
 ~SystemResult ()
 Class destructor.

Public Attributes

std::string systemInformation
 a string containing some basic system information
StorageCapacityavailableDiskSpace
 a pointer to the DiskSpace class
StorageCapacityavailableMemory
 a pointer to the MemorySize class
CPUSpeedavailableCPUSpeed
 a pointer to the CPUSpeed class
CPUNumberavailableCPUNumber
 a pointer to the CPUNumber class
OtherResultsotherResults
 a pointer to the OtherResults class

Detailed Description

The SystemResult Class.

Author:
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 03/14/2004
Since:
OS 1.0
Remarks:
A class that provides the system information that is defined in the OSrL schema.

Definition at line 349 of file OSResult.h.


Constructor & Destructor Documentation

SystemResult::SystemResult (  ) 

Default constructor.

Definition at line 163 of file OSResult.cpp.

SystemResult::~SystemResult (  ) 

Class destructor.

Definition at line 177 of file OSResult.cpp.

References availableCPUNumber, availableCPUSpeed, availableDiskSpace, availableMemory, and otherResults.

SystemResult::SystemResult (  ) 

Default constructor.

SystemResult::~SystemResult (  ) 

Class destructor.


Member Function Documentation

bool SystemResult::IsEqual ( SystemResult that  ) 

A function to check for the equality of two objects.

Definition at line 6174 of file OSResult.cpp.

References availableCPUNumber, availableCPUSpeed, availableDiskSpace, availableMemory, otherResults, and systemInformation.

bool SystemResult::setRandom ( double  density,
bool  conformant 
)

A function to make a random instance of this class.

Parameters:
density,: corresponds to the probability that a particular child element is created
conformant,: if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" atrbutes and <XXX> children)

Definition at line 8065 of file OSResult.cpp.

References availableCPUNumber, availableCPUSpeed, availableDiskSpace, availableMemory, OSRand(), otherResults, OtherResults::setRandom(), CPUNumber::setRandom(), CPUSpeed::setRandom(), and StorageCapacity::setRandom().

Referenced by OSResult::setRandom().


Member Data Documentation

std::string SystemResult::systemInformation

a string containing some basic system information

Definition at line 354 of file OSResult.h.

Referenced by OSResult::getSystemInformation(), IsEqual(), and OSrLWriter::writeOSrL().

StorageCapacity* SystemResult::availableDiskSpace

a pointer to the DiskSpace class

Definition at line 358 of file OSResult.h.

Referenced by OSResult::getAvailableDiskSpaceDescription(), OSResult::getAvailableDiskSpaceUnit(), OSResult::getAvailableDiskSpaceValue(), IsEqual(), OSResult::setAvailableDiskSpaceDescription(), OSResult::setAvailableDiskSpaceUnit(), OSResult::setAvailableDiskSpaceValue(), setRandom(), OSrLWriter::writeOSrL(), and ~SystemResult().

StorageCapacity* SystemResult::availableMemory

a pointer to the MemorySize class

Definition at line 362 of file OSResult.h.

Referenced by OSResult::getAvailableMemoryDescription(), OSResult::getAvailableMemoryUnit(), OSResult::getAvailableMemoryValue(), IsEqual(), OSResult::setAvailableMemoryDescription(), OSResult::setAvailableMemoryUnit(), OSResult::setAvailableMemoryValue(), setRandom(), OSrLWriter::writeOSrL(), and ~SystemResult().

CPUSpeed* SystemResult::availableCPUSpeed

a pointer to the CPUSpeed class

Definition at line 366 of file OSResult.h.

Referenced by OSResult::getAvailableCPUSpeedDescription(), OSResult::getAvailableCPUSpeedUnit(), OSResult::getAvailableCPUSpeedValue(), IsEqual(), OSResult::setAvailableCPUSpeedDescription(), OSResult::setAvailableCPUSpeedUnit(), OSResult::setAvailableCPUSpeedValue(), setRandom(), OSrLWriter::writeOSrL(), and ~SystemResult().

CPUNumber* SystemResult::availableCPUNumber

a pointer to the CPUNumber class

Definition at line 370 of file OSResult.h.

Referenced by OSResult::getAvailableCPUNumberDescription(), OSResult::getAvailableCPUNumberValue(), IsEqual(), OSResult::setAvailableCPUNumberDescription(), OSResult::setAvailableCPUNumberValue(), setRandom(), OSrLWriter::writeOSrL(), and ~SystemResult().

OtherResults* SystemResult::otherResults

a pointer to the OtherResults class

Definition at line 374 of file OSResult.h.

Referenced by OSResult::getNumberOfOtherSystemResults(), OSResult::getOtherSystemResultDescription(), OSResult::getOtherSystemResultName(), OSResult::getOtherSystemResultValue(), IsEqual(), OSResult::setNumberOfOtherSystemResults(), setRandom(), OSrLWriter::writeOSrL(), and ~SystemResult().


The documentation for this class was generated from the following files:
Generated on Thu Nov 10 03:13:11 2011 by  doxygen 1.4.7