cast Namespace Reference


Namespaces

namespace  cdl
namespace  core
namespace  examples
namespace  interfaces
namespace  testing

Classes

class  AlwaysPositiveTaskManager
class  ManagedComponent
class  SubarchitectureTaskManager
class  SubarchitectureWorkingMemory
class  UnmanagedComponent
class  WorkingMemoryAttachedComponent
struct  WorkingMemoryChangeFilterComparator
class  WorkingMemoryChangeFilterMap
class  WorkingMemoryChangeReceiver
class  MemberFunctionChangeReceiver
class  WorkingMemoryChangeThread
class  WorkingMemoryReaderComponent
class  WorkingMemoryWriterComponent
class  ComponentRunThread
class  CASTComponent
class  CASTComponentPermissionsMap
class  CASTData
class  CASTRateMeter
class  CASTTimer
class  CASTWMPermissionsMap
class  CASTWorkingMemory
class  CASTWorkingMemoryInterface
struct  StringMap
class  SubarchitectureComponent
class  CASTComponentFactory
class  CASTTimeServer
class  DynamicComponentCreator
class  ComponentLocator
class  ComponentServer
class  CASTException
class  ComponentCreationException
class  SubarchitectureComponentException
class  UnknownSubarchitectureException
class  WMException
class  DoesNotExistOnWMException
class  AlreadyExistsOnWMException
class  ConsistencyException
class  PermissionException
class  AbstractTester
class  RemoveMyself
class  BasicTester
class  LockTester
class  Proposer
class  TestTaskManager
class  TestWorkingMemory

Typedefs

typedef
std::tr1::unordered_set
< std::string > 
StringSet
typedef StringMap
< interfaces::WorkingMemoryPrx >
::map 
WMPrxMap
typedef StringMap< int >::map IntMap
typedef IceInternal::Handle
< cast::CASTComponent
CASTComponentPtr
typedef StringMap
< cdl::WorkingMemoryEntryPtr >
::map 
WMItemMap
typedef StringMap< int >::map VersionMap
typedef std::list< std::string > StringList
typedef
log4cxx::helpers::ObjectPtrT
< core::logging::ComponentLogger
ComponentLoggerPtr

Enumerations

enum  ChangeReceiverPriority { HIGH = cdl::RECEIVERPRIORITYHIGH, MEDIUM = cdl::RECEIVERPRIORITYMEDIUM, LOW = cdl::RECEIVERPRIORITYLOW }

Functions

