#include <ExecutableDevice_impl.h>


Public Member Functions | |
| ExecutableDevice_impl (char *, char *, char *) | |
| ExecutableDevice_impl (char *, char *, char *, CF::Properties capacities) | |
| ~ExecutableDevice_impl () | |
| CF::ExecutableDevice::ProcessID_Type | execute (const char *name, const CF::Properties &options, const CF::Properties ¶meters) throw (CF::ExecutableDevice::ExecuteFail, CF::InvalidFileName, CF::ExecutableDevice::InvalidOptions, CF::ExecutableDevice::InvalidParameters, CF::ExecutableDevice::InvalidFunction, CF::Device::InvalidState, CORBA::SystemException) |
| void | terminate (CF::ExecutableDevice::ProcessID_Type processId) throw (CF::Device::InvalidState, CF::ExecutableDevice::InvalidProcess, CORBA::SystemException) |
| void | configure (const CF::Properties &configProperties) throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException) |
| The core framework provides an implementation for this method. | |
| 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) |
| 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< fileCount > | loadedFiles |
| 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 | |
| ExecutableDevice_impl () | |
| ExecutableDevice_impl (ExecutableDevice_impl &) | |
Private Attributes | |
| CF::ExecutableDevice::ProcessID_Type | PID |
Definition at line 42 of file ExecutableDevice_impl.h.
enum Device_impl::AnyComparisonType [protected, inherited] |
Definition at line 34 of file Device_impl.h.
| ExecutableDevice_impl::ExecutableDevice_impl | ( | char * | id, | |
| char * | lbl, | |||
| char * | sftwrPrfl | |||
| ) |
Definition at line 58 of file ExecutableDevice_impl.cpp.
| ExecutableDevice_impl::ExecutableDevice_impl | ( | char * | id, | |
| char * | lbl, | |||
| char * | sftwrPrfl, | |||
| CF::Properties | capacities | |||
| ) |
Definition at line 67 of file ExecutableDevice_impl.cpp.
| ExecutableDevice_impl::~ExecutableDevice_impl | ( | ) | [inline] |
Definition at line 52 of file ExecutableDevice_impl.h.
| ExecutableDevice_impl::ExecutableDevice_impl | ( | ) | [private] |
| ExecutableDevice_impl::ExecutableDevice_impl | ( | ExecutableDevice_impl & | ) | [private] |
| CF::ExecutableDevice::ProcessID_Type ExecutableDevice_impl::execute | ( | const char * | name, | |
| const CF::Properties & | options, | |||
| const CF::Properties & | parameters | |||
| ) | throw (CF::ExecutableDevice::ExecuteFail, CF::InvalidFileName, CF::ExecutableDevice::InvalidOptions, CF::ExecutableDevice::InvalidParameters, CF::ExecutableDevice::InvalidFunction, CF::Device::InvalidState, CORBA::SystemException) |
Definition at line 77 of file ExecutableDevice_impl.cpp.
References Device_impl::isDisabled(), LoadableDevice_impl::isFileLoaded(), Device_impl::isUnlocked(), and PID.

| void ExecutableDevice_impl::terminate | ( | CF::ExecutableDevice::ProcessID_Type | processId | ) | throw (CF::Device::InvalidState, CF::ExecutableDevice::InvalidProcess, CORBA::SystemException) |
Definition at line 233 of file ExecutableDevice_impl.cpp.
References Device_impl::isDisabled(), and Device_impl::isLocked().

| void ExecutableDevice_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 LoadableDevice_impl.
Definition at line 274 of file ExecutableDevice_impl.cpp.
| void LoadableDevice_impl::incrementFile | ( | const char * | fileName | ) | [protected, inherited] |
Definition at line 117 of file LoadableDevice_impl.cpp.
References fileCount::counter, fileCount::fileId, and LoadableDevice_impl::loadedFiles.
Referenced by LoadableDevice_impl::load().
| void LoadableDevice_impl::decrementFile | ( | const char * | fileName | ) | [protected, inherited] |
Definition at line 160 of file LoadableDevice_impl.cpp.
References LoadableDevice_impl::loadedFiles.
Referenced by LoadableDevice_impl::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) [inherited] |
Definition at line 69 of file LoadableDevice_impl.cpp.
References LoadableDevice_impl::incrementFile(), Device_impl::isDisabled(), and Device_impl::isUnlocked().

| void LoadableDevice_impl::unload | ( | const char * | fileName | ) | throw (CF::InvalidFileName, CF::Device::InvalidState, CORBA::SystemException) [inherited] |
Definition at line 141 of file LoadableDevice_impl.cpp.
References LoadableDevice_impl::decrementFile(), Device_impl::isDisabled(), and Device_impl::isLocked().

| bool LoadableDevice_impl::isFileLoaded | ( | const char * | fileName | ) | [inherited] |
Definition at line 190 of file LoadableDevice_impl.cpp.
References LoadableDevice_impl::loadedFiles.
Referenced by execute().
| 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] |
| bool Device_impl::allocate | ( | CORBA::Any & | deviceCapacity, | |
| const CORBA::Any & | resourceRequest | |||
| ) | [protected, inherited] |
| char * Device_impl::label | ( | ) | throw (CORBA::SystemException) [inherited] |
| char * Device_impl::softwareProfile | ( | ) | throw (CORBA::SystemException) [inherited] |
| CF::Device::UsageType Device_impl::usageState | ( | ) | throw (CORBA::SystemException) [inherited] |
| CF::Device::AdminType Device_impl::adminState | ( | ) | throw (CORBA::SystemException) [inherited] |
| void Device_impl::adminState | ( | CF::Device::AdminType | _adminType | ) | throw (CORBA::SystemException) [inherited] |
| CF::Device::OperationalType Device_impl::operationalState | ( | ) | throw (CORBA::SystemException) [inherited] |
| 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().

| 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().

| bool Device_impl::isUnlocked | ( | ) | [inherited] |
Definition at line 478 of file Device_impl.cpp.
References Device_impl::_adminState.
Referenced by Device_impl::allocateCapacity(), execute(), and LoadableDevice_impl::load().
| bool Device_impl::isLocked | ( | ) | [inherited] |
Definition at line 488 of file Device_impl.cpp.
References Device_impl::_adminState.
Referenced by Device_impl::deallocateCapacity(), terminate(), and LoadableDevice_impl::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(), execute(), LoadableDevice_impl::load(), terminate(), and LoadableDevice_impl::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] |
| void Resource_impl::stop | ( | ) | throw (CF::Resource::StopError, CORBA::SystemException) [inherited] |
| 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] |
| void PropertySet_impl::validate | ( | CF::Properties | property, | |
| CF::Properties & | validProps, | |||
| CF::Properties & | invalidProps | |||
| ) | [protected, inherited] |
| 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.
CF::ExecutableDevice::ProcessID_Type ExecutableDevice_impl::PID [private] |
vector< fileCount > LoadableDevice_impl::loadedFiles [protected, inherited] |
Definition at line 57 of file LoadableDevice_impl.h.
Referenced by LoadableDevice_impl::decrementFile(), LoadableDevice_impl::incrementFile(), LoadableDevice_impl::isFileLoaded(), and LoadableDevice_impl::~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().
1.5.4