Skip to contents

connector_type(sys) classifies a connector: "DomainConnector" when it has a single unknown which is a flow variable, "StreamConnector" when it has stream variables, and "RegularConnector" otherwise. isconnector(sys) tests whether a system was marked as a connector.

Usage

connector_type(sys)

isconnector(sys)

Arguments

sys

A System.

Value

A string, or a logical.

Examples

t <- t_nounits
p <- System(list(), t, list(Variable("v", t), Variable("i", t, connect = Flow)),
  list(), name = "p")
connector_type(p)
#> [1] "RegularConnector"