diff options
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingForward.java')
-rw-r--r-- | src/org/noreply/fancydress/type3/routing/RoutingForward.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/org/noreply/fancydress/type3/routing/RoutingForward.java b/src/org/noreply/fancydress/type3/routing/RoutingForward.java new file mode 100644 index 0000000..0c5d567 --- /dev/null +++ b/src/org/noreply/fancydress/type3/routing/RoutingForward.java @@ -0,0 +1,26 @@ +package org.noreply.fancydress.type3.routing; + +/** + * Base class for all Routings that appear within a chain. + * + * Routings of this type mean that the packet is forwarded + * (possible after a SWAP operation) to a next node. + */ +public abstract class RoutingForward extends Routing { + /** + * Default constructor. + * + * @param type The routing type as integer. + */ + protected RoutingForward(int type) { + super (type); + } + + /** + * Get the same routing information as a SWAP type. + * + * @return A routing class with the same information, but with a SWAP routing type. + */ + public abstract RoutingForward asSwap(); +} + |