public class ConfigRouter extends Routable
| Modifier and Type | Field and Description |
|---|---|
private ConnectingTypeList |
connectingTypes
connecting types supported by the Config router.
|
private java.util.List<java.lang.String> |
ipRoutes
List of IP Routes.
|
private java.util.List<VariableAssignment> |
route
The routes of the configurable router.
|
| Constructor and Description |
|---|
ConfigRouter(java.awt.Point p)
Constructor.
|
ConfigRouter(java.awt.Point p,
VariableAssignment name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ItemVisitor visitor)
accept-method for nodevisitor (VisitorPattern).
|
void |
acceptConnectingTypeVisitor(ConnectingTypeVisitor visitor)
Visitor for creating the right connection.
|
void |
acceptConnectVisitor(ConnectVisitor visitor)
accept-method for connectvisitor (VisitorPattern).
|
void |
addConnectingType(ConnectingType type)
true for adding the type to the list.
|
void |
addRoute(VariableAssignment pRoute)
adds a route to the configurable router.
|
ConnectingTypeList |
getConnectingTypes()
getter for the connecting types.
|
java.util.List<java.lang.String> |
getIpRoutes()
getter of List of IP Routes.
|
java.util.List<VariableAssignment> |
getRoute()
getter for getRoute.
|
java.awt.image.BufferedImage |
giveImage()
the Image for the symbol.
|
void |
removeConnectingType(ConnectingType type)
removing the type of the list.
|
draw, getName, getObserver, markAsSelected, notifyObserver, registerObserver, removeObserver, setNamecontains, containsVaByIdentifier, getBoundary, getPoint, getPropertyBar, getPropertyDraw, getSelected, getSelectedNodes, selectAll, selectMultiple, selectNone, selectOne, selectRect, selectToggle, setBoundary, setPoint, setSelected, updatePositionprivate final ConnectingTypeList connectingTypes
private final java.util.List<VariableAssignment> route
private final java.util.List<java.lang.String> ipRoutes
public ConfigRouter(java.awt.Point p)
p - the point.public ConfigRouter(java.awt.Point p,
VariableAssignment name)
p - the point.name - the HOSTNAME. For example, the variable HOSTNAME of the fli4l configuration.public ConnectingTypeList getConnectingTypes()
public java.util.List<java.lang.String> getIpRoutes()
public void accept(ItemVisitor visitor)
Itempublic java.awt.image.BufferedImage giveImage()
Nodepublic void removeConnectingType(ConnectingType type)
type - type to be removedpublic void addConnectingType(ConnectingType type)
type - type to be addedpublic void acceptConnectingTypeVisitor(ConnectingTypeVisitor visitor)
DeviceacceptConnectingTypeVisitor in class Devicevisitor - the visitor.public void acceptConnectVisitor(ConnectVisitor visitor)
ItemacceptConnectVisitor in class Itemvisitor - the connectvisitor.public final java.util.List<VariableAssignment> getRoute()
public final void addRoute(VariableAssignment pRoute)
pRoute - route to add.