summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/routing/RoutingForward.java
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-10-09 11:41:45 +0000
committerPeter Palfrader <peter@palfrader.org>2003-10-09 11:41:45 +0000
commit566d17f731637df6828bdf32502a0fb123882dbe (patch)
treefc09fdfb90953134fa1d25f73367307502348a22 /src/org/noreply/fancydress/type3/routing/RoutingForward.java
parent018eea460ee32df1b70c40c2eca05f06c06daca5 (diff)
Initial import
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingForward.java')
-rw-r--r--src/org/noreply/fancydress/type3/routing/RoutingForward.java26
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();
+}
+