- Type Parameters:
N
- node typeP
- parameter type
public interface Connector<N,P>
A
Connector
is used to specify a connection of a new node
with a graph at a position which is given by an existing node in
the graph. For example, the connector implementation could just redirect
all edges from the existing node to the new node.
A connector is invoked as follows: At first, a connecting action has to be
recorded in the connection queue by invocation of
Producer.connect(N, N, P, de.grogra.xl.impl.base.Connector<N, P>)
. Afterwards, on queue application the connecting
action is executed, which leads to the invocation of the connector.
- Author:
- Ole Kniemeyer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(N from, N to, P param, GraphQueue queue) Establish the connection.
-
Method Details
-
connect
Establish the connection. This method is invoked by the connecting queue on queue application.- Parameters:
from
- existing node in the graphto
- new node which shall be connected with the graphparam
- some parameter for the connector (the same as the one passed toProducer.connect(N, N, P, de.grogra.xl.impl.base.Connector<N, P>)
)queue
- connectding queue within which the connecting action has been recorded
-