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.crInstance Method Summary
-
#add_input_port(name)
Add given input port to self.
-
#add_output_port(name)
Add given output port to self.
-
#add_port(port : InputPort)
Add given port to self.
-
#add_port(port : OutputPort)
Add given port to self.
-
#each_input_port(&)
Calls given block once for each input port, passing that element as a parameter.
-
#each_output_port(&)
Calls given block once for each output port, passing that element as a parameter.
-
#input_port(name : Name) : InputPort
Find the input port identified by the given name.
-
#input_port?(name : Name) : InputPort?
Find the input port identified by the given name.
-
#input_port_list : Array(InputPort)
Returns the list of input ports
-
#input_port_names
Returns the list of input ports' names
-
#output_port(name : Name) : OutputPort
Find the output port identified by the given name
-
#output_port?(name : Name) : OutputPort?
Find the output port identified by the given name
-
#output_port_list : Array(OutputPort)
Returns the list of output ports
-
#output_port_names
Returns the list of output ports' names
-
#remove_input_port(name)
Removes given input port by its name.
-
#remove_output_port(name)
Removes given output port by its name.
-
#remove_port(port : OutputPort)
Removes given output port from self.
-
#remove_port(port : InputPort)
Removes given input port from self.
Instance Method Detail
Calls given block once for each input port, passing that element as a parameter.
Calls given block once for each output port, passing that element as a parameter.
Find the input port identified by the given name.
Find the input port identified by the given name.
Find the output port identified by the given name
Find the output port identified by the given name