Quartz::Coupler
This mixin provides coupled models with several components and coupling methods.
Instance methods
Find the component identified by the given name
Raise NoSuchChildError error if name doesn't match any child
Adds an external input coupling (EIC) to self between the two given input ports.
Raises an InvalidPortHostError if no coupling can be established from
given ports hosts.
Adds an external input coupling (EIC) to self between the two given input ports.
Raises an InvalidPortHostError if no coupling can be established from
given ports hosts.
Adds an internal coupling (IC) to self between the two given ports.
Raises a FeedbackLoopError if p1 and p2 hosts are the same child
when constructing the internal coupling. Direct feedback loops are not
allowed, i.e, no output port of a component may be connected to an input
port of the same component.
Raises an InvalidPortHostError if no coupling can be established from
given ports hosts.
Adds an internal coupling (IC) to self between the two given ports.
Raises a FeedbackLoopError if p1 and p2 hosts are the same child
when constructing the internal coupling. Direct feedback loops are not
allowed, i.e, no output port of a component may be connected to an input
port of the same component.
Raises an InvalidPortHostError if no coupling can be established from
given ports hosts.
Adds an external output coupling (EOC) to self between the two given output ports.
Raises an InvalidPortHostError if no coupling can be established from
given ports hosts.
Adds an external output coupling (EOC) to self between the two given output ports.
Raises an InvalidPortHostError if no coupling can be established from
given ports hosts.
Adds a coupling to self. Establish a relation between the two given ports that belongs respectively to sender and receiver.
Note: If given port names p1 and p2 doesn't exist within their host (respectively sender and receiver), they will be automatically generated.
Adds a coupling to self. Establish a relation between the two given ports that belongs respectively to sender and receiver.
Note: If given port names p1 and p2 doesn't exist within their host (respectively sender and receiver), they will be automatically generated.
Adds a coupling to self. Establish a relation between the two given ports that belongs respectively to sender and receiver.
Note: If given port names p1 and p2 doesn't exist within their host (respectively sender and receiver), they will be automatically generated.
Adds a coupling to self. Establish a relation between the two given ports that belongs respectively to sender and receiver.
Note: If given port names p1 and p2 doesn't exist within their host (respectively sender and receiver), they will be automatically generated.
Adds an external input coupling (EIC) to self. Establish a relation between a self input port and a child input port.
Note: If given port names myport and iport doesn't exist within their host (respectively self and child), they will be automatically generated.
Adds an external input coupling (EIC) to self. Establish a relation between a self input port and a child input port.
Note: If given port names myport and iport doesn't exist within their host (respectively self and child), they will be automatically generated.
Adds an external input coupling (EIC) to self. Establish a relation between a self input port and a child input port.
Note: If given port names myport and iport doesn't exist within their host (respectively self and child), they will be automatically generated.
Adds an external input coupling (EIC) to self. Establish a relation between a self input port and a child input port.
Note: If given port names myport and iport doesn't exist within their host (respectively self and child), they will be automatically generated.
Adds an external output coupling (EOC) to self. Establish a relation between an output port of one of self's children and one of self's output ports.
Note: If given port names oport and myport doesn't exist within their host (respectively child and self), they will be automatically generated.
Adds an external output coupling (EOC) to self. Establish a relation between an output port of one of self's children and one of self's output ports.
Note: If given port names oport and myport doesn't exist within their host (respectively child and self), they will be automatically generated.
Adds an external output coupling (EOC) to self. Establish a relation between an output port of one of self's children and one of self's output ports.
Note: If given port names oport and myport doesn't exist within their host (respectively child and self), they will be automatically generated.
Adds an external output coupling (EOC) to self. Establish a relation between an output port of one of self's children and one of self's output ports.
Note: If given port names oport and myport doesn't exist within their host (respectively child and self), they will be automatically generated.
Deletes a external input coupling (EOC) from self.
Returns true if successful.
Deletes an internal coupling (IC) from self.
Returns true if successful.
Deletes an external output coupling (EOC) from self.
Returns true if successful.
Deletes a coupling from self. Returns true if successful.
Deletes a coupling from self. Returns true if successful.
Deletes an external output coupling (EOC) from self. Returns true if
successful.
Deletes an external output coupling (EOC) from self. Returns true if
successful.
Calls block once for each coupling, passing that element as a parameter. Given input port is used to filter external input couplings (EIC) having this port as a source.
Calls block once for each coupling, passing that element as a parameter. Given output port is used to filter internal couplings and external output couplings (IC, EOC) having this port as a source.
Calls block once for each coupling (EIC, IC, EOC), passing that element as a parameter.
Calls block once for each external input coupling (EIC) in
#input_couplings, passing that element as a parameter. Given port is
used to filter couplings having this port as a source.
TODO check if port in input_couplings ?
Calls block once for each external input coupling (EIC) in
#input_couplings, passing that element as a parameter.
Calls block once for each internal coupling (IC) in
#internal_couplings, passing that element as a parameter. Given port
is used to filter couplings having this port as a source.
Calls block once for each internal coupling (IC) in
#internal_couplings, passing that element as a parameter.
Calls block once for each external output coupling (EOC) in
#output_couplings, passing that element as a parameter. Given port is
used to filter couplings having this port as a source.
Calls block once for each external output coupling (EOC) in
#output_couplings, passing that element as a parameter.
Whether the given coupling has an associated transducer.
Returns all external input couplings attached to the given input port.
Returns all internal couplings attached to the given output port.
Returns all external output couplings attached to the given output port.
Returns the transducer associated with the given coupling.