LoadableDevice_impl Class Reference

#include <LoadableDevice_impl.h>

Inheritance diagram for LoadableDevice_impl:

Inheritance graph
[legend]
Collaboration diagram for LoadableDevice_impl:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LoadableDevice_impl (char *, char *, char *)
 LoadableDevice_impl (char *, char *, char *, CF::Properties capacities)
 ~LoadableDevice_impl ()
void load (CF::FileSystem_ptr fs, const char *fileName, CF::LoadableDevice::LoadType loadKind) throw (CF::LoadableDevice::LoadFail, CF::InvalidFileName, CF::LoadableDevice::InvalidLoadKind, CF::Device::InvalidState, CORBA::SystemException)
void unload (const char *fileName) throw (CF::InvalidFileName, CF::Device::InvalidState, CORBA::SystemException)
bool isFileLoaded (const char *fileName)
void configure (const CF::Properties &configProperties) throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 The core framework provides an implementation for this method.
char * label () throw (CORBA::SystemException)
char * softwareProfile () throw (CORBA::SystemException)
CF::Device::UsageType usageState () throw (CORBA::SystemException)
CF::Device::AdminType adminState () throw (CORBA::SystemException)
void adminState (CF::Device::AdminType _adminType) throw (CORBA::SystemException)
CF::Device::OperationalType operationalState () throw (CORBA::SystemException)
CF::AggregateDevice_ptr compositeDevice () throw (CORBA::SystemException)
void deallocateCapacity (const CF::Properties &capacities) throw (CF::Device::InvalidState, CF::Device::InvalidCapacity, CORBA::SystemException)
CORBA::Boolean allocateCapacity (const CF::Properties &capacities) throw (CF::Device::InvalidState, CF::Device::InvalidCapacity, CORBA::SystemException)
bool isUnlocked ()
bool isLocked ()
bool isDisabled ()
bool isBusy ()
bool isIdle ()
void start () throw (CF::Resource::StartError, CORBA::SystemException)
void stop () throw (CF::Resource::StopError, CORBA::SystemException)
char * identifier () throw (CORBA::SystemException)
void query (CF::Properties &configProperties) throw (CF::UnknownProperties, CORBA::SystemException)
 The core framework provides an implementation for this method.
CORBA::Object * getPort (const char *) throw (CF::PortSupplier::UnknownPort, CORBA::SystemException)
 Return an object reference for the named port.
void initialize () throw (CF::LifeCycle::InitializeError, CORBA::SystemException)
 Override this method with component specific initialization.
void releaseObject () throw (CF::LifeCycle::ReleaseError, CORBA::SystemException)
 Override this method with the code require to release the object.
void runTest (CORBA::ULong TestID, CF::Properties &testValues) throw (CF::UnknownProperties, CF::TestableObject::UnknownTest, CORBA::SystemException)
 Run the test specified by TestID with the values supplied in testValues.

Protected Types

enum  AnyComparisonType {
  FIRST_BIGGER, SECOND_BIGGER, BOTH_EQUAL, POSITIVE,
  NEGATIVE, ZERO, UNKNOWN
}

Protected Member Functions

void incrementFile (const char *)
void decrementFile (const char *)
void setUsageState (CF::Device::UsageType newUsageState)
Device_impl::AnyComparisonType compareAnyToZero (CORBA::Any &first)
Device_impl::AnyComparisonType compareAnys (CORBA::Any &first, CORBA::Any &second)
void deallocate (CORBA::Any &deviceCapacity, const CORBA::Any &resourceRequest)
bool allocate (CORBA::Any &deviceCapacity, const CORBA::Any &resourceRequest)
CF::DataType getProperty (CORBA::String_var id)
void validate (CF::Properties property, CF::Properties &validProps, CF::Properties &invalidProps)

Protected Attributes

vector< fileCountloadedFiles
char * keyProperties [6]
CF::Device::AdminType _adminState
CF::Device::UsageType _usageState
CF::Device::OperationalType _operationalState
std::string _softwareProfile
std::string _label
bool initialConfiguration
CF::Properties originalCap
std::string _identifier
CF::Properties propertySet

Private Member Functions

 LoadableDevice_impl ()
 LoadableDevice_impl (LoadableDevice_impl &)


Detailed Description

Definition at line 50 of file LoadableDevice_impl.h.


Member Enumeration Documentation

enum Device_impl::AnyComparisonType [protected, inherited]

