Class ExternalInputCoupling<T extends Number & Comparable<T>,P>

java.lang.Object
nl.tudelft.simulation.dsol.formalisms.devs.esdevs.ExternalInputCoupling<T,P>
Type Parameters:
T - the time type
P - the type of message the EIC accepts.

public class ExternalInputCoupling<T extends Number & Comparable<T>,P> extends Object
EIC class. EIC stands for External Input Coupling, which is a coupling between the outside of a coupled model and a component within that coupled model. The definition can be found in Zeigler et al. (2000), p. 86-87.

Copyright (c) 2009-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.

Author:
Mamadou Seck
, Alexander Verbraeck
  • Constructor Details

    • ExternalInputCoupling

      public ExternalInputCoupling(InputPortInterface<T,P> fromPort, InputPortInterface<T,P> toPort) throws Exception
      Make the wiring between output and input.
      Parameters:
      fromPort - InputPortInterface<T,P>; the output port of the sending component
      toPort - InputPortInterface<T,P>; input port of the receiving component
      Throws:
      Exception - in case of wiring to self
  • Method Details

    • getFromPort

      public InputPortInterface<T,P> getFromPort()
      Returns:
      the output port of the sending component.
    • getToPort

      public InputPortInterface<T,P> getToPort()
      Returns:
      the input port of the receiving component.