public class BendpointConnectionRouter extends AbstractRouter
ConnectionRouter.NullConnectionRouter
NULL
Constructor and Description |
---|
BendpointConnectionRouter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getConstraint(Connection connection)
Gets the constraint for the given
Connection . |
void |
remove(Connection connection)
Removes the given connection from the map of constraints.
|
void |
route(Connection conn)
Routes the
Connection . |
void |
setConstraint(Connection connection,
java.lang.Object constraint)
Sets the constraint for the given
Connection . |
getEndPoint, getStartPoint, invalidate
public java.lang.Object getConstraint(Connection connection)
Connection
.getConstraint
in interface ConnectionRouter
getConstraint
in class AbstractRouter
connection
- The connection whose constraint we are retrievingpublic void remove(Connection connection)
remove
in interface ConnectionRouter
remove
in class AbstractRouter
connection
- The connection to removepublic void route(Connection conn)
Connection
. Expects the constraint to be a List of
Bendpoints
.conn
- The connection to routepublic void setConstraint(Connection connection, java.lang.Object constraint)
Connection
.setConstraint
in interface ConnectionRouter
setConstraint
in class AbstractRouter
connection
- The connection whose constraint we are settingconstraint
- The constraintCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.