Enumerator:
FIRST_BIGGER 
SECOND_BIGGER 
BOTH_EQUAL 
POSITIVE 
NEGATIVE 
ZERO 
UNKNOWN 

Definition at line 34 of file Device_impl.h.


Constructor & Destructor Documentation

LoadableDevice_impl::LoadableDevice_impl ( char *  id,
char *  lbl,
char *  sftwrPrfl 
)

Definition at line 34 of file LoadableDevice_impl.cpp.

LoadableDevice_impl::LoadableDevice_impl ( char *  id,
char *  lbl,
char *  sftwrPrfl,
CF::Properties  capacities 
)

Definition at line 43 of file LoadableDevice_impl.cpp.

LoadableDevice_impl::~LoadableDevice_impl (  ) 

Definition at line 53 of file LoadableDevice_impl.cpp.

References loadedFiles.

LoadableDevice_impl::LoadableDevice_impl (  )  [private]

LoadableDevice_impl::LoadableDevice_impl ( LoadableDevice_impl  )  [private]


Member Function Documentation

void LoadableDevice_impl::incrementFile ( const char *  fileName  )  [protected]

Definition at line 117 of file LoadableDevice_impl.cpp.

References fileCount::counter, fileCount::fileId, and loadedFiles.

Referenced by load().

void LoadableDevice_impl::decrementFile ( const char *  fileName  )  [protected]

Definition at line 160 of file LoadableDevice_impl.cpp.

References loadedFiles.

Referenced by unload().

void LoadableDevice_impl::load ( CF::FileSystem_ptr  fs,
const char *  fileName,
CF::LoadableDevice::LoadType  loadKind 
) throw (CF::LoadableDevice::LoadFail, CF::InvalidFileName, CF::LoadableDevice::InvalidLoadKind, CF::Device::InvalidState, CORBA::SystemException)

Definition at line 69 of file LoadableDevice_impl.cpp.

References incrementFile(), Device_impl::isDisabled(), and Device_impl::isUnlocked().

Here is the call graph for this function:

void LoadableDevice_impl::unload ( const char *  fileName  )  throw (CF::InvalidFileName, CF::Device::InvalidState, CORBA::SystemException)

Definition at line 141 of file LoadableDevice_impl.cpp.

References decrementFile(), Device_impl::isDisabled(), and Device_impl::isLocked().

Here is the call graph for this function:

bool LoadableDevice_impl::isFileLoaded ( const char *  fileName  ) 

Definition at line 190 of file LoadableDevice_impl.cpp.

References loadedFiles.

Referenced by ExecutableDevice_impl::execute().

void LoadableDevice_impl::configure ( const CF::Properties &  configProperties  )  throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)

The core framework provides an implementation for this method.

Reimplemented from Device_impl.

Reimplemented in ExecutableDevice_impl.

Definition at line 203 of file LoadableDevice_impl.cpp.

References Device_impl::configure().

Here is the call graph for this function:

void Device_impl::setUsageState ( CF::Device::UsageType  newUsageState  )  [protected, inherited]

Definition at line 464 of file Device_impl.cpp.

References Device_impl::_usageState.

Referenced by Device_impl::allocateCapacity(), and Device_impl::deallocateCapacity().

Device_impl::AnyComparisonType Device_impl::compareAnyToZero ( CORBA::Any &  first  )  [protected, inherited]

Definition at line 408 of file Device_impl.cpp.

References Device_impl::NEGATIVE, Device_impl::POSITIVE, Device_impl::UNKNOWN, and Device_impl::ZERO.

Referenced by Device_impl::allocateCapacity().

Device_impl::AnyComparisonType Device_impl::compareAnys ( CORBA::Any &  first,
CORBA::Any &  second 
) [protected, inherited]

Definition at line 343 of file Device_impl.cpp.

References Device_impl::BOTH_EQUAL, Device_impl::FIRST_BIGGER, Device_impl::SECOND_BIGGER, and Device_impl::UNKNOWN.

Referenced by Device_impl::deallocateCapacity().

void Device_impl::deallocate ( CORBA::Any &  deviceCapacity,
const CORBA::Any &  resourceRequest 
) [protected, inherited]

Definition at line 294 of file Device_impl.cpp.

Referenced by Device_impl::deallocateCapacity().

bool Device_impl::allocate ( CORBA::Any &  deviceCapacity,
const CORBA::Any &  resourceRequest 
) [protected, inherited]

Definition at line 233 of file Device_impl.cpp.

Referenced by Device_impl::allocateCapacity().

char * Device_impl::label (  )  throw (CORBA::SystemException) [inherited]

