addConnection method
Adds new connection to this component.
Do not use it if you are not sure what you do. This is called in connectTwoComponents
function.
Implementation
void addConnection(Connection connection) {
connections.add(connection);
}