cdl::WorkingMemoryChangeFilter createChangeFilter (const std::string &_type, const cdl::WorkingMemoryOperation &_operation, const std::string &_src, const std::string &_changeID, const std::string &_changeSA, const cdl::FilterRestriction &_restriction)
template<class Type >
cdl::WorkingMemoryChangeFilter createChangeFilter (const cdl::WorkingMemoryOperation &_operation, const std::string &_src, const std::string &_changeID, const std::string &_changeSA, const cdl::FilterRestriction &_restriction)
template<class Type >
cdl::WorkingMemoryChangeFilter createTypeFilter (const cdl::WorkingMemoryOperation &_operation, const cdl::FilterRestriction &_restriction)
template<class Type >
cdl::WorkingMemoryChangeFilter createGlobalTypeFilter (const cdl::WorkingMemoryOperation &_operation=cdl::WILDCARD)
template<class Type >
cdl::WorkingMemoryChangeFilter createLocalTypeFilter (const cdl::WorkingMemoryOperation &_operation=cdl::WILDCARD)
template<class Type >
cdl::WorkingMemoryChangeFilter createTypeFilter (const cdl::FilterRestriction &_restriction)
template<class Type >
cdl::WorkingMemoryChangeFilter createTypeFilter (const cdl::WorkingMemoryOperation &_operation)
cdl::WorkingMemoryChangeFilter createAddressFilter (const std::string &_id, const std::string &_subarch, const cdl::WorkingMemoryOperation &_operation=cdl::WILDCARD)
cdl::WorkingMemoryChangeFilter createIDFilter (const std::string &_id, const cdl::WorkingMemoryOperation &_operation=cdl::WILDCARD)
cdl::WorkingMemoryChangeFilter createAddressFilter (const cdl::WorkingMemoryAddress &_wma, const cdl::WorkingMemoryOperation &_operation=cdl::WILDCARD)
template<class Type >
cdl::WorkingMemoryChangeFilter createSourceFilter (const std::string &_component, const cdl::WorkingMemoryOperation &_operation=cdl::WILDCARD)
cdl::WorkingMemoryChangeFilter createOperationFilter (const cdl::WorkingMemoryOperation &_operation, const cdl::FilterRestriction &_restriction=cdl::LOCALSA)
string stringify (int _n)
TimeServerPrx getTimeServer ()
std::string exceptionMessage (const char *file, const char *function, int line, const char *format,...)
cdl::WorkingMemoryAddress makeWorkingMemoryAddress (const std::string &_id, const std::string &_subarch)
void tokenizeString (const string &_str, vector< string > &_tokens, const string &_delimiters)
bool operator< (const cdl::CASTTime &_ct1, const cdl::CASTTime &_ct2)
cdl::CASTTime operator- (const cdl::CASTTime &_start, const cdl::CASTTime &_end)
cdl::CASTTime castTimeSeconds (const double &_seconds)
cdl::CASTTime castTimeMillis (const long &_millis)
cdl::CASTTime castTimeMicros (const long &_micros)
std::ostream & operator<< (std::ostream &_stream, const cast::cdl::CASTTime &_ct)
std::ostream & operator<< (std::ostream &_stream, const cast::cdl::WorkingMemoryAddress &_wma)
std::ostream & operator<< (std::ostream &_stream, const cast::cdl::WorkingMemoryOperation &_op)
std::ostream & operator<< (std::ostream &_stream, const cast::cdl::FilterRestriction &_restriction)
std::ostream & operator<< (std::ostream &_stream, const cast::cdl::WorkingMemoryChangeFilter &_wmcf)
std::ostream & operator<< (std::ostream &_stream, const cast::cdl::WorkingMemoryChange &_wmc)
bool readAllowed (const cdl::WorkingMemoryPermissions &_permissions)
bool deleteAllowed (const cdl::WorkingMemoryPermissions &_permissions)
bool overwriteAllowed (const cdl::WorkingMemoryPermissions &_permissions)
unsigned int languageToPort (const cdl::ComponentLanguage &_language)
Ice::CommunicatorPtr getCommunicator (Ice::Current _crt=Ice::Current())
void tokenizeString (const std::string &_str, std::vector< std::string > &_tokens, const std::string &_delimiters=" ")
template<class IceClass >
const std::string & typeName ()
std::ostream & operator<< (std::ostream &_stream, const cast::cdl::WorkingMemoryPermissions &_perm)
void * loadLibrary (const string &_baseName)
DynamicComponentCreatorcreateComponentCreator (const std::string &_baseName) throw (CASTException)
void * loadLibrary (const std::string &_baseName)
void * runTest (void *_ptr)

Variables

const unsigned char ID_TABLE_SIZE = 62
const char id_table [ID_TABLE_SIZE+1] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

Detailed Description

Helper functions to create change filters for passing to WorkingMemoryReaderProcess.addChangerFilter. If you primarily care about the type of the data look at the *TypeFilter* methods. If you primarily care about the operation being performed look at the createOperationFilter methods. For the id or address of the data, look at the createID and createAddress methods. And for the component that changed the data, look at createSourceFilter.

Author:
nah


Typedef Documentation

typedef IceInternal::Handle<cast::CASTComponent> cast::CASTComponentPtr

Definition at line 46 of file CASTComponent.hpp.

typedef log4cxx::helpers::ObjectPtrT<core::logging::ComponentLogger> cast::ComponentLoggerPtr

Definition at line 30 of file ComponentServer.cpp.

typedef StringMap<int>::map cast::IntMap

Definition at line 38 of file WorkingMemoryAttachedComponent.hpp.

typedef std::list< std::string > cast::StringList

Definition at line 43 of file CASTWorkingMemory.hpp.

typedef std::tr1::unordered_set<std::string> cast::StringSet

Definition at line 41 of file SubarchitectureWorkingMemory.hpp.

typedef StringMap<int>::map cast::VersionMap

Definition at line 42 of file CASTWorkingMemory.hpp.

Definition at line 41 of file CASTWorkingMemory.hpp.

Definition at line 42 of file SubarchitectureWorkingMemory.hpp.


Enumeration Type Documentation

Enumerator:
HIGH 
MEDIUM 
LOW 

Definition at line 42 of file WorkingMemoryReaderComponent.hpp.


Function Documentation

cdl::CASTTime cast::castTimeMicros ( const long &  _micros  ) 

Definition at line 179 of file CASTUtils.cpp.

cdl::CASTTime cast::castTimeMillis ( const long &  _millis  ) 

Definition at line 167 of file CASTUtils.cpp.

cdl::CASTTime cast::castTimeSeconds ( const double &  _seconds  ) 

