Bully Task (12.12.2005)

at.jku.fim.datalinksimulation.networkstack.outgoing
Class OutgoingNetworkStack

java.lang.Object
  extended by at.jku.fim.datalinksimulation.networkstack.outgoing.OutgoingNetworkStack

public class OutgoingNetworkStack
extends java.lang.Object

Title: OSI Simulation Framework

Copyright: (c) 2004-05

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

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

Field Summary
protected  OutgoingNetworkStackConfiguration configuration
          Associated Filter configuration
protected  Logger logger
          Associated logger instance
protected  java.util.Vector oberservers
          Connected oberservers
protected  java.lang.Object stationID
          Identifier of host
 
Constructor Summary
OutgoingNetworkStack(OutgoingNetworkStackConfiguration configuration, java.lang.Object stationID)
          Constructor
 
Method Summary
 OutgoingNetworkStackConfiguration getConfiguration()
           
 java.lang.Object getStationID()
           
 void send(NetworkStackParameters params, RawData data)
          Send something through the network stack to another station
 void setConfiguration(OutgoingNetworkStackConfiguration configuration)
          Set a new filter configuration
 void setParentLogger(Logger parent)
           
 void setStationID(java.lang.Object stationID)
           
 void subscribe(OutgoingNetworkStackObserver newObserver)
          Connect this instance to a wire
 void unsubscribe(OutgoingNetworkStackObserver registeredObserver)
          Disconnect wire
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

protected OutgoingNetworkStackConfiguration configuration
Associated Filter configuration


oberservers

protected java.util.Vector oberservers
Connected oberservers


logger

protected Logger logger
Associated logger instance


stationID

protected java.lang.Object stationID
Identifier of host

Constructor Detail

OutgoingNetworkStack

public OutgoingNetworkStack(OutgoingNetworkStackConfiguration configuration,
                            java.lang.Object stationID)
Constructor

Parameters:
configuration - Filter configuration
stationID - StationID of host
Method Detail

subscribe

public void subscribe(OutgoingNetworkStackObserver newObserver)
Connect this instance to a wire

Parameters:
newObserver -

unsubscribe

public void unsubscribe(OutgoingNetworkStackObserver registeredObserver)
Disconnect wire

Parameters:
registeredObserver -

setConfiguration

public void setConfiguration(OutgoingNetworkStackConfiguration configuration)
                      throws InvalidFilterConfigurationException
Set a new filter configuration

Parameters:
configuration -
Throws:
InvalidFilterConfigurationException

getConfiguration

public OutgoingNetworkStackConfiguration getConfiguration()
Returns:
Returns current filter configuration

send

public void send(NetworkStackParameters params,
                 RawData data)
Send something through the network stack to another station

Parameters:
params - network stack params
data - data to send

getStationID

public java.lang.Object getStationID()
Returns:
Returns the stationID.

setStationID

public void setStationID(java.lang.Object stationID)
Parameters:
stationID - The stationID to set.

setParentLogger

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

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.