#include <iso_space_manager.h>
Collaboration diagram for iso::space::SpaceManager:
Public Member Functions | |
QList< base::String > | spaceNames () const |
return space names | |
Space & | space (const base::String &pSpaceName) throw (SpaceException) |
return space | |
bool | checkSpace (const base::String &pSpaceName) |
check if space exists | |
void | addSpace (Space *pSpace) throw (SpaceException) |
add space to space manager | |
void | removeSpace (const base::String &pSpaceName) throw (SpaceException) |
remove space | |
void | removeSpaces () |
remove all spaces | |
virtual void | addObject (const base::String &pSpaceName, SpaceObject *pObject, bool pVisible, NeighborGroupAlg *pNeighborGroupAlg=NULL) throw (SpaceException) |
add space object to space | |
virtual void | removeObject (const base::String &pSpaceName, SpaceObject *pObject) throw (SpaceException) |
remove single space object handle object | |
void | update () |
update all parameters | |
virtual base::String | info (int pPropagationLevel=0) const |
print space manager information | |
Static Public Member Functions | |
static SpaceManager & | get () |
get singleton instance | |
static void | destroy () |
destroy singleton instance | |
Static Public Attributes | |
static const base::String | sClassName |
Protected Member Functions | |
SpaceManager () | |
default constructor | |
~SpaceManager () | |
destructor | |
Protected Attributes | |
data::IndexHash< base::String, Space > | mSpaces |
spaces | |
Static Protected Attributes | |
static SpaceManager * | sSpaceManager |
singleton instance | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const SpaceManager &pSpaceManager) |
retrieve textual space manager info |
handles all agent parameters that need neighborhood calculation
Created by Daniel Bisig on 3/29/07. Copyright 2006 Daniel Bisig All rights reserved.
SpaceManager::SpaceManager | ( | ) | [protected] |
default constructor
SpaceManager::~SpaceManager | ( | ) | [protected] |
destructor
SpaceManager & SpaceManager::get | ( | ) | [static] |
get singleton instance
void SpaceManager::destroy | ( | ) | [static] |
destroy singleton instance
QList< base::String > SpaceManager::spaceNames | ( | ) | const |
return space names
Space & SpaceManager::space | ( | const base::String & | pSpaceName | ) | throw (SpaceException) |
bool SpaceManager::checkSpace | ( | const base::String & | pSpaceName | ) |
check if space exists
pSpaceName | space name |
void SpaceManager::addSpace | ( | Space * | pSpace | ) | throw (SpaceException) |
void SpaceManager::removeSpace | ( | const base::String & | pSpaceName | ) | throw (SpaceException) |
void SpaceManager::removeSpaces | ( | ) |
remove all spaces
void SpaceManager::addObject | ( | const base::String & | pSpaceName, | |
SpaceObject * | pObject, | |||
bool | pVisible, | |||
NeighborGroupAlg * | pNeighborGroupAlg = NULL | |||
) | throw (SpaceException) [virtual] |
add space object to space
pSpaceName | name of space to add space object to | |
pObject | space object | |
pVisible | visibility in neighbor space | |
pNeighborGroupAlg | neighbor group algorithm |
SpaceException | space not found or space dimension and space object dimension don't match or space is of wrong type |
void SpaceManager::removeObject | ( | const base::String & | pSpaceName, | |
SpaceObject * | pObject | |||
) | throw (SpaceException) [virtual] |
remove single space object handle object
pSpaceName | name of space to add space object to | |
pObject | single space object handle to remove |
SpaceException | space and or space object not found or space of wrong type |
void SpaceManager::update | ( | ) |
update all parameters
update parameter spaces
base::String SpaceManager::info | ( | int | pPropagationLevel = 0 |
) | const [virtual] |
print space manager information
pPropagationLevel | how far the propagation method proceeds through composite classes (-1: unlimited, 0: no proceeding, >0: limited proceeding) |
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const SpaceManager & | pSpaceManager | |||
) | [friend] |
retrieve textual space manager info
pOstream | output text stream | |
pSpaceManager | space manager |
const base::String SpaceManager::sClassName [static] |
SpaceManager * SpaceManager::sSpaceManager [static, protected] |
singleton instance
data::IndexHash<base::String, Space> iso::space::SpaceManager::mSpaces [protected] |
spaces