Definition at line 159 of file CASTUtils.cpp.

cdl::WorkingMemoryChangeFilter cast::createAddressFilter ( const cdl::WorkingMemoryAddress &  _wma,
const cdl::WorkingMemoryOperation &  _operation = cdl::WILDCARD 
) [inline]

Create a filter that listens to changes to the given id in the local subarchitecture. Optional parameter provides the operation to listen for.

Definition at line 179 of file ChangeFilterFactory.hpp.

cdl::WorkingMemoryChangeFilter cast::createAddressFilter ( const std::string &  _id,
const std::string &  _subarch,
const cdl::WorkingMemoryOperation &  _operation = cdl::WILDCARD 
) [inline]

Definition at line 144 of file ChangeFilterFactory.hpp.

template<class Type >
cdl::WorkingMemoryChangeFilter cast::createChangeFilter ( const cdl::WorkingMemoryOperation &  _operation,
const std::string &  _src,
const std::string &  _changeID,
const std::string &  _changeSA,
const cdl::FilterRestriction &  _restriction 
) [inline]

Create an arbitrary change filter.

Definition at line 76 of file ChangeFilterFactory.hpp.

cdl::WorkingMemoryChangeFilter cast::createChangeFilter ( const std::string &  _type,
const cdl::WorkingMemoryOperation &  _operation,
const std::string &  _src,
const std::string &  _changeID,
const std::string &  _changeSA,
const cdl::FilterRestriction &  _restriction 
) [inline]

Create an arbitrary change filter

Definition at line 52 of file ChangeFilterFactory.hpp.

DynamicComponentCreator * cast::createComponentCreator ( const std::string &  _baseName  )  throw (CASTException)

Definition at line 83 of file ComponentCreator.cpp.

template<class Type >
cdl::WorkingMemoryChangeFilter cast::createGlobalTypeFilter ( const cdl::WorkingMemoryOperation &  _operation = cdl::WILDCARD  )  [inline]

Create a filter that matches all operations on the given type across the architecture

Definition at line 108 of file ChangeFilterFactory.hpp.

cdl::WorkingMemoryChangeFilter cast::createIDFilter ( const std::string &  _id,
const cdl::WorkingMemoryOperation &  _operation = cdl::WILDCARD 
) [inline]

Create a filter that listens to changes to the given id in the local subarchitecture. Optional parameter provides the operation to listen for.

Definition at line 167 of file ChangeFilterFactory.hpp.

template<class Type >
cdl::WorkingMemoryChangeFilter cast::createLocalTypeFilter ( const cdl::WorkingMemoryOperation &  _operation = cdl::WILDCARD  )  [inline]

Create a filter that matches all operations on the given type in the component's subarchitecture.

Definition at line 118 of file ChangeFilterFactory.hpp.

cdl::WorkingMemoryChangeFilter cast::createOperationFilter ( const cdl::WorkingMemoryOperation &  _operation,
const cdl::FilterRestriction &  _restriction = cdl::LOCALSA 
) [inline]

Create a filter that listens to all untyped operations in the local sa, with an option to extend this restriction.

Definition at line 228 of file ChangeFilterFactory.hpp.

template<class Type >
cdl::WorkingMemoryChangeFilter cast::createSourceFilter ( const std::string &  _component,
const cdl::WorkingMemoryOperation &  _operation = cdl::WILDCARD 
) [inline]

Create a filter that listens to changes of a type made by a particular component. Optional parameter provides the operation to listen for.

Create a filter that listens to changes of made by a particular component. Optional parameter provides the operation to listen for.

Definition at line 195 of file ChangeFilterFactory.hpp.

template<class Type >
cdl::WorkingMemoryChangeFilter cast::createTypeFilter ( const cdl::WorkingMemoryOperation &  _operation  )  [inline]

Create a filter that matches the given type using the given operation.

Definition at line 138 of file ChangeFilterFactory.hpp.

template<class Type >
cdl::WorkingMemoryChangeFilter cast::createTypeFilter ( const cdl::FilterRestriction &  _restriction  )  [inline]

Create a filter that matches all operations on the given type using the given restriction.

Definition at line 128 of file ChangeFilterFactory.hpp.

template<class Type >
cdl::WorkingMemoryChangeFilter cast::createTypeFilter ( const cdl::WorkingMemoryOperation &  _operation,
const cdl::FilterRestriction &  _restriction 
) [inline]

Create a filter that matches the given type using the given operation and restriction

Definition at line 91 of file ChangeFilterFactory.hpp.

