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);
ConnectorPtr(te::process::Connector *pointer=nullptr)
ConnectorSharedPtr(te::process::Connector *pointer=nullptr)
Abstraction that represents a Connector between parameters of a Task.
void clear()
Checks if the association is valid.
const te::process::Task * getTaskFrom() const
Gets the param index 'from'.
const te::process::Task * getTaskTo() const
Gets the param index 'to'.
const std::string & getId() const
Connector()
It initializes the Connector.
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...
te::process::Task * m_taskFrom
std::size_t m_paramIndexTo
bool isValid() const
Checks if the parameter from the task from is ready to be pushed into the taskTo.
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 disassociate()
Based on the association, gets the parameter from the taskFrom and pushes it into the taskTo....
void setId(const std::string &id)
Clears the association.
std::size_t getParamIndexTo() const
Check if an a association could be made between tasks and parameters indexes informed.
std::size_t getParamIndexFrom() const
Gets the task 'to'.
std::size_t m_paramIndexFrom
std::string m_id
The ID of the connector.
bool isReady() const
Gets the task 'from'.
virtual ~Connector()
Virtual destructor.
te::process::Task * m_taskTo
This class represents the description of a parameter.
Proxy configuration file for TerraView (see terraview_config.h).