#include "connection.h" namespace domain { Connection::Connection(std::string component, std::string pin, std::string bus, std::vector attributes, std::vector wires) : component(component), pin(pin), bus(bus), attributes(attributes), wires(wires) {} bool Connection::isConnecting(std::string component, std::string pin, std::string bus) { return this->component == component && this->pin == pin && this->bus == bus; } std::string Connection::getComponent() { return component; } std::string Connection::getPin() { return pin; } std::string Connection::getBus() { return bus; } std::vector Connection::getAttributes() { return attributes; } std::vector Connection::getWires() { return wires; } Attribute Connection::getAttribute(std::string name) { for(uint i=0; i