Definition at line 528 of file Device_impl.cpp.

References Device_impl::_label.

char * Device_impl::softwareProfile (  )  throw (CORBA::SystemException) [inherited]

Definition at line 535 of file Device_impl.cpp.

References Device_impl::_softwareProfile.

CF::Device::UsageType Device_impl::usageState (  )  throw (CORBA::SystemException) [inherited]

Definition at line 542 of file Device_impl.cpp.

References Device_impl::_usageState.

CF::Device::AdminType Device_impl::adminState (  )  throw (CORBA::SystemException) [inherited]

Definition at line 549 of file Device_impl.cpp.

References Device_impl::_adminState.

void Device_impl::adminState ( CF::Device::AdminType  _adminType  )  throw (CORBA::SystemException) [inherited]

Definition at line 471 of file Device_impl.cpp.

References Device_impl::_adminState.

CF::Device::OperationalType Device_impl::operationalState (  )  throw (CORBA::SystemException) [inherited]

Definition at line 556 of file Device_impl.cpp.

References Device_impl::_operationalState.

CF::AggregateDevice_ptr Device_impl::compositeDevice (  )  throw (CORBA::SystemException) [inherited]

Definition at line 564 of file Device_impl.cpp.

void Device_impl::deallocateCapacity ( const CF::Properties &  capacities  )  throw (CF::Device::InvalidState, CF::Device::InvalidCapacity, CORBA::SystemException) [inherited]

Definition at line 152 of file Device_impl.cpp.

References Device_impl::compareAnys(), Device_impl::configure(), Device_impl::deallocate(), Device_impl::FIRST_BIGGER, Device_impl::isDisabled(), Device_impl::isIdle(), Device_impl::isLocked(), ORB_WRAP::isValidType(), Device_impl::originalCap, PropertySet_impl::query(), Device_impl::SECOND_BIGGER, and Device_impl::setUsageState().

Here is the call graph for this function:

CORBA::Boolean Device_impl::allocateCapacity ( const CF::Properties &  capacities  )  throw (CF::Device::InvalidState, CF::Device::InvalidCapacity, CORBA::SystemException) [inherited]

Flag to check remaining extra capacity to allocate

Flag to indicate if the requested property was found

Definition at line 65 of file Device_impl.cpp.

References Device_impl::allocate(), Device_impl::compareAnyToZero(), Device_impl::configure(), Device_impl::isBusy(), Device_impl::isDisabled(), Device_impl::isUnlocked(), ORB_WRAP::isValidType(), Device_impl::POSITIVE, PropertySet_impl::query(), and Device_impl::setUsageState().

Here is the call graph for this function:

bool Device_impl::isUnlocked (  )  [inherited]

Definition at line 478 of file Device_impl.cpp.

References Device_impl::_adminState.

Referenced by Device_impl::allocateCapacity(), ExecutableDevice_impl::execute(), and load().

bool Device_impl::isLocked (  )  [inherited]

Definition at line 488 of file Device_impl.cpp.

References Device_impl::_adminState.

Referenced by Device_impl::deallocateCapacity(), ExecutableDevice_impl::terminate(), and unload().

bool Device_impl::isDisabled (  )  [inherited]

Definition at line 498 of file Device_impl.cpp.

References Device_impl::_operationalState.

Referenced by Device_impl::allocateCapacity(), Device_impl::deallocateCapacity(), ExecutableDevice_impl::execute(), load(), ExecutableDevice_impl::terminate(), and unload().

bool Device_impl::isBusy (  )  [inherited]

Definition at line 508 of file Device_impl.cpp.

References Device_impl::_usageState.

Referenced by Device_impl::allocateCapacity().

bool Device_impl::isIdle (  )  [inherited]

Definition at line 518 of file Device_impl.cpp.

References Device_impl::_usageState.

Referenced by Device_impl::deallocateCapacity().

void Resource_impl::start (  )  throw (CF::Resource::StartError, CORBA::SystemException) [inherited]

Reimplemented in Application_impl.

Definition at line 31 of file Resource_impl.cpp.

void Resource_impl::stop (  )  throw (CF::Resource::StopError, CORBA::SystemException) [inherited]

Reimplemented in Application_impl.

Definition at line 38 of file Resource_impl.cpp.

char * Resource_impl::identifier ( void   )  throw (CORBA::SystemException) [inherited]

Definition at line 45 of file Resource_impl.cpp.

References Resource_impl::_identifier.

Referenced by Application_impl::releaseObject().

