at.jku.fim.datalinksimulation.layer1.wire.damagedwire
Interface DamagingStrategy

All Known Implementing Classes:
SimpleDamagingStrategy

public interface DamagingStrategy

Title: OSI Simulation Framework

Copyright: (c) 2004-05

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

Must be implemented by concrete damaging strategies.

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

Method Summary
 RawData damageData(RawData data)
          Implementations of this method change the frame data; Damaged cables and wires are simulated.
 

Method Detail

damageData

RawData damageData(RawData data)
Implementations of this method change the frame data; Damaged cables and wires are simulated.

Parameters:
data - The original frame data
Returns:
Returns possibly modified or corrupted frame data or null, if strategy eats up whole frame