Skip to contents

Connection(systems) is the object returned by connect(): a list of connected connector systems or causal variables. It is placed directly in the equation list of a system.

Usage

Connection(systems = list(), domain = FALSE)

Arguments

systems

A list of connector systems or variables.

domain

Whether this is a domain only connection, see domain_connect().

Value

An object of class Connection.

Examples

t <- t_nounits
pin <- function(name) connector(System(list(), t, list(Variable("v", t),
  Variable("i", t, connect = Flow)), list(), name = name))
Connection(list(pin("a"), pin("b")))
#> connect(a, b)