void PropertySet_impl::query ( CF::Properties &  configProperties  )  throw (CF::UnknownProperties, CORBA::SystemException) [inherited]

The core framework provides an implementation for this method.

Definition at line 85 of file PropertySet_impl.cpp.

Referenced by Device_impl::allocateCapacity(), and Device_impl::deallocateCapacity().

CF::DataType PropertySet_impl::getProperty ( CORBA::String_var  id  )  [protected, inherited]

Definition at line 168 of file PropertySet_impl.cpp.

References PropertySet_impl::propertySet.

void PropertySet_impl::validate ( CF::Properties  property,
CF::Properties &  validProps,
CF::Properties &  invalidProps 
) [protected, inherited]

Definition at line 131 of file PropertySet_impl.cpp.

References PropertySet_impl::propertySet.

CORBA::Object * PortSupplier_impl::getPort ( const char *  _name  )  throw (CF::PortSupplier::UnknownPort, CORBA::SystemException) [inherited]

Return an object reference for the named port.

Reimplemented in Application_impl.

Definition at line 26 of file PortSupplier_impl.cpp.

void LifeCycle_impl::initialize (  )  throw (CF::LifeCycle::InitializeError, CORBA::SystemException) [inherited]

Override this method with component specific initialization.

Reimplemented in Application_impl.

Definition at line 26 of file LifeCycle_impl.cpp.

void LifeCycle_impl::releaseObject (  )  throw (CF::LifeCycle::ReleaseError, CORBA::SystemException) [inherited]

Override this method with the code require to release the object.

Reimplemented in Application_impl.

Definition at line 33 of file LifeCycle_impl.cpp.

void TestableObject_impl::runTest ( CORBA::ULong  TestID,
CF::Properties &  testValues 
) throw (CF::UnknownProperties, CF::TestableObject::UnknownTest, CORBA::SystemException) [inherited]

Run the test specified by TestID with the values supplied in testValues.

Reimplemented in Application_impl.

Definition at line 26 of file TestableObject_impl.cpp.


Member Data Documentation

vector< fileCount > LoadableDevice_impl::loadedFiles [protected]

Definition at line 57 of file LoadableDevice_impl.h.

Referenced by decrementFile(), incrementFile(), isFileLoaded(), and ~LoadableDevice_impl().

char* Device_impl::keyProperties[6] [protected, inherited]

Definition at line 33 of file Device_impl.h.

CF::Device::AdminType Device_impl::_adminState [protected, inherited]

Definition at line 44 of file Device_impl.h.

Referenced by Device_impl::adminState(), Device_impl::Device_impl(), Device_impl::isLocked(), and Device_impl::isUnlocked().

CF::Device::UsageType Device_impl::_usageState [protected, inherited]

Definition at line 45 of file Device_impl.h.

Referenced by Device_impl::Device_impl(), Device_impl::isBusy(), Device_impl::isIdle(), Device_impl::setUsageState(), and Device_impl::usageState().

CF::Device::OperationalType Device_impl::_operationalState [protected, inherited]

Definition at line 46 of file Device_impl.h.

Referenced by Device_impl::Device_impl(), Device_impl::isDisabled(), and Device_impl::operationalState().

std::string Device_impl::_softwareProfile [protected, inherited]

Definition at line 47 of file Device_impl.h.

Referenced by Device_impl::Device_impl(), and Device_impl::softwareProfile().

std::string Device_impl::_label [protected, inherited]

Definition at line 48 of file Device_impl.h.

Referenced by Device_impl::Device_impl(), and Device_impl::label().

bool Device_impl::initialConfiguration [protected, inherited]

Definition at line 51 of file Device_impl.h.

Referenced by Device_impl::configure(), and Device_impl::Device_impl().

CF::Properties Device_impl::originalCap [protected, inherited]

Definition at line 52 of file Device_impl.h.

Referenced by Device_impl::configure(), and Device_impl::deallocateCapacity().

std::string Resource_impl::_identifier [protected, inherited]

Definition at line 38 of file Resource_impl.h.

Referenced by Resource_impl::identifier(), and Resource_impl::Resource_impl().

CF::Properties PropertySet_impl::propertySet [protected, inherited]

Definition at line 55 of file PropertySet_impl.h.

Referenced by PropertySet_impl::getProperty(), and PropertySet_impl::validate().


The documentation for this class was generated from the following files:
Generated on Thu Feb 12 04:00:08 2009 for OSSIE Framework by  doxygen 1.5.4