Go to the documentation of this file.
26 #ifndef __TERRALIB_PROCESS_INTERNAL_CONNECTOR_H
27 #define __TERRALIB_PROCESS_INTERNAL_CONNECTOR_H
60 const std::string&
getId()
const;
63 void setId(
const std::string&
id);
127 #endif // __TERRALIB_PROCESS_INTERNAL_CONNECTOR_H
const std::string & getId() const
static bool canAssociate(te::process::Task *taskFrom, std::size_t paramIndexFrom, te::process::Task *taskTo, std::size_t paramIndexTo, std::string &info)
Associates the 'paramIndexFrom' output parameter of the 'taskFrom' to the 'paramIndexTo' input parame...
const te::process::Task * getTaskFrom() const
Gets the param index 'from'.
bool isReady() const
Gets the task 'from'.
std::size_t m_paramIndexFrom
const te::process::Task * getTaskTo() const
Gets the param index 'to'.
void setId(const std::string &id)
Clears the association.
std::size_t getParamIndexFrom() const
Gets the task 'to'.
This class represents the description of a parameter.
void disassociate()
Based on the association, gets the parameter from the taskFrom and pushes it into the taskTo....
std::size_t m_paramIndexTo
virtual ~Connector()
Virtual destructor.
std::size_t getParamIndexTo() const
Check if an a association could be made between tasks and parameters indexes informed.
std::string m_id
The ID of the connector.
ConnectorPtr(te::process::Connector *pointer=nullptr)
te::process::Task * m_taskTo
te::process::Task * m_taskFrom
Connector()
It initializes the Connector.
Proxy configuration file for TerraView (see terraview_config.h).
ConnectorSharedPtr(te::process::Connector *pointer=nullptr)
void associate(te::process::Task *taskFrom, std::size_t paramIndexFrom, te::process::Task *taskTo, std::size_t paramIndexTo)
Disassociates this connector from your tasks.
void clear()
Checks if the association is valid.
bool isValid() const
Checks if the parameter from the task from is ready to be pushed into the taskTo.
Abstraction that represents a Connector between parameters of a Task.