From 566d17f731637df6828bdf32502a0fb123882dbe Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 9 Oct 2003 11:41:45 +0000 Subject: Initial import --- .../fancydress/type3/routing/RoutingForward.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/org/noreply/fancydress/type3/routing/RoutingForward.java (limited to 'src/org/noreply/fancydress/type3/routing/RoutingForward.java') 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(); +} + -- cgit v1.2.3