module Quartz::Coupleable

Overview

The Coupleable mixin provides models with the ability to be coupled with other coupleables through an input and output interface.

Included Modules

Direct including types

Defined in:

quartz/coupleable.cr

Instance Method Summary

Instance Method Detail

def add_input_port(name) #

Add given input port to self.


[View source]
def add_output_port(name) #

Add given output port to self.


[View source]
def add_port(port : InputPort) #

Add given port to self.


[View source]
def add_port(port : OutputPort) #

Add given port to self.


[View source]
def each_input_port(&) #

Calls given block once for each input port, passing that element as a parameter.


[View source]
def each_output_port(&) #

Calls given block once for each output port, passing that element as a parameter.


[View source]
def input_port(name : Name) : InputPort #

Find the input port identified by the given name.


[View source]
def input_port?(name : Name) : InputPort | Nil #

Find the input port identified by the given name.


[View source]
def input_port_list : Array(InputPort) #

Returns the list of input ports


[View source]
def input_port_names #

Returns the list of input ports' names


[View source]
def output_port(name : Name) : OutputPort #

Find the output port identified by the given name


[View source]
def output_port?(name : Name) : OutputPort | Nil #

Find the output port identified by the given name


[View source]
def output_port_list : Array(OutputPort) #

Returns the list of output ports


[View source]
def output_port_names #

Returns the list of output ports' names


[View source]
def remove_input_port(name) #

Removes given input port by its name.


[View source]
def remove_output_port(name) #

Removes given output port by its name.


[View source]
def remove_port(port : InputPort) #

Removes given input port from self.


[View source]
def remove_port(port : OutputPort) #

Removes given output port from self.


[View source]