at.jku.fim.datalinksimulation.layer1.devices
Class Hub
java.lang.Object
at.jku.fim.datalinksimulation.genericdevices.HardwareComponent
at.jku.fim.datalinksimulation.genericdevices.InterlinkingDevice
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
Constructor Summary |
Hub(java.lang.String identifier,
int numberOfPorts)
Constructor |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Hub
public Hub(java.lang.String identifier,
int numberOfPorts)
- Constructor
- Parameters:
identifier
- Identifiert for lognumberOfPorts
- The number of available physical ports
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
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.