public abstract class AbstractRouter extends java.lang.Object implements IConnectionRouter
IConnectionRouters.| Constructor and Description |
|---|
AbstractRouter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Point |
getAnchoredReferencePoint(Connection connection,
int index)
Computes the reference point for the dynamic anchor at the given index.
|
protected <T extends IComputationStrategy.Parameter<?>> |
getComputationParameter(Connection connection,
int index,
java.lang.Class<T> parameterType)
Returns the specified parameter for the given index.
|
protected void |
updateComputationParameters(Connection connection,
int index)
Update's the reference point of the anchor with the given index.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitroute, wasInsertedprotected abstract Point getAnchoredReferencePoint(Connection connection, int index)
connection - The Connection that is currently routed.index - The index specifying the dynamic anchor for which to provide a
reference point.protected <T extends IComputationStrategy.Parameter<?>> T getComputationParameter(Connection connection, int index, java.lang.Class<T> parameterType)
T - The value type.connection - The Connection.index - The index.parameterType - The type of the parameter.protected void updateComputationParameters(Connection connection, int index)
connection - The connection whose anchor to update.index - The index of the connection anchor, whose reference point is
to be updated.Copyright (c) 2014 itemis AG and others. All rights reserved.