bool cast::deleteAllowed ( const cdl::WorkingMemoryPermissions &  _permissions  ) 

Checks input enum for requisite permissions.

Parameters:
_permissions 
Returns:

Definition at line 417 of file CASTUtils.cpp.

std::string cast::exceptionMessage ( const char *  file,
const char *  function,
int  line,
const char *  format,
  ... 
)

Definition at line 67 of file CASTUtils.cpp.

Ice::CommunicatorPtr cast::getCommunicator ( Ice::Current  _crt = Ice::Current()  )  [inline]

Get the current communicator pointer

Definition at line 52 of file CASTUtils.hpp.

cast::interfaces::TimeServerPrx cast::getTimeServer (  ) 

Definition at line 41 of file CASTUtils.cpp.

unsigned int cast::languageToPort ( const cdl::ComponentLanguage &  _language  ) 

Convert a language enum into the port that a server for that language should exist on.

Definition at line 433 of file CASTUtils.cpp.

void* cast::loadLibrary ( const std::string &  _baseName  ) 

void* cast::loadLibrary ( const string &  _baseName  ) 

Load a shared library and return handle.

Definition at line 23 of file ComponentCreator.cpp.

cdl::WorkingMemoryAddress cast::makeWorkingMemoryAddress ( const std::string &  _id,
const std::string &  _subarch 
)

Definition at line 81 of file CASTUtils.cpp.

cdl::CASTTime cast::operator- ( const cdl::CASTTime &  _start,
const cdl::CASTTime &  _end 
)

Definition at line 127 of file CASTUtils.cpp.

bool cast::operator< ( const cdl::CASTTime &  _ct1,
const cdl::CASTTime &  _ct2 
)

Definition at line 113 of file CASTUtils.cpp.

std::ostream& cast::operator<< ( std::ostream &  _stream,
const cast::cdl::WorkingMemoryPermissions _perm 
)

std::ostream & cast::operator<< ( std::ostream &  _stream,
const cast::cdl::WorkingMemoryChange _wmc 
)

Definition at line 294 of file CASTUtils.cpp.

std::ostream & cast::operator<< ( std::ostream &  _stream,
const cast::cdl::WorkingMemoryChangeFilter _wmcf 
)

Definition at line 272 of file CASTUtils.cpp.

std::ostream & cast::operator<< ( std::ostream &  _stream,
const cast::cdl::FilterRestriction _restriction 
)

Definition at line 255 of file CASTUtils.cpp.

std::ostream & cast::operator<< ( std::ostream &  _stream,
const cast::cdl::WorkingMemoryOperation _op 
)

Definition at line 230 of file CASTUtils.cpp.

std::ostream & cast::operator<< ( std::ostream &  _stream,
const cast::cdl::WorkingMemoryAddress _wma 
)

Definition at line 218 of file CASTUtils.cpp.

std::ostream & cast::operator<< ( std::ostream &  _stream,
const cast::cdl::CASTTime _ct 
)

Definition at line 211 of file CASTUtils.cpp.

bool cast::overwriteAllowed ( const cdl::WorkingMemoryPermissions &  _permissions  ) 

Checks input enum for requisite permissions.

Parameters:
_permissions 
Returns:

Definition at line 428 of file CASTUtils.cpp.

bool cast::readAllowed ( const cdl::WorkingMemoryPermissions &  _permissions  ) 

Checks input enum for requisite permissions.

Parameters:
_permissions 
Returns:

Definition at line 405 of file CASTUtils.cpp.

void* cast::runTest ( void *  _ptr  ) 

Definition at line 84 of file AbstractTester.cpp.

string cast::stringify ( int  _n  )  [inline]

Definition at line 47 of file WorkingMemoryWriterComponent.cpp.

void cast::tokenizeString ( const std::string &  _str,
std::vector< std::string > &  _tokens,
const std::string &  _delimiters = " " 
)

void cast::tokenizeString ( const string &  _str,
vector< string > &  _tokens,
const string &  _delimiters 
)

template<class IceClass >
const std::string& cast::typeName (  )  [inline]

Provide the id static id of the type

Definition at line 103 of file CASTUtils.hpp.


Variable Documentation

const char cast::id_table[ID_TABLE_SIZE+1] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

Definition at line 40 of file WorkingMemoryWriterComponent.cpp.

const unsigned char cast::ID_TABLE_SIZE = 62

Definition at line 39 of file WorkingMemoryWriterComponent.cpp.


Generated on Mon Jun 13 15:55:25 2011 for CAST C++ by  doxygen 1.5.8