All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentcs.guing.base.model.ConnectableModelComponent Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
/**
 * 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