org.opentcs.guing.base.model.ConnectableModelComponent Maven / Gradle / Ivy
/**
* Copyright (c) The openTCS Authors.
*
* This program is free software and subject to the MIT license. (For details,
* see the licensing information (LICENSE.txt) you should have received with
* this copy of the software.)
*/
package org.opentcs.guing.base.model;
import java.util.List;
import org.opentcs.guing.base.model.elements.AbstractConnection;
/**
* A {@link ModelComponent} that can be connected with another model component.
*/
public interface ConnectableModelComponent
extends
ModelComponent {
/**
* Adds a connection.
*
* @param connection The connection to be added.
*/
void addConnection(AbstractConnection connection);
/**
* Returns all connections.
*
* @return All connections.
*/
List getConnections();
/**
* Removes a connection.
*
* @param connection The connection to be removed.
*/
void removeConnection(AbstractConnection connection);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy