at.jku.fim.datalinksimulation.layer2.protocols
Class EasyL2FrameData
java.lang.Object
at.jku.fim.datalinksimulation.layer2.protocols.EasyL2FrameData
public class EasyL2FrameData
- extends java.lang.Object
Title: OSI Simulation Framework
This class is a representation of the data contained in an EasyL2 Frame.
Using methods in class EasyL2Utils it can be converted to RawData and back.
Copyright: (c) 2004-05
Company: FIM@JKU, www.fim.uni-linz.ac.at
- Version:
- $Id: EasyL2FrameData.java,v 1.1 2005/10/27 13:10:11 aputzinger Exp $
- Author:
- Andreas Putzinger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
preamble
private int preamble
source
private int source
destination
private int destination
size
private int size
data
private int[] data
crc
private int[] crc
EasyL2FrameData
public EasyL2FrameData()
getCrc
public int[] getCrc()
- Returns:
- Returns the crc.
setCrc
public void setCrc(int[] crc)
- Parameters:
crc
- The crc to set.
getData
public int[] getData()
- Returns:
- Returns the data.
setData
public void setData(int[] data)
- Parameters:
data
- The data to set.
getDestination
public int getDestination()
- Returns:
- Returns the destination.
setDestination
public void setDestination(int destination)
- Parameters:
destination
- The destination to set.
getPreamble
public int getPreamble()
- Returns:
- Returns the preamble.
setPreamble
public void setPreamble(int preamble)
- Parameters:
preamble
- The preamble to set.
getSize
public int getSize()
- Returns:
- Returns the size.
setSize
public void setSize(int size)
- Parameters:
size
- The size to set.
getSource
public int getSource()
- Returns:
- Returns the source.
setSource
public void setSource(int source)
- Parameters:
source
- The source to set.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object