Bully Task (12.12.2005)

at.jku.fim.datalinksimulation.layer2.filters
Class EasyL2EncodingFilter

java.lang.Object
  extended by at.jku.fim.datalinksimulation.layer2.filters.EasyL2EncodingFilter
All Implemented Interfaces:
NetworkFilter, EncodingNetworkFilter

public class EasyL2EncodingFilter
extends java.lang.Object
implements EncodingNetworkFilter

Title: OSI Simulation Framework

Copyright: (c) 2004-05

Company: FIM@JKU, www.fim.uni-linz.ac.at

Version:
$Id: EasyL2EncodingFilter.java,v 1.1 2005/10/27 13:10:07 aputzinger Exp $
Author:
Andreas Putzinger

Field Summary
 
Fields inherited from interface at.jku.fim.datalinksimulation.networkstack.NetworkFilter
OSI_LAYER_1, OSI_LAYER_2, OSI_LAYER_3, OSI_LAYER_4, OSI_LAYER_5, OSI_LAYER_6
 
Constructor Summary
EasyL2EncodingFilter()
           
 
Method Summary
 RawData encode(NetworkStackParameters params, RawData data, Logger logger)
          Performs an encoding step within the outgoing network stack
 java.lang.String getDescription()
           
 int[] getFilterOSILayer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasyL2EncodingFilter

public EasyL2EncodingFilter()
Method Detail

encode

public RawData encode(NetworkStackParameters params,
                      RawData data,
                      Logger logger)
Description copied from interface: EncodingNetworkFilter
Performs an encoding step within the outgoing network stack

Specified by:
encode in interface EncodingNetworkFilter
Parameters:
params - network stack params
data - data from upper layer or previous filter
logger - Logger instance
Returns:
Returns encoded data

getFilterOSILayer

public int[] getFilterOSILayer()
Specified by:
getFilterOSILayer in interface NetworkFilter
Returns:
Returns an array containing all OSI layers a filter supports

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface EncodingNetworkFilter
Returns:
Short description of this filter implementation

Bully Task (12.12.2005)

Submit a bug

Copyright 2004, 2005 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.