#include <iso_flock_com.h>
Collaboration diagram for iso::flock::FlockCom:
Public Member Functions | ||||
void | createOSCControl (unsigned int pReceiverPort, const base::String &pSenderIP, unsigned int pSenderPort) throw (FlockException) | |||
create osc control | ||||
void | createOSCControl (OSCControl *pControl, unsigned int pReceiverPort, const base::String &pSenderIP, unsigned int pSenderPort) throw (FlockException) | |||
create osc control | ||||
void | removeSenders () throw (com::ComException) | |||
remove all senders with the exception of those involved in osc control
| ||||
void | removeSender (const base::String &pSenderName) throw (com::ComException) | |||
remove sender | ||||
void | removeReceivers () throw (com::ComException) | |||
remove all receivers with the exception of those involved in osc control
| ||||
ParameterRegistration * | parameterRegistration (com::Sender *pSender, const base::String &pSwarmName, const base::String &pParameterName) throw (FlockException) | |||
retrieve parameter registration information | ||||
QList< ParameterRegistration * > | parameterRegistrations (const base::String &pSwarmName, const base::String &pParameterName) const | |||
return parameter registration information | ||||
bool | checkParameter (const base::String &pSenderName, const base::String &pSwarmName, const base::String &pParameterName) | |||
check if parameter is registered for sending | ||||
void | registerParameter (const base::String &pSenderName, const base::String &pSwarmName, const base::String &pParameterName) throw (FlockException) | |||
register parameter for sending | ||||
void | registerParameter (const base::String &pSenderName, const base::String &pSwarmName, const base::String &pParameterName, const math::Vector< float > &pMinParValue, const math::Vector< float > &pMaxParValue) throw (FlockException) | |||
register parameter for sending | ||||
void | registerParameter (const base::String &pSenderName, const base::String &pSwarmName, const base::String &pParameterName, const math::Vector2< int > &pAgentRange) throw (FlockException) | |||
register parameter for sending | ||||
void | registerParameter (const base::String &pSenderName, const base::String &pSwarmName, const base::String &pParameterName, const math::Vector2< int > &pAgentRange, const math::Vector< float > &pMinParValue, const math::Vector< float > &pMaxParValue) throw (FlockException) | |||
register parameter for sending | ||||
void | registerParameter (const base::String &pSenderName, unsigned int pSendInterval, const base::String &pSwarmName, const base::String &pParameterName) throw (FlockException) | |||
register parameter for sending | ||||
void | registerParameter (const base::String &pSenderName, unsigned int pSendInterval, const base::String &pSwarmName, const base::String &pParameterName, const math::Vector< float > &pMinParValue, const math::Vector< float > &pMaxParValue) throw (FlockException) | |||
register parameter for sending | ||||
void | registerParameter (const base::String &pSenderName, unsigned int pSendInterval, const base::String &pSwarmName, const base::String &pParameterName, const math::Vector2< int > &pAgentRange) throw (FlockException) | |||
register parameter for sending | ||||
void | registerParameter (const base::String &pSenderName, unsigned int pSendInterval, const base::String &pSwarmName, const base::String &pParameterName, const math::Vector2< int > &pAgentRange, const math::Vector< float > &pMinParValue, const math::Vector< float > &pMaxParValue) throw (FlockException) | |||
register parameter for sending | ||||
void | deregisterParameter (const base::String &pSenderName, const base::String &pSwarmName, const base::String &pParameterName) throw (FlockException) | |||
deregister parameter from sending | ||||
virtual void | update () throw (FlockException) | |||
update messenger
| ||||
Static Public Member Functions | ||||
static FlockCom & | get () | |||
get flock com singleton instance | ||||
static void | destroy () | |||
destroy flock com singleton instance | ||||
Protected Member Functions | ||||
FlockCom () | ||||
default constructor | ||||
~FlockCom () | ||||
destructor | ||||
bool | checkParameterRegistration (com::Sender *pSender, const base::String &pSwarmName, const base::String &pParameterName) | |||
check if parameter registration for sender already exists | ||||
void | send () throw (FlockException) | |||
update senders
| ||||
void | sendDefaultMessage (com::Sender *pSender) throw (FlockException) | |||
send default message | ||||
void | updateDefaultMessage (ParameterRegistration *pRegistration, com::Message &pMessage) throw (FlockException) | |||
update default message | ||||
void | updateDefaultMessage (ParameterRegistration *pRegistration, float *pValueArray, unsigned int pParameterDim, unsigned int pParameterCount, com::Message &pMessage) throw (FlockException) | |||
update default message | ||||
void | sendOSCMessage (com::Sender *pSender) throw (FlockException) | |||
send osc message | ||||
void | sendOSCMessage (com::Sender *pSender, ParameterRegistration *pRegistration) throw (FlockException) | |||
update osc sender | ||||
void | sendOSCMessage (com::Sender *pSender, ParameterRegistration *pRegistration, const base::String &pAddress, Parameter &pParameter) throw (FlockException) | |||
update osc sender | ||||
Protected Attributes | ||||
QMultiHash< com::Sender *, ParameterRegistration * > | mParameterRegistry | |||
singleton instance | ||||
QTime | mTime | |||
parameter communication registry | ||||
Static Protected Attributes | ||||
static FlockCom * | sFlockCom |
FlockCom::FlockCom | ( | ) | [protected] |
default constructor
FlockCom::~FlockCom | ( | ) | [protected] |
destructor
FlockCom & FlockCom::get | ( | ) | [static] |
get flock com singleton instance
void FlockCom::destroy | ( | ) | [static] |
destroy flock com singleton instance
void FlockCom::createOSCControl | ( | unsigned int | pReceiverPort, | |
const base::String & | pSenderIP, | |||
unsigned int | pSenderPort | |||
) | throw (FlockException) |
create osc control
pReceiverPort | receiver port number | |
pSenderIP | sender ip address | |
pSenderPort | sender port number |
FlockException | failed to create osc control |
void FlockCom::createOSCControl | ( | OSCControl * | pControl, | |
unsigned int | pReceiverPort, | |||
const base::String & | pSenderIP, | |||
unsigned int | pSenderPort | |||
) | throw (FlockException) |
create osc control
pControl | OSCControl | |
pReceiverPort | receiver port number | |
pSenderIP | sender ip address | |
pSenderPort | sender port number |
FlockException | failed to create osc control |
void FlockCom::removeSenders | ( | ) | throw (com::ComException) |
remove all senders with the exception of those involved in osc control
failed | to remove senders |
void FlockCom::removeSender | ( | const base::String & | pSenderName | ) | throw (com::ComException) |
remove sender
pSenderName | name of sender |
failed | to remove sender |
void FlockCom::removeReceivers | ( | ) | throw (com::ComException) |
remove all receivers with the exception of those involved in osc control
failed | to remove receivers |
ParameterRegistration * FlockCom::parameterRegistration | ( | com::Sender * | pSender, | |
const base::String & | pSwarmName, | |||
const base::String & | pParameterName | |||
) | throw (FlockException) |
retrieve parameter registration information
pSenderName | name of sender | |
pSwarmName | name of swarm | |
pParameterName | name of parameter |
ComException | failed to retrieve paramater registration |
QList< ParameterRegistration * > FlockCom::parameterRegistrations | ( | const base::String & | pSwarmName, | |
const base::String & | pParameterName | |||
) | const |
return parameter registration information
pSwarmName | name of swarm / env | |
pParameterName | name of parameter |
bool FlockCom::checkParameter | ( | const base::String & | pSenderName, | |
const base::String & | pSwarmName, | |||
const base::String & | pParameterName | |||
) |
check if parameter is registered for sending
pSenderName | name of sender | |
pSwarmName | name of swarm | |
pParameterName | name of parameter |
void FlockCom::registerParameter | ( | const base::String & | pSenderName, | |
const base::String & | pSwarmName, | |||
const base::String & | pParameterName | |||
) | throw (FlockException) |
register parameter for sending
pSenderName | name of sender | |
pSwarmName | name of swarm | |
pParameterName | name of parameter |
FlockException | failed to register parameter |
void FlockCom::registerParameter | ( | const base::String & | pSenderName, | |
const base::String & | pSwarmName, | |||
const base::String & | pParameterName, | |||
const math::Vector< float > & | pMinParValue, | |||
const math::Vector< float > & | pMaxParValue | |||
) | throw (FlockException) |
register parameter for sending
pSenderName | name of sender | |
pSwarmName | name of swarm | |
pParameterName | name of parameter | |
pMinParValue | minimum parameter value | |
pMaxParValue | maximum parameter value |
FlockException | failed to register parameter |
void FlockCom::registerParameter | ( | const base::String & | pSenderName, | |
const base::String & | pSwarmName, | |||
const base::String & | pParameterName, | |||
const math::Vector2< int > & | pAgentRange | |||
) | throw (FlockException) |
register parameter for sending
pSenderName | name of sender | |
pSwarmName | name of swarm | |
pParameterName | name of parameter | |
pAgentRange | range of agents |
FlockException | failed to register parameter |
void FlockCom::registerParameter | ( | const base::String & | pSenderName, | |
const base::String & | pSwarmName, | |||
const base::String & | pParameterName, | |||
const math::Vector2< int > & | pAgentRange, | |||
const math::Vector< float > & | pMinParValue, | |||
const math::Vector< float > & | pMaxParValue | |||
) | throw (FlockException) |
register parameter for sending
pSenderName | name of sender | |
pSwarmName | name of swarm | |
pParameterName | name of parameter | |
pAgentRange | range of agents | |
pMinParValue | minimum parameter value | |
pMaxParValue | maximum parameter value |
FlockException | failed to register parameter |
void FlockCom::registerParameter | ( | const base::String & | pSenderName, | |
unsigned int | pSendInterval, | |||
const base::String & | pSwarmName, | |||
const base::String & | pParameterName | |||
) | throw (FlockException) |
register parameter for sending
pSenderName | name of sender | |
pSendInterval | send interval | |
pSwarmName | name of swarm | |
pParameterName | name of parameter |
FlockException | failed to register parameter |
void FlockCom::registerParameter | ( | const base::String & | pSenderName, | |
unsigned int | pSendInterval, | |||
const base::String & | pSwarmName, | |||
const base::String & | pParameterName, | |||
const math::Vector< float > & | pMinParValue, | |||
const math::Vector< float > & | pMaxParValue | |||
) | throw (FlockException) |
register parameter for sending
pSenderName | name of sender | |
pSendInterval | send interval | |
pSwarmName | name of swarm | |
pParameterName | name of parameter | |
pMinParValue | minimum parameter value | |
pMaxParValue | maximum parameter value |
FlockException | failed to register parameter |
void FlockCom::registerParameter | ( | const base::String & | pSenderName, | |
unsigned int | pSendInterval, | |||
const base::String & | pSwarmName, | |||
const base::String & | pParameterName, | |||
const math::Vector2< int > & | pAgentRange | |||
) | throw (FlockException) |
register parameter for sending
pSenderName | name of sender | |
pSendInterval | send interval | |
pSwarmName | name of swarm | |
pParameterName | name of parameter | |
pAgentRange | range of agents |
FlockException | failed to register parameter |
void FlockCom::registerParameter | ( | const base::String & | pSenderName, | |
unsigned int | pSendInterval, | |||
const base::String & | pSwarmName, | |||
const base::String & | pParameterName, | |||
const math::Vector2< int > & | pAgentRange, | |||
const math::Vector< float > & | pMinParValue, | |||
const math::Vector< float > & | pMaxParValue | |||
) | throw (FlockException) |
register parameter for sending
pSenderName | name of sender | |
pSendInterval | send interval | |
pSwarmName | name of swarm | |
pParameterName | name of parameter | |
pAgentRange | range of agents | |
pMinParValue | minimum parameter value | |
pMaxParValue | maximum parameter value |
FlockException | failed to register parameter |
void FlockCom::deregisterParameter | ( | const base::String & | pSenderName, | |
const base::String & | pSwarmName, | |||
const base::String & | pParameterName | |||
) | throw (FlockException) |
deregister parameter from sending
pSenderName | name of sender | |
pSwarmName | name of swarm | |
pParameterName | name of parameter |
void FlockCom::update | ( | ) | throw (FlockException) [virtual] |
bool FlockCom::checkParameterRegistration | ( | com::Sender * | pSender, | |
const base::String & | pSwarmName, | |||
const base::String & | pParameterName | |||
) | [protected] |
check if parameter registration for sender already exists
pSenderName | name of sender | |
pSwarmName | name of swarm | |
pParameterName | name of parameter |
void FlockCom::send | ( | ) | throw (FlockException) [protected] |
update senders
ComException | failed to update senders |
void FlockCom::sendDefaultMessage | ( | com::Sender * | pSender | ) | throw (FlockException) [protected] |
send default message
pSender | sender |
ComException | failed to update sender |
void FlockCom::updateDefaultMessage | ( | ParameterRegistration * | pRegistration, | |
com::Message & | pMessage | |||
) | throw (FlockException) [protected] |
update default message
pRegistration | parameter registration | |
pMessage | message |
ComException | failed to update sender |
void FlockCom::updateDefaultMessage | ( | ParameterRegistration * | pRegistration, | |
float * | pValueArray, | |||
unsigned int | pParameterDim, | |||
unsigned int | pParameterCount, | |||
com::Message & | pMessage | |||
) | throw (FlockException) [protected] |
update default message
pRegistration | parameter registration | |
pValueArray | array of parameter values | |
pParameterDim | parameter dimension | |
pParameterCount | parameter count | |
pMessage | message |
ComException | failed to update sender |
void FlockCom::sendOSCMessage | ( | com::Sender * | pSender | ) | throw (FlockException) [protected] |
send osc message
pSender | sender |
ComException | failed to update sender |
void FlockCom::sendOSCMessage | ( | com::Sender * | pSender, | |
ParameterRegistration * | pRegistration | |||
) | throw (FlockException) [protected] |
update osc sender
pSender | sender | |
pRegistration | parameter registration |
ComException | failed to update sender |
void FlockCom::sendOSCMessage | ( | com::Sender * | pSender, | |
ParameterRegistration * | pRegistration, | |||
const base::String & | pAddress, | |||
Parameter & | pParameter | |||
) | throw (FlockException) [protected] |
update osc sender
pSender | sender | |
pRegistration | parameter registration | |
pAddress | osc address pattern | |
pParameter | parameter |
ComException | failed to update sender |
FlockCom * FlockCom::sFlockCom [static, protected] |
QMultiHash< com::Sender*, ParameterRegistration* > iso::flock::FlockCom::mParameterRegistry [protected] |
singleton instance
QTime iso::flock::FlockCom::mTime [protected] |
parameter communication registry