|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.jku.fim.datalinksimulation.layer7.Application
at.jku.fim.datalinksimulation.layer7.enduser.TextSendingApplication
public class TextSendingApplication
Title: OSI Simulation Framework
Copyright: (c) 2004-05
Company: FIM@JKU, www.fim.uni-linz.ac.at
Field Summary | |
---|---|
protected SenderPanel |
gui
Associated GUI |
protected Logger |
logger
Associated Logger component |
protected int |
stationID
Station ID of host this application is running on |
Fields inherited from class at.jku.fim.datalinksimulation.layer7.Application |
---|
networkStackReference |
Constructor Summary | |
---|---|
TextSendingApplication(int stationId)
Constructor |
|
TextSendingApplication(SenderPanel gui,
int stationId)
Constructor |
Method Summary | |
---|---|
SenderPanel |
getGui()
|
Logger |
getLogger()
|
void |
informAboutNewData(NetworkStackParameters params,
RawData data)
This method is called whenever application data is ready |
void |
sendButtonPressed(java.awt.event.ActionEvent e)
This method is called whenever the Send-Button in the GUI is pressed |
void |
setGui(SenderPanel gui)
Set associated GUI component |
void |
setParentLogger(Logger parent)
|
protected void |
showMessage(java.lang.String str)
|
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 |
---|
protected SenderPanel gui
protected int stationID
protected Logger logger
Constructor Detail |
---|
public TextSendingApplication(SenderPanel gui, int stationId)
gui
- Associated GUIstationId
- Station ID of hostpublic TextSendingApplication(int stationId)
stationId
- Station ID of hostMethod Detail |
---|
protected void showMessage(java.lang.String str)
public void sendButtonPressed(java.awt.event.ActionEvent e)
e
- public void informAboutNewData(NetworkStackParameters params, RawData data)
IncomingNetworkStackObserver
params
- network stack paramspublic SenderPanel getGui()
public void setGui(SenderPanel gui)
gui
- Associated GUIpublic void setParentLogger(Logger parent)
parent
- Parent loggerpublic Logger getLogger()
getLogger
in class Application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |