package org.noreply.fancydress.type3.routing; /** * Base class for all Routing classes. * * Routing Type and Routing Information are pooled into this one entity. * * @see RoutingType */ public abstract class Routing { protected RoutingType type; /** * Default constructor. * * @param type The routing type as integer. */ protected Routing(int type) { this.type = new RoutingType(type); } /** * Return the total length in octets of the routing information. * * @return total length in octets of the routing information */ public abstract int getRoutingInformationLength(); /** * Return the routing information. * * @return routing information */ public abstract byte[] getRoutingInformation(); /** * Get the routing type of this instance. * * @return routing type */ public int getRoutingType() { return type.getType(); } }