Bully Task (12.12.2005)

at.jku.fim.datalinksimulation.layer7.enduser
Class TextReceivingApplication

java.lang.Object
  extended by at.jku.fim.datalinksimulation.layer7.Application
      extended by at.jku.fim.datalinksimulation.layer7.enduser.TextReceivingApplication
All Implemented Interfaces:
IncomingNetworkStackObserver

public class TextReceivingApplication
extends Application

Title: OSI Simulation Framework

Copyright: (c) 2004-05

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

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

Field Summary
protected  ReceiverPanel gui
          Associated GUI element
protected  Logger logger
          Associated logger component
protected  int stationId
          Identifier of the station this application is running on
 
Fields inherited from class at.jku.fim.datalinksimulation.layer7.Application
networkStackReference
 
Constructor Summary
TextReceivingApplication(int stationId)
          Constructor
TextReceivingApplication(ReceiverPanel gui, int stationId)
          Constructor
 
Method Summary
 ReceiverPanel getGui()
           
 Logger getLogger()
           
 void informAboutNewData(NetworkStackParameters params, RawData data)
          This method is called whenever the incoming network stack sends data to the application
 void setGui(ReceiverPanel gui)
          Set Associated GUI
 void setParentLogger(Logger parent)
           
 
Methods inherited from class at.jku.fim.datalinksimulation.layer7.Application
getNetworkStack, setNetworkStack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stationId

protected int stationId
Identifier of the station this application is running on


gui

protected ReceiverPanel gui
Associated GUI element


logger

protected Logger logger
Associated logger component

Constructor Detail

TextReceivingApplication

public TextReceivingApplication(ReceiverPanel gui,
                                int stationId)
Constructor

Parameters:
gui - Associated GUI
stationId - Station ID of host

TextReceivingApplication

public TextReceivingApplication(int stationId)
Constructor

Parameters:
stationId - Station ID of host
Method Detail

informAboutNewData

public void informAboutNewData(NetworkStackParameters params,
                               RawData data)
This method is called whenever the incoming network stack sends data to the application

Parameters:
params - NetworkStackParameters
data - RawData

getGui

public ReceiverPanel getGui()
Returns:
Returns associated GUI

setGui

public void setGui(ReceiverPanel gui)
Set Associated GUI

Parameters:
gui - Associated GUI

setParentLogger

public void setParentLogger(Logger parent)
Parameters:
parent - Parent logger

getLogger

public Logger getLogger()
Specified by:
getLogger in class Application
Returns:
Returns logger instance or null, if not available

Bully Task (12.12.2005)

Submit a bug

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