at.jku.fim.datalinksimulation.layer2.filters
Class EasyL2DecodingFilter
java.lang.Object
at.jku.fim.datalinksimulation.layer2.filters.EasyL2DecodingFilter
- All Implemented Interfaces:
- DecodingNetworkFilter, NetworkFilter
public class EasyL2DecodingFilter
- extends java.lang.Object
- implements DecodingNetworkFilter
Title: OSI Simulation Framework
Copyright: (c) 2004-05
Company: FIM@JKU, www.fim.uni-linz.ac.at
- Version:
- $Id: EasyL2DecodingFilter.java,v 1.1 2005/10/27 13:10:07 aputzinger Exp $
- Author:
- Andreas Putzinger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EasyL2DecodingFilter
public EasyL2DecodingFilter()
getFilterOSILayer
public int[] getFilterOSILayer()
- Specified by:
getFilterOSILayer
in interface NetworkFilter
- Returns:
- Returns an array containing all OSI layers a filter supports
decode
public RawData decode(NetworkStackParameters params,
RawData data,
Logger logger)
- Description copied from interface:
DecodingNetworkFilter
- Performs a decoding step within the incoming network stack
- Specified by:
decode
in interface DecodingNetworkFilter
- Parameters:
params
- stack parametersdata
- Data from the layer below (or from previous filter in this layer)logger
- Logger instance
- Returns:
- Returns decoded raw data or null, if data is consumed and not delivered further up
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface DecodingNetworkFilter
- Returns:
- Short description of this filter implementation