Bully Task (12.12.2005)

at.jku.fim.datalinksimulation.layer1.devices
Class Hub

java.lang.Object
  extended by at.jku.fim.datalinksimulation.genericdevices.HardwareComponent
      extended by at.jku.fim.datalinksimulation.genericdevices.InterlinkingDevice
          extended by at.jku.fim.datalinksimulation.layer1.devices.Hub
All Implemented Interfaces:
WireConnector
Direct Known Subclasses:
CRCGuard

public class Hub
extends InterlinkingDevice

Title: OSI Simulation Framework

This class represents an implementation of a typical network hub.
The data received on one port is forwarded to all the other ports. In this implementation the number of ports can be specified at instantiation time.

Copyright: (c) 2004-05

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

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

Field Summary
 
Fields inherited from class at.jku.fim.datalinksimulation.genericdevices.InterlinkingDevice
logger, networkStack, numberOfPorts
 
Fields inherited from class at.jku.fim.datalinksimulation.genericdevices.HardwareComponent
networkComponentId
 
Constructor Summary
Hub(java.lang.String identifier, int numberOfPorts)
          Constructor
 
Method Summary
protected  IncomingNetworkStackConfiguration getIncomingNetworkStackConfiguration()
          This method must be overriden in subclasses.
protected  OutgoingNetworkStackConfiguration getOutgoingNetworkStackConfiguration()
          This method must be overriden in subclasses.
 
Methods inherited from class at.jku.fim.datalinksimulation.genericdevices.InterlinkingDevice
bePlugged, beUnplugged, getConnectedWires, getNextFreePort, getNumberOfFreePorts, getNumberOfTotalPorts, getPortOfWire, getWireInPort, informAboutDataOnWire, isPortFree, isWireConnected, toString
 
Methods inherited from class at.jku.fim.datalinksimulation.genericdevices.HardwareComponent
getNetworkComponentId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hub

public Hub(java.lang.String identifier,
           int numberOfPorts)
Constructor

Parameters:
identifier - Identifiert for log
numberOfPorts - The number of available physical ports
Method Detail

getIncomingNetworkStackConfiguration

protected IncomingNetworkStackConfiguration getIncomingNetworkStackConfiguration()
Description copied from class: InterlinkingDevice
This method must be overriden in subclasses. The configuration for the incoming network stack must be returned.

Specified by:
getIncomingNetworkStackConfiguration in class InterlinkingDevice
Returns:
The incoming network stack configuration

getOutgoingNetworkStackConfiguration

protected OutgoingNetworkStackConfiguration getOutgoingNetworkStackConfiguration()
Description copied from class: InterlinkingDevice
This method must be overriden in subclasses. The configuration for the outgoing network stack must be returned.

Specified by:
getOutgoingNetworkStackConfiguration in class InterlinkingDevice
Returns:
The outgoing network stack